Skip to content
Snippets Groups Projects
  1. Feb 23, 2024
  2. Jan 23, 2024
  3. Jan 09, 2024
    • jasonwshsu's avatar
      [Drag To Hide] Shows notification when user drag-to-hide a11y floating button · 72fa82d5
      jasonwshsu authored
      * Click on notification to bring back a11y floating button
      * Swipe notification to remove a11y floating button and its services
      * A11y service key changed to dismiss notification
      * Align to create ACCESSIBILITY channel in systemui NotificationChannels
      
      Bug: 298718415
      Flag: ACONFIG com.android.systemui.floating_menu_drag_to_hide DEVELOPMENT
      Test: atest MenuViewLayerTest MenuNotificationFactoryTest NotificationChannelsTest
      
      Change-Id: Ie209ec946ea15903acfa6913492605277e9d7057
      72fa82d5
  4. Jan 08, 2024
  5. Nov 07, 2023
  6. Oct 13, 2023
    • Nicolò Mazzucato's avatar
      Refactor screenshot logging in case of external display · fe1006fb
      Nicolò Mazzucato authored
      This makes a few changes to make error logging more explicit in case of
      connected displays.
      
      - RequestProcessor now throws a typed exception, so we can avoid
      catching unrelated errors in TakeScreenshotExecutor
      - ScreenshotNotificationsController can be created only with a factory,
      providing a displayId. The display ID is used to append "(External
      Display)" string for error notifications happening on any display that
      is not the default one.
      - There can be a maximum of 2 error notifications: one for the default
      display (as before), and another that is shown in case of any error in
      any external display connected.
      - Error reporting for ScreenshotData processing or ScreenshotController
      issues has been completely moved to TakeScreenshotExecutor and scoped to
       display ID. TakeScreenshotService still reports some early failures
       unrelated to displays.
      - As we can't specify the displayId in UiEventLogger: if the failure is
      generic and we reach it from TakescreenshotService, only one
      SCREENSHOT_REQUESTED_... is reported. However, if the screenshot request
       reaches TakeScreenshotExecutor, then one event per display will be
       reported.
      
      Test: RequestProcessorTest, TakeScreenshotExecutorTest, TakeScreenshotServiceTest
      Bug: 296575569
      Bug: 290910794
      Change-Id: If187e9713b344605466a2dcb78267ededccfcc85
      fe1006fb
  7. Oct 11, 2023
    • Valentin Iftime's avatar
      Polite notifications · b551eb6a
      Valentin Iftime authored
       Add polite notifications implementation to NotificationAttentionHelper:
        - 2 cooldown strategies: to be reduced to a single strategy after dogfood.
      
      Test: atest BuzzBeepBlinkTest
      Test: atest NotificationAttentionHelperTest
      
      Bug: 270456865
      Change-Id: I185a0a4b13d6602061c664d1babe6beff7630cd1
      b551eb6a
  8. Apr 10, 2023
    • Behnam Heydarshahi's avatar
      Sound Dose Notification · f8938900
      Behnam Heydarshahi authored
      Send a notification when SoundDose dialog is ignored by user to inform
      them that the audio was lowered by the system.
      
      CsdWarningDialog now uses DelayedExecutor instead of CountDownTimer.
      
      Implement tests for CsdWarningDialog and its client.
      
      Bug: b/267464531
      
      Test: atest VolumeDialogImplTest CsdWarningDialogTest
      
      Change-Id: I9c0ad6b410e0eb009b6a1ea032c7f618a4f4791a
      f8938900
  9. Feb 13, 2023
  10. Feb 07, 2023
  11. Feb 04, 2023
    • Avichal Rakesh's avatar
      Usb: Add UVC support to UsbManager and UsbDeviceManager · 16f4589a
      Avichal Rakesh authored
      This CL adds support for UVC gadget function in USB System service.
      
      Bug: 242344221
      Test: Manually tested that the UVC function can be enabled when needed.
      API-Coverage-Bug: 267667903
      Change-Id: Ifd93f065426a224274ec39f53366dd6e3fee0bfa
      16f4589a
  12. Jan 26, 2023
    • Fabien Sanglard's avatar
      Add "am capabilities" for tools probling · fbfdc1fe
      Fabien Sanglard authored
      There is no way to know which command/flags are supported in am.
      This CL adds a "capability" command which allows to probe
      programatically.
      
      Test: NA
      Bug: 265460189
      Change-Id: If50269251a6907968e7c8afe10bf873f25338b91
      fbfdc1fe
  13. Dec 19, 2022
    • William Osborn's avatar
      Letterboxing improvements for tabletop mode · fcb3add0
      William Osborn authored
      Move letterboxed apps to the top screen and resize when in tabletop pose and move to the left for book mode.
      Also allow double-tapping to move the app to the alternative half of the screen.
      
      Bug: 245740388
      Test: locally tested
      Change-Id: I14434ad23091de3957f04284e03da8701f159fa4
      fcb3add0
  14. Dec 02, 2022
  15. Oct 25, 2022
    • Massimo Carli's avatar
      Letterbox Reacheability Multiplier Persistence · 59358072
      Massimo Carli authored
      Persist values for horizontal and vertical position multipliers.
      
      Test: atest LetterboxConfigurationTest LetterboxConfigurationPersisterTest
      Fixes: 199434061
      
      Change-Id: I194828be402ff1fd234e371055522962647a4d32
      59358072
  16. Oct 21, 2022
  17. Oct 19, 2022
    • Yohei Yukawa's avatar
      Stop using notification for IME switcher · e23a4c13
      Yohei Yukawa authored
      InputMethodManagerService has had logic to show notifications when the
      IME switcher icon cannot be shown on NavigationBar[1][2][3][4][5].
      
      With this CL, such a fallback behavior is completely removed.  Devices
      and form-factors that need a special handling need to come up with
      their own solution rather than relying on this historical notification
      mechanism.
      
       [1]: I2b9e955003c1f6703978824c947d5f322a039714
            7cfc0ed2
       [2]: Id36c8c34159bea8b72557b40bcf024d401f580b6
            01065a57
       [3]: I34a95732ef3e7c20d6549b57230c11f0c3db04d6
            d4b62599
       [4]: I58421143bee25be459f4f744688b37614a750051
            f62c0b83
       [5]: I6ad818fc9ef08991e24c5020498243f1fc417998
            24ab9e18
      
      Bug: 245989733
      Test: atest CtsPermission2TestCases:ProtectedBroadcastsTest
      Test: presubmit
      Change-Id: I3b09d2b05ba9bde686b360b9f720b5d4258551c3
      e23a4c13
  18. Sep 28, 2022
  19. Aug 24, 2022
    • Stephanie Bak's avatar
      Add notification ID for APM enhancement · e9f497ce
      Stephanie Bak authored
      Bug: 239983569
      Test: atest com.android.server.wifi
      Change-Id: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      Merged-In: I1cb0ec847040e47b563b39b622e12c49e41082bc
      Merged-In: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      e9f497ce
    • Stephanie Bak's avatar
      Add notification ID for APM enhancement · b839e240
      Stephanie Bak authored
      Bug: 239983569
      Test: atest com.android.server.wifi
      Change-Id: I90708ae9b38a40f48fd9003e16c4c45ec71bf53f
      Merged-In: I1cb0ec847040e47b563b39b622e12c49e41082bc
      b839e240
  20. Aug 22, 2022
  21. Aug 18, 2022
  22. Aug 16, 2022
  23. Aug 15, 2022
    • Adrian Roos's avatar
      Better OWNERS for system_messages.proto · 718fd088
      Adrian Roos authored
      This file notification ids to be used anywhere in the android package (e.g. system_server). Match platform resource OWNERS that has similar scope.
      
      Change-Id: I2d525d59c24df63429ef090e41e45952506c1c59
      718fd088
  24. Aug 10, 2022
  25. Jul 22, 2022
  26. May 28, 2022
    • Anna Bauza's avatar
      Fix "Turn on phone calls" for guest user · 84888b4a
      Anna Bauza authored
      Move "Turn on phone calls" from guest detail user screen to user screen.
      Optimisation: Applying restrictions to default guest user has been moved
      to UserManagerService -> setDefaultGuestRestrictions.
      
      Following UX there is no need for confirmation dialog.
      
      Bug: 191483069
      Test: manual
      Change-Id: I349ada986f8e609875ae376d4d0a9fa93098606a
      84888b4a
  27. Apr 14, 2022
    • Lucas Silva's avatar
      Add notification id for dock setup notifications. · ec09ba14
      Lucas Silva authored
      Bug: 227649823
      Test: locally on device
      Change-Id: I251ab6e25b58b566fc53f0fd5240db49b06c1d97
      ec09ba14
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · c60e7c41
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      
      Relands ag/16545010 after resolving post submit issues
      
      Revert "Revert "Guest mode updates to resolve privacy concerns in guest mode""
      This reverts commit dd5c4408.
      
      Change-Id: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      Merged-In: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      c60e7c41
  28. Apr 07, 2022
    • Yuri Lin's avatar
      Add strings & channel to be used for notification to review permissions. · 5abe07c3
      Yuri Lin authored
      Also changes the SYSTEM_CHANGES notification channel to be IMPORTANCE_DEFAULT (by deprecating the existing, unused one).
      
      Bug: 225373531
      Test: manual by forcing the notification to show
      
      Change-Id: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
      Merged-In: I9743fe08cccbd8b6a9e7b367e32fe3e597b81ec4
      5abe07c3
  29. Apr 06, 2022
  30. Mar 31, 2022
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · 5ca368a9
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      
      Relands ag/16545010 after resolving post submit issues
      
      Revert "Revert "Guest mode updates to resolve privacy concerns in guest mode""
      This reverts commit dd5c4408.
      
      Change-Id: I46b8ab527bab8fe665114ed0fffbb06a59d49a77
      5ca368a9
  31. Mar 24, 2022
    • Kedar Chitnis's avatar
      Revert "Guest mode updates to resolve privacy concerns in guest mode" · dd5c4408
      Kedar Chitnis authored
      Revert "Guest mode UX flow updates to user settings"
      
      Revert submission 16545010-kedarc-ephemeral-guest
      
      Reason for revert: A conflicting CL got merged after presubmits were triggerred, will rebase and push again
      Reverted Changes:
      I86a5a1571:Guest mode updates to resolve privacy concerns in ...
      I7cf205883:Guest mode UX flow updates to user settings
      
      Change-Id: I91093a241f31a82f427be24d03e6c922779ceed0
      dd5c4408
    • Kedar Chitnis's avatar
      Guest mode updates to resolve privacy concerns in guest mode · d96ba2de
      Kedar Chitnis authored
      - Add API in IUserManager to allow setting ephemeral user flag
      - Implement and export this API in UserManagerService and UserManager
      - Set guest as ephermal by default when createGuest in UserManager is called
      - Handle guest user switching in UserSwitcherController for the case
        of dynamic change of ephemeral state
      - Add persistant notification when in guest mode to indicate
        - if guest session is new or previously used.
        - if guest session will be cleared on exit or not
      - Add buttons in persistant notification to reset or exit guest
      - Add flags to enable/disable this feature
      
      Bug: 214031645
      Screenshots: go/ephemeral-guest-b-214031645-ux
      Test: Manual test using sunfish, atest SystemUITests, atest SettingsRoboTests
      Change-Id: I86a5a15715cc6dde0eae93d38cd1c5cef33d7c67
      d96ba2de
  32. Mar 16, 2022
    • Eric Biggers's avatar
      Remove support for converting from FDE to FBE · bf9e19c5
      Eric Biggers authored
      Devices that launched with Android 10 or later require FBE (File Based
      Encryption) from the beginning, so there's no need to support converting
      to FBE after the fact anymore.  This was only ever a developer option,
      so it probably wasn't used much.  And in any case, it's not used
      anymore, as isConvertibleToFBE() is hard-coded to return false.  Besides
      the fact that FBE has been required for several releases now, this
      functionality was only ever available on devices that use FDE (Full Disk
      Encryption), but FDE support has been removed from Android.
      
      Therefore, remove this unused code.
      
      Bug: 208476087
      Change-Id: I1f56c8e05fb3fba09aab4bf5f8609b0f552b8999
      bf9e19c5
  33. Mar 10, 2022
  34. Feb 23, 2022
  35. Feb 04, 2022
    • Shuzhen Wang's avatar
      Camera: Add stream use case support · a92e0214
      Shuzhen Wang authored
      Stream use case indicates the purpose of a camera stream. By using
      stream use case, the camera device doesn't need to use the stream's
      format and immediate consumer surface type as heuristics to figure
      out what the stream is for.
      
      Bug: 200307880
      Test: Camera CTS
      Change-Id: I390c0e4fcc1272723784c358c6f0334e1dbbd848
      a92e0214
  36. Jan 25, 2022
    • Jing Ji's avatar
      Post notification on abusive background current drain · 0c660397
      Jing Ji authored
      Tapping on the notification will bring up the individual abusive
      app's battery settings page. It won't be re-posted after being
      dismissed until next day, in order to avoid from spamming the user.
      
      Bug: 200326767
      Bug: 203105544
      Test: FrameworksMockingServicesTests:BackgroundRestrictionTest
      Test: Manual - adb shell am set-bg-abusive-uids & verify notification
      Change-Id: I0b30014d748863c66c3845b5f310948a9493e302
      0c660397
  37. Jan 24, 2022
    • Florian Mayer's avatar
      [MTE] show notification if using MTE bootloader switch. · c3d0e6a8
      Florian Mayer authored
      ro.arm64.memtag.bootctl_supported can be set by OEMs that do not want to
      enable MTE by default yet but want to offer users a preview that can be
      enabled in the Developer Options. This developer option will reboot the
      phone and enable MTE. In that case we want to show a notification to
      make sure the user does not forget that it is enabled.
      
      Bug: 206895651
      Change-Id: Iaebc16d4b8d0da302f18709e23062f4a5bd58fe3
      c3d0e6a8
Loading