Skip to content
Snippets Groups Projects
  1. Sep 28, 2023
    • Kevin Jeon's avatar
      Fix incorrect number formatting in dumpsys meminfo · e84af988
      Kevin Jeon authored
      This change updates the printRow() helper method that
      ActivityThread.dumpMemInfo() references to include Locale.US, so that
      numbers will be formatted correctly.
      
      This change also replaces an incorrect %s with %d in the format string
      used for three-column rows.
      
      Test: Change the system locale to a different language (Arabic) and
            verify that dumpsys meminfo produces correctly-formatted values.
      Bug: 301934161
      Change-Id: If814796a1cf0302a54a02fa23e82d21a3213ea10
      e84af988
    • Amith Yamasani's avatar
      Introduce flag for improving stopped state enforcement · 77c45c2b
      Amith Yamasani authored
      package "android.content.pm"
      namespace "backstage_power"
      flag name "stay_stopped"
      
      Bug: 296644915
      Test: N/A
      Change-Id: Ie21e98d620844a9aef097bd882136afbad981844
      77c45c2b
    • Fabián Kozynski's avatar
      Use new Icon API to restrict showing some drawables · 857ae16f
      Fabián Kozynski authored
      Using the new API, we check if the Icon passed to a Tile can be loaded
      by the current user and the app. If not, a default icon is shown.
      
      Fixes: 276896619
      Test: atest com.android.systemui.qs
      Test: manual, using test app
      Test: manual, CustomTile and dialog show correct icon
      Change-Id: I25e3d390091c5fd290c83287ead3718aa7084edd
      857ae16f
    • Fabián Kozynski's avatar
      Add a new hidden Icon API for loading · d1937863
      Fabián Kozynski authored
      The new API checks (for URI based Icons) that the Uri can be accessed by
      the passed callingUid, regardless of the app that is calling
      loadDrawable. This allows SystemUI to load drawables on behalf of other
      apps safely.
      
      Fixes: 301110522
      Test: atest IconTest
      Change-Id: Iae392277aaf9560536a0b1cf231fa98b577a32d7
      d1937863
    • Daniel's avatar
      Reroute to Credman based on autofill hint · 58dfa96a
      Daniel authored
      Currently, Autofill Manager looks at the view's isCredential attribute
      to suppress fill dialog. Add a new autofill hint that Autofill Manager will look at to regard in the
      same manner as the isCredential attribute. This hint will be set by the
      Credential Manager's support library.
      
      The autofill hint has been available for older Android versions while
      isCredential is only available for U+. In the future, if AwG can support
      rerouting to CredentialManager based on the autofill hint, we could
      enable Credman support in Autofill for U-.
      
      Bug: 299319802
      Test: atest CtsAutoFillServiceTestCases
      Change-Id: I157735334c4141a78f5743282dd09c32e3200e6a
      58dfa96a
    • Vadim Caen's avatar
      Virtual Camera: VDM side implementation · 21416c97
      Vadim Caen authored
      Creates the API and infrastructure to create a VirtualCamera from VDM.
      
      This CL contains the AIDL to enable the communication from client to
      system-server and from system-servier to the future
      VirtualCameraService
      
      The CL also adds a TestRule for server tests creating VirtualDevices
      
      Test: com.android.companion.virtual.VirtualCameraTest
      Bug: 270352264
      Change-Id: I581e2d4bb4f0acd3b0fb0d31609c41ffb8fea570
      21416c97
    • Vladimir Komsiyski's avatar
      Deprecate a bunch of VDM APIs. · 57e4c3ea
      Vladimir Komsiyski authored
      Activity allow/blocklisting is handled by the activity policy and
      allows for dynamic updates of the policy exemptions.
      
      Cross-task navigations has never been used, adds a lot of complexity
      and there are a number of issues whose fixes require a ton of more
      complexity.
      
      Fix: 298298131
      Fix: 299053805
      Test: presubmit
      Change-Id: Iac4cda9e3cc252a4ae69871cf5962dcad8ff5eea
      57e4c3ea
    • Anna Zhuravleva's avatar
      Use androidx FlakyTest annotation for device tests. · 0bbf383f
      Anna Zhuravleva authored
      Platform_testing large test annotation is for
      host side tests and restricted, device tests should use
      androidx annotation.
      
      Bug: 293837621
      Test: presubmit
      Change-Id: Ia4201978be6a7617884fa51afe8db8ae64e63c90
      0bbf383f
    • Zoey Chen's avatar
      [Terms of Address] New hiden APIs, setSystemGrammaticalGender and getSystemGrammaticalGender · abb2ea62
      Zoey Chen authored
      Change-Id: I1b35078cbc5f581b6b13daa8afcb6eee1aa2a15f
      Test: adb shell device_config put grammatical_gender android.app.system_terms_of_address_enabled true
      Bug: 295826542
      Bug: 297798866
      abb2ea62
    • Jiaming Liu's avatar
      Expose SurfaceControl of TaskFragment to system organzier · 26790094
      Jiaming Liu authored
      Bug: 284050041
      Test: atest TaskFragmentOrganizerControllerTest TaskFragmentTest WindowFlagsTest
      Change-Id: Ibcc8461d22a8c2bfbe88df388e2a5d432bf33150
      26790094
    • Yuchen He's avatar
      Keep CarrierAppIntegrationTestCases in internal cf. · bc1c7bcb
      Yuchen He authored
      Bug: 302382476
      Change-Id: I4e4793d95c6d1ddc41f8407825c3acfd0c0502c2
      Test: presubmit
      bc1c7bcb
  2. Sep 27, 2023
    • Maciej Żenczykowski's avatar
      let's at least log the src mac as being the src mac, not the dst · 92bb8742
      Maciej Żenczykowski authored
      
      changing the field names is much harder due to it going via AIDL
      
      Test: TreeHugger
      Bug: 292404319
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: I4101caf3b0d2abfadbabf3f389155c29a4d64e0f
      92bb8742
    • Faye Yan's avatar
      Create flag voice_activation_permission_apis for voice activation permission in framework. · 6b55a16b
      Faye Yan authored
      Bug: 289087412
      Change-Id: Ib67a94c812b6ec8f26a9f7dafba124079009e412
      Test: presubmit
      6b55a16b
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · 334c5a54
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: I842547e32bc9d43536b5f3921e11f1ca96191132
      334c5a54
    • Weilin Xu's avatar
      Fix IDENTIFIER_TYPE_HD_STATION_ID_EXT javadoc typo · 2dac5e15
      Weilin Xu authored
      Bug: 302346449
      Test: m -j
      (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f47e45d322043c4e2e11bb2fbd09c980ffe232b8)
      Merged-In: Ibbf789889aed57c18f6f7d21736c838a3d069d5b
      Change-Id: Ibbf789889aed57c18f6f7d21736c838a3d069d5b
      2dac5e15
    • Maciej Żenczykowski's avatar
      OWNERS: master -> main · 0b7230e5
      Maciej Żenczykowski authored
      Change-Id: Id1ff659b4a5ae7809804bacda0a77ccf1815480c
      0b7230e5
    • Maciej Żenczykowski's avatar
      OWNERS: master -> main · 3f106c62
      Maciej Żenczykowski authored
      Change-Id: I427112e2986377f37b85d9dfe21620ddd6bb198f
      3f106c62
    • Weilin Xu's avatar
      Fix IDENTIFIER_TYPE_HD_STATION_ID_EXT javadoc typo · f47e45d3
      Weilin Xu authored
      Bug: 302346449
      Test: m -j
      Change-Id: Ibbf789889aed57c18f6f7d21736c838a3d069d5b
      f47e45d3
    • Thomas Nguyen's avatar
      Guard new satellite APIs with feature flag · 06f95f23
      Thomas Nguyen authored
      Bug: 296909779
      Test: SMS, MMS, call with live network.
      atest SatelliteControllerTest
      atest SatelliteManagerTestOnMockService
      
      Change-Id: I797db0df194ec9732db16f3377c0b2e5601c8f23
      06f95f23
    • Shane's avatar
      Add flag for APIs that use expected presentation time · 3966328f
      Shane authored
      Add a Trunk Stable flag to gate the APIs that use the expected
      presentation time.
      
      Bug: 301713352
      Test: atest AnimationUtilsTest
      Change-Id: Iea31bb48868811e139e813ce195ab59639d45c03
      3966328f
    • Sally's avatar
      Add documentation about errors for announceForAccessibility. · 48b29458
      Sally authored
      This copies the live region documentation and puts it in the
      announceForAccessibility javadocs, so developers see immediately that
      they should use error APIs for error UIs.
      
      Test: n/a
      Bug: n/a
      Change-Id: I9a7819d82b8ffdf779c7a6851e09fa8a9a55d361
      48b29458
    • John Reck's avatar
      Update TextureView comparison table · 6852b8e8
      John Reck authored
      Change-Id: Iae30cc12ad3ee46c04094fbe0714d9b1b2a63c2e
      6852b8e8
    • Matías Hernández's avatar
      Revert "Make the brightness int scale match the slider" · 5f1d6885
      Matías Hernández authored
      This reverts commit 78bc4f4e.
      
      Reason for revert: DroidMonitor-triggered revert due to bug 302310558.
      
      Change-Id: I3a775d0675993f9df4291014bdbfd54cad7d2965
      Bug: 302310558
      5f1d6885
    • Mårten Kongstad's avatar
      Expand @FlaggedApi(Flags.FLAG) in *all* API signature files · 85f6bee5
      Mårten Kongstad authored
      A previous CL added the auto-generated aconfig Flags.FLAG sources to
      metalava's input when generating core/api/current.txt, so metalava would
      expand the Flags.FLAG to their values.
      
      Do the same for the build targets for the other (system, module-lib,
      test) API signature files in core/api.
      
      Also update the API signature files accordingly.
      
      (cherry picked from commit 162ae2a1)
      
      Bug: 301859633
      Test: m checkapi
      Merged-In: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      Change-Id: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      85f6bee5
    • Sam Cackett's avatar
      Revert "Revert "Move MediaProjection classes into more specific ..." · cee4a09d
      Sam Cackett authored
      Re-landing original change with a fix
      
      Original commit message:
      Move MediaProjection classes into more specific package
      
      Fixes: 238424895
      Test: Build & Run
      Flag: None
      
      Revert submission 24839693-revert-24831451-b/238424895-move-media-projection-packages-OEITQWMFRL
      
      Reason for revert: Re-landing original change with fix for missing package name
      
      Reverted changes: /q/submissionid:24839693-revert-24831451-b/238424895-move-media-projection-packages-OEITQWMFRL
      
      Change-Id: I60b99bda4c3a18d250ec05dc64f9d0c48b18724f
      cee4a09d
    • Marvin Ramin's avatar
      Add VDM APIs to support permission streaming · eb6af01a
      Marvin Ramin authored
      Introduces the stream_permissions flag to guard these APIs.
      
      VDM introduces VD#getDisplayName (proxied from CDM
      AssociationInfo#getDisplayName) to enable showing the correct device
      name in the streamed permission Dialog.
      
      VDM offers the stream_permissions flag by blocking any Activity being
      launched which matches the permission Dialog ComponentName in GWPC
      
      Bug: 291737919
      Test: atest VirtualDevicePermissionTest AppStreamingPermissionTest
      Change-Id: I0afa6959944f241e155efc711f4c0d7b23f953bf
      eb6af01a
    • Jernej Virag's avatar
      Do not keep WearableExtender background bitmaps · ea993de0
      Jernej Virag authored
      setBackground() call was deprecated in API level 29 - however we
      still keep the background bitmap in memory - both in system server
      and systemui - if the app decides to set it. This is a rather big
      contributor to Notification memory use.
      
      This change makes setBackground() call a no-op on devices running API 35
      or newer.
      
      Bug: 270551184
      Test: newly created CTS and unit tests run on cheetah
      Change-Id: I6e50ac2e6c9b009512f0baf5442792c2a3b747ec
      ea993de0
    • Mårten Kongstad's avatar
      Expand @FlaggedApi(Flags.FLAG) in *all* API signature files · 162ae2a1
      Mårten Kongstad authored
      A previous CL added the auto-generated aconfig Flags.FLAG sources to
      metalava's input when generating core/api/current.txt, so metalava would
      expand the Flags.FLAG to their values.
      
      Do the same for the build targets for the other (system, module-lib,
      test) API signature files in core/api.
      
      Also update the API signature files accordingly.
      
      Bug: 301859633
      Test: m checkapi
      Change-Id: Id06d77e897ecfddeaa42f75cba4d6d37bee9d1b1
      162ae2a1
    • Piotr Wilczyński's avatar
      Make the brightness int scale match the slider · 78bc4f4e
      Piotr Wilczyński authored
      The brightness scale 0-255 will now match the slider, i.e. setting brighthess to 0.23 * 255 will set it to 23% on the slider.
      
      This will work regardless of the brightness limits (e.g. HBM) - if HBM is on, 255 will still be the max value on the slider, so the max value allowed in HBM mode.
      
      This only affects the int scale of the brightness setting. The brightness int values in config files will remain unchanged.
      
      Bug: 183655602
      Test: atest com.android.server.display
      Test: atest android.display.cts
      Change-Id: I8e8ede6fa4ee945899e33a2ba45a290bf704d166
      78bc4f4e
    • Seigo Nonaka's avatar
      Draw a single underline if multiple fonts are used in a single line. · cd348c67
      Seigo Nonaka authored
      Bug: 297336724
      Test: atest hwui_unit_tests (with flag on/off)
      Change-Id: I48018abd68c767c9c7ad08722a8974efc1bfe67c
      cd348c67
    • Chen Bai's avatar
      do wom: DisplayOffload hook to DisplayManager · fc965acc
      Chen Bai authored
      Instead of connecting DisplayOffload with PowerManager, we decided to
      hook it to DisplayManager. See detailed analysis in comment of ag/23643082.
      
      - Add DisplayOffloadSession that associate a internal display with
        a DisplayOffloader. Its registered by DisplayManager and used to
        control offloading entry/exit.
      - Add a feature flag enable_display_offload. Use following command to
        toggle the displayoffload feature and reboot.
      ```
      adb shell device_config put display_manager com.android.server.display.feature.flags.enable_display_offload <true/false>
      ```
        If cmd above doesn't, try following:
      ```
      adb shell setprop
      persist.sys.com.android.server.display.feature.flags.enable_display_offload
      true
      ```
      - Add tests.
      
      TEST: atest DisplayServiceTests
      BUG: 287561002
      Change-Id: I7f1d7b70f66cf19a732eed3d96651967d6a21056
      fc965acc
    • Coco Duan's avatar
      Add hub mode tutorial state in Settings · 39245516
      Coco Duan authored
      Add enums for HubModeTutorialState that will be used to
      show the tutorial indicator on lockscreen and hides it
      once the tutorial is completed.
      
      Bug: b/301269121
      Test: flashed device and verified behavior using the states
      Change-Id: If8f0bbd20943d955131fff4ead7e71fb56003c7c
      39245516
  3. Sep 26, 2023
    • Taran Singh's avatar
      API for stylusHandwritingEnabled · 2420b22f
      Taran Singh authored
      Introduce API for an Editor be able to indicate if it has stylus
      handwriting enabled on it.
      
      Bug: 295269346
      Test:  atest android.widget android.view.inputmethod
      
      Change-Id: I9fb03af1639fd48b76d532c7ca688b248c471bfe
      2420b22f
    • Ady Abraham's avatar
      Plumb setFrameRate to TexureView · 6f488f30
      Ady Abraham authored
      Bug: 281695725
      Test: manual using a test app
      Change-Id: Icd7a998a4e3fef2d3076b6fe4b8ec9272d14315b
      6f488f30
    • Ady Abraham's avatar
      Introduce SurfaceTextureListener · 38baa6a2
      Ady Abraham authored
      This is a tiny refactoting needed for the next CL.
      
      Bug: 281695725
      Test: manual using a test app
      Change-Id: I33c840f46978e1cb762beb63feeda37124eb7333
      38baa6a2
    • Sudheer Shanka's avatar
      Fix a couple of entries in network restrictions table. · 4418afa7
      Sudheer Shanka authored
      With Data saver off and Battery saver on, only Batter saver
      allowlist will decide whether an app can access network or
      not. If an app is allowlisted, it would be allowed network
      access. Otherwise, it would not be allowed network access.
      
      Bug: 302172152
      Test: n/a
      Change-Id: I4044c7ea5d8294f93294f3071b56ff278a18c2e9
      4418afa7
    • Fabián Kozynski's avatar
      Apply restore to repositories · ee292c1e
      Fabián Kozynski authored
      This CL also changes the source of truth of the list of tiles:
      * Tiles are read once from Settings and kept in memory.
      * After tiles change, the new value is applied to memory.
      * Changes to the list are posted to a shared flow and applied to the
        current list sequentially.
      * If a change occurs in Settings that makes the list different from what
        we have, we overwrite it with our value.
      
      The same thing is done to AutoAddRepository.
      
      The restore is used to trigger a change in the repositories.
      
      It's important to note that the restores are tracked starting at the
      point where we check the setting for the value there (on start of the
      user). This means that if the restore happens before we get the tiles
      for the first time, the setting would have the restored values. This is
      probably the best scenario: restore happening before SystemUI starts
      interfering.
      
      Given that now we don't listen to Settings, a new shell command has been
      added to StatusBarShellCommands to modify the set of tiles.
      
      Fixes: 289502851
      Test: atest com.android.systemui.qs.pipeline
      Test: atest CtsTileServiceTestCases android.host.systemui
      Test: quicksettings PlatformScenarioTests
      Test: manual restore using LocalTransport
      Change-Id: I287bb3c47c3a4181f29f942bcb18bd81c129273c
      ee292c1e
    • Alex Salo's avatar
      Add human readable inputType into dump() · e1674c2f
      Alex Salo authored
      Before:
      Input type: 540801
      
      After:
      Input type: 540801(class=1)|Password
      
      Most other things are fine as it's easy to convert an integer to the corresponding constant, but computing bit flags in a bugreport is time consuming and error prone.
      
      Bug: 288587392
      Change-Id: Ic2ae3354b26d7cdbfe0294bb40936e1e75d1967b
      e1674c2f
    • Brandon Liu's avatar
      Migrate OverlayManagerService to PackageMonitor · 8016bc3e
      Brandon Liu authored
      go/oms-to-packagemonitor
      
      Bug: b/280626834, b/292298615
      Test: Updated and verified affected tests pass
      Change-Id: Ia6c0fb955fd15681e2757cb7e09d54c9c0307efd
      8016bc3e
    • Nate Myren's avatar
      Move RMVUS app op to runtime · 5eb69706
      Nate Myren authored
      Bug: 301889547
      Test: atest CtsAppOpsTestCases
      Change-Id: I81dad1ca979552f094b7a475122db2c8b8263800
      5eb69706
Loading