Files
frameworks_base/core/java/android/app
Bernardo Rufino 224dd7ca0d Require proper permission for togglePanel()/handleSystemKey()
In S, we're preventing apps from closing notification shade unless they
fall into certain exemptions. The methods togglePanel() and
handleSystemKey() weren't properly protected, so fixing that.

These methods were @hide, only available in the AIDL and their only
usages were inside the system

Introducing @TestApis to be able to verify this in CTS.

Bug: 192946152
Test: atest -d CtsAppTestCases:android.app.cts.StatusBarManagerTest
Test: atest -d CtsLegacyNotification30TestCases:android.app.notification.legacy30.cts.StatusBarManagerApi30Test
Test: 1. adb shell input keyevent KEYCODE_SYSTEM_NAVIGATION_DOWN
      2. Verify status bar expands
      3. adb shell input keyevent KEYCODE_SYSTEM_NAVIGATION_UP
      4. Verify status bar collapses

Change-Id: I925e3570c8d275a1159e4b6912e4628c9528cb61
2021-07-07 11:12:50 +01:00
..
2021-06-14 19:37:22 +00:00
2021-06-16 15:55:36 -04:00
2021-03-05 19:59:28 -07:00
2021-01-19 14:24:10 -08:00
2021-04-08 23:56:27 +00:00
2021-06-16 15:55:36 -04:00
2021-05-21 14:13:18 -07:00
2021-06-15 11:17:57 -07:00