Skip to content
Snippets Groups Projects
  1. Jun 03, 2024
    • Joshua Trask's avatar
      Introduce `NoOpResolverComparator`. · 9f560c6e
      Joshua Trask authored
      We can use this as a "default" ranker in cases where we already know
      the desired ranking from the client (subclass/caller) request, as in
      `NfcResolverActivity`.
      
      Test: new unit test
      Bug: 327665515
      Flag: EXEMPT bugfix
      Change-Id: Ie3a7c1d061c5834559d5a15d1ceca1c12613ce60
      9f560c6e
  2. May 29, 2024
    • Ben Murdoch's avatar
      Clear icons for app/ime keyboard shortcuts in shortcut helper. · 81077e77
      Ben Murdoch authored
      If application supplied keyboard shortcuts have an icon, clear that icon
      before processing it in the shortcut helper. Icons are not intended for
      use by applications.
      
      Additionally resolves a race condition between receiving IME and app
      specific shortcuts, and closes the shortcut helper if it is showing
      while a user switch takes place.
      
      Bug: 331180422
      Flag: com.android.systemui.validate_keyboard_shortcut_helper_icon_uri
      Test: See b/331180422; atest KeyboardShortcutsTest KeyboardShortcutListSearchTest
      
      Change-Id: Ia628886e80e956d0c423d7a7ebe67b2b8ca8c264
      81077e77
    • Chris Li's avatar
      Add bug fix flag for inset update seq · 96158d7b
      Chris Li authored
      Bug: 339380439
      Test: flag only
      Change-Id: I49e4107b2ae43898664dd4ccb48ffc6090413a2f
      96158d7b
    • Chris Li's avatar
      Refactor WindowStateTransactionItem · b2f6997e
      Chris Li authored
      Similar to ActivityTransactionItem, but for WindowState.
      
      Bug: 339380439
      Test: Refactor only
      Flag: EXEMPT refactor
      Change-Id: I52e12fa57b26a0dabb4e7de48e93e7cafa16581c
      b2f6997e
  3. May 28, 2024
    • George Mount's avatar
      [VRR] Support setRequestedFrameRate() with AVDs · 05264e77
      George Mount authored
      Fixes: 342666766
      
      Adds support for Animated Vector Drawables that operate on the
      Render Thread to VRR. The votes from their respective Views
      are considered on each vote.
      
      Test: new tests, manual testing
      Change-Id: I1e761d62e5bc4a706cc7fb2904f26aaa68e87584
      05264e77
    • Priyanka Advani's avatar
      Revert "Continue to remove code around legacy captions" · 35ed169b
      Priyanka Advani authored
      This reverts commit 8947d494.
      
      Reason for revert: Droidmonitor created revert for b/343271861. Will be verifying through ABTD before submission.
      
      Change-Id: I54768ea2d2acbd72e633428cf8679ec533521be0
      35ed169b
    • Lee Shombert's avatar
      Distinguish null blobs in SQLiteRawStatement · 19cf445a
      Lee Shombert authored
      The sqlite value API sqlite3_column_blob() returns a null if the
      column type is SQLITE_NULL or a zero-length SQLITE_BLOB.
      SQLiteRawStatement.getColumnBlob() now distinguishes between these two
      cases: if the column type is SQLITE_NULL, return null, otherwise
      return a byte array of length zero.
      
      New unit tests have been added.  Unit tests have also been added for
      SQLiteRawStatement.getColumnText()'s handling of empty strings and
      null values.
      
      Test: atest
       * FrameworksCoreTests:android.database
       * CtsDatabaseTestCases
      
      Flag: EXEMPT bugfix
      Bug: 342687891
      Change-Id: Ia041eeb761267de0a4b59af3ddcba6433b231bbb
      19cf445a
    • Tomasz Wasilczyk's avatar
      Add config_force_phone_globals_creation config · fed755c4
      Tomasz Wasilczyk authored
      Bug: 331855229
      Test: connect BT phone and check messages
      Change-Id: I85e158c5cb73878e448ed839f63e8884198dbcb0
      fed755c4
    • Johannes Gallmann's avatar
      Don't use controlWindowInsetsAnimation for IME PB with 3-button-nav · 26ce6bba
      Johannes Gallmann authored
      Bug: 322836622
      Flag: android.view.inputmethod.predictive_back_ime
      Test: Manual, i.e. verifying that only onBackInvoked is called on ImeBackAnimationController when 3-button-nav is enabled
      Change-Id: I97469cf64af6ad70885749e67cf0a052426f9b75
      26ce6bba
    • dakinola's avatar
      Check for target activity with taskid and launch cookie · bd161c0d
      dakinola authored
      Found an issue with screen recording, where if you open an app to be recorded, but close the initial activity before recording starts, the recording fails because we expect to identify the task to the record by looking for an activity with matching launch cookie. As a backup, we also supply the task id (when possible) into the projection and try to find  the opened task that way.
      
      Fix: 333779790
      Flag: None
      Test: manual testing by attempting to screenrecord Google Photos while on the trash acvitity, then navigating back to the home activity before recording starts
      Test: atest FrameworksCoreTests:ContentRecordingSessionTest
      Test: atest FrameworksServicesTests:MediaProjectionManagerServiceTest
      Test: atest WmTests:WindowManagerServiceTests
      Test: atest RecordingServiceTest
      Change-Id: Ied4c8f117ce39288971d293dbcafa022711bf26a
      bd161c0d
    • Oli Thompson's avatar
      Add logs to unlaunchableAppActivity · 2d353387
      Oli Thompson authored
      Bug: 298661886
      Test: manual
      Change-Id: Ib2b5c4d7306fcf4e921898797e9fba1d76e50c66
      2d353387
    • wilsonshih's avatar
      Prepare to clean up the drawing snapshot with aspect ratio mismatch · d3659fa6
      wilsonshih authored
      Core won't ask to draw snapshot window if the aspect ratio isn't match.
      Add a flag to verify if it is safe to delete.
      
      Flag: com.android.window.flags.draw_snapshot_aspect_ratio_match
      Bug: 341020277
      Test: presubmit
      
      Change-Id: I3e2b3435ba2ffe60c90c22ed563435e0c1e781d7
      d3659fa6
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · faa87514
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: Ia7e7ddd46fae06e551fec715a7de5e8bd6166432
      faa87514
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · dd4be17d
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: Ie37561923f716a922dc4750b55e2bbb5049fcced
      dd4be17d
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · 0dfe2bf8
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: I2f2cb2f409cae6b94c1b075a640d0275ba2e89b9
      0dfe2bf8
    • Massimo Carli's avatar
      Remove disable_thin_letterboxing_reachability flag · ecaec186
      Massimo Carli authored
      Fix: 341290175
      Test: m
      Change-Id: Icfd314e7646235f15b22ede3ed1e46c418157a9d
      ecaec186
  4. May 27, 2024
    • Li Li's avatar
      dump sender stack for failed binder txn · faf3e024
      Li Li authored
      Currently it's hard to debug why a binder transaction fails and who's
      causing the issue. To help debugging this kind of issues, dump the stack
      of the sender when the transaction fails.
      
      Bug: 331005349
      Test: logcat
      Change-Id: I1a032784932ebe10af5f355ec1364a5d68831f2b
      faf3e024
    • Tiger's avatar
      Import VisibleForTesting.Visibility.PACKAGE · f67c096c
      Tiger authored
      This is for fixing the broken build.
      
      Fix: 342955819
      Flag: NA
      Test: presubmit
      Merged-In: Ic8ddfffb8550cb9875e329d7a9e8b39711a512bd
      Change-Id: I25238a2a23ab263e595d4ef9ec1f03c4bdf9b1f2
      f67c096c
  5. May 26, 2024
    • David Jacobo's avatar
      Revert "Settings: add ACTION_NETWORK_PROVIDER_SETTINGS" · 781243e4
      David Jacobo authored
      Revert submission 27019285-ACTION_NETWORK_PROVIDER_SETTINGS
      
      Reason for revert: b/338527563 CL seems to be introducing jank for systemui tests somehow, reverting to get out of the way
      
      Reverted changes: /q/submissionid:27019285-ACTION_NETWORK_PROVIDER_SETTINGS
      
      Change-Id: Iee77e2443420d57e36a9164969c35e839ef07e9c
      781243e4
  6. May 24, 2024
  7. May 23, 2024
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · 53fe68cf
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: Ib24695d814fee9db3724569c7189ae2a42dae8cd
      53fe68cf
    • Bill Yi's avatar
      Import translations. DO NOT MERGE ANYWHERE · 5dd2d41f
      Bill Yi authored
      Auto-generated-cl: translation import
      Change-Id: Idc2fa879be8b55cd325877bcee0ff8b9bd0e04ff
      5dd2d41f
    • Yifei Zhang's avatar
      Doze brightness for non-offloaded watchfaces · 8a6e0bfb
      Yifei Zhang authored
      Enable auto-brightness in doze so that we can support top-of-minute updates.
      
      Disable auto-brightness in doze temporarily if the offload session doesn't allow it - we don't want to use auto-brightness while the offload session is in control of the display.
      
      Update the auto-brightness value in AutomaticBrightnessController when switching modes. This can be done in the same thread and there's no need to notify the listeners if the mode is switched from updatePowerState().
      
      Use the display state and not the policy when setting auto-brightness state - this is reverting to the code we had before and in ag/26495348 we decided to rely on the state consistently.
      
      Don't use the initial doze brightness based on last observed lux because of b/328714026.
      
      Don't use the default doze brightness when auto-brightness enabled in doze - sometimes AutomaticBrightnessController might not provide a brightness value (when the lux isn't ready yet or the sensor is temporarily disabled). We don't want to cause unexpected brightness changes in those situations with the default doze brightness.
      
      Test: adb logcat | grep -i "brightnessEvent"
      Test: atest AutomaticBrightnessControllerTest
      Test: atest AutomaticBrightnessStrategyTest
      Test: atest BrightnessReasonTest
      Test: atest DisplayPowerControllerTest
      Test: atest DisplayOffloadSessionImplTest
      Test: atest LocalDisplayAdapterTest
      Bug: 327392714
      Bug: 328714026
      Change-Id: Ie3ae27e69d3edad41d27cc1f871295e8a73c09cb
      8a6e0bfb
    • Garfield Tan's avatar
      Continue to remove code around legacy captions · 8947d494
      Garfield Tan authored
      The most prominent removal in this CL is the removal of
      BackdropFrameRenderer. No code would ever create BackdropFrameRenderer
      even without this CL, so we can safely remove it. There is a piece of
      code in libhwui that was introduced with it, but I decide to clean it up
      after this CL goes in just in case some other code I don't know relies
      on that.
      
      This CL also removed a bunch of resources tied to the legacy caption.
      
      It also removed the implementation of
      android.view.Window#setResizingCaptionDrawable() which doesn't do
      anything with captions in WM shell. We should optimize our captions well
      enough to be responsive enough for fluid resizing, so we don't need the
      app to provide a background drawable to alleviate janky UX.
      
      It also removed mResizingBackgroundDrawable. Unlike other removed
      drawables, mResizingBackgroundDrawable was also used to calculate
      background paddings. Changed the code that calculates background
      paddings to avoid using it as well. The new logic doesn't enforce
      non-translucent background anymore because the old logic only changes
      ColorDrawable, which doesn't have any paddings with any colors.
      Therefore the new logic is equivalent to the old one with regard to
      background paddings.
      
      Bug: 333724879
      Test: Presubmit tests.
      Change-Id: Ie98c9226935d22cfa4d98df8ade3f604f57a10d4
      8947d494
    • Makoto Onuki's avatar
      [Ravenwood] Internal clean up, more PFD APIs, OsConstants, etc · df9cd260
      Makoto Onuki authored
      - Support a few more ParcelFileDescriptor APIs.
      - Support OsConstants and a couple of Os APIs.
      
      - Also clean up f/b/ravenwood. Now we have "runtime-common" library
        that can be used from different components of Ravenwood infra,
        with native code support.
      
      Bug: 292141694
      Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh
      Test: CtsOsTestCases (on tree hugger)
      Flag: EXEMPT hostside test change only
      Change-Id: I259a04201e05e615e17da0529cb500a102887ec9
      df9cd260
    • Ibrahim Yilmaz's avatar
      [Minimal HUN] Show always sender name in messaging hun · 8a81c8ec
      Ibrahim Yilmaz authored
      Bug: 336229954
      Flag: android.app.Flags.compact_heads_up_notification
      Test: SystemUITest and manual
      Change-Id: Iedf0fb9b4770fe38d0f5f83a976ecbfad6ed1c89
      8a81c8ec
    • Rubin Xu's avatar
      Enable coexistable device policy APIs for non-EMM management · 101b2f5e
      Rubin Xu authored
      Make DPM.getRequiredPasswordComplexity fully coexistable.
      
      Bug: 335624297
      Test: PasswordComplexityTest
            PasswordTest
            ManagedProfilePasswordTest
            FrameworksServicesTests:DevicePolicyManagerTest
      
      Change-Id: I6e8ad8ee3389c9f779f6f04e859a0f22d5fbac29
      101b2f5e
    • Julia Reynolds's avatar
      Allow system modes to be manually invoked · 97bdf07d
      Julia Reynolds authored
      Test: SystemZenRulesTest
      Bug: 333420153
      Flag: android.app.modes_ui
      Change-Id: Ie87b5703779ed2e4bf24df1b623ab7140a3f5ee9
      97bdf07d
    • Nate Myren's avatar
      Keep the deviceId in AttributionSource in sync with Context · 112e6a5e
      Nate Myren authored
      Also re-registers the AttributionSource if needed
      
      Change-Id: I81bbba6a041cc87aef77cfa1f21c1016b35a10a2
      Fix: 333272850
      Test: presubmit
      (cherry picked from commit 02f4520f)
      112e6a5e
Loading