33536 Commits

Author SHA1 Message Date
Naveen Kalla
ca3d5434e8 Add API to request Bug Report with a certain title and description
ActivityManagerService will send the details to dumpstate and
BugreportProgressService will get the details from dumpstate and use
that for the notification.

Bug: 33561517
Test: Modify TelephonyMonitor to use this API and ensure that the
      notification uses that the title and description sent as arguments
      to the API. File a bug using betterBug and ensure that the
      information gets populated automatically.

Change-Id: I455f1df2278e5d569dd19c74245a0704dcf5a321
2017-03-23 12:06:04 +00:00
TreeHugger Robot
54cacb7aed Merge "Remove tests from SettingsLibShell" 2017-03-23 03:13:59 +00:00
TreeHugger Robot
f93cdbd58f Merge "Fix AppRestrictionsHelperTest." 2017-03-23 02:38:41 +00:00
TreeHugger Robot
8efea16f1e Merge "Move two target preference layout from settings to lib" 2017-03-23 01:26:53 +00:00
Sudheer Shanka
83083cf358 Fix AppRestrictionsHelperTest.
Recently mockito has been updated to version 2.7.* and any(*.class) will now
reject null values.

Bug: 36531717
Test: runtest -x packages/SettingsLib/tests/integ/src/com/android/settingslib/users/AppRestrictionsHelperTest.java
Change-Id: Ia3ff2f470a95f6ee36a97eba8699425274500f17
2017-03-22 18:01:17 -07:00
TreeHugger Robot
964244785d Merge "Fix MtpDocumentsProvider test." 2017-03-23 00:46:06 +00:00
Fan Zhang
035ff93430 Move two target preference layout from settings to lib
Change-Id: I5eda0cdcc4e8d8bb25f95ee12837d90179ac5c0a
Fix: 36511169
Test: make RunSettingsLibRoboTests
2017-03-22 16:02:37 -07:00
Colin Cross
3c17d77610 Remove tests from SettingsLibShell
The tests and the robolectric libraries are already in
SettingsLibRoboTests, and shouldn't be in the package being tested.
Including robolectric in the package causes it to go through
proguard, which complains about missing dependencies.

Also remove the unnecessary libraries that are already included
through frameworks/base/packages/SettingsLib/common.mk.

Test: m -j ANDROID_COMPILE_WITH_JACK=false RunSettingsLibRoboTests
Change-Id: I11f007c4321bb9b147f62010eae046f75d1a52e3
2017-03-22 16:01:52 -07:00
TreeHugger Robot
000d3082f5 Merge "AVRCP version interop pereference (3/3)" 2017-03-22 20:37:50 +00:00
TreeHugger Robot
adb9fcde85 Merge "Update “don’t snooze” in expanded snooze menu to cancel" 2017-03-22 19:25:19 +00:00
Winson Chung
2423c13507 Merge "Removing per-user PiP component." 2017-03-22 18:56:07 +00:00
TreeHugger Robot
c1d915f655 Merge "Fix crash on user switch." 2017-03-22 18:42:02 +00:00
Ajay Panicker
c280c485eb AVRCP version interop pereference (3/3)
Add a mechanism to allow the user to select the AVRCP version broadcasted
through SDP in the developer options. This helps solve some interoperability
issues such as with Honda Carkits where broadcasting AVRCP version 1.6 causes
media metadata to fail.

Bug: 35956792
Test: Select AVRCP version through developer option
Change-Id: Ibc271063058b6324b1a0517c6b853f8d7e6eb0f3
2017-03-22 11:34:25 -07:00
Chris Tate
b1669bf22b Merge "Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission" 2017-03-22 18:07:49 +00:00
Dan Shi
874a0916fc Merge "Add test configs to apct tests under frameworks/base" 2017-03-22 17:55:58 +00:00
Mady Mellor
4b9c9b97ab Update “don’t snooze” in expanded snooze menu to cancel
Test: manual - snooze notification, expand menu, note ‘cancel’ option
Bug: 36249627
Change-Id: I6ea834df0b0f93ed89b5b26dc54cc404402cd962
2017-03-22 09:57:35 -07:00
Anthony Chen
0801a5c9bf Fix crash on user switch.
Recent changes in SystemUI expects taht the navigation bar have a parent
view that is not the WindowManager. Inflate navigation_bar_window as the
parent view for the CarNavigationBar as this is the view that the
default StatusBar users.

Test: verified that user switching no longer results in a crash
Bug: 36070562
Change-Id: I3e9c2efd4caa7b36478e621bc2dd6f7e41ad7fbd
2017-03-22 09:54:37 -07:00
Winson Chung
853c99a083 Removing per-user PiP component.
- This was added in ag/923778 for TV, where the TV recents activity, which
  is started per-user, needed to reference the PiP bounds to coordinate the
  layout of the PiP UI in recents.  As a result of that change, the PiP
  manager for both phones and TV was being instantiated multiple times,
  once for the primary user, and another for secondary/managed users.  With
  each instantiation of the PipManager, we were re-registering the input
  consumer, and once the process was killed, the input consumer was not
  being cleaned up correctly and it not longer was registered with the
  primary SystemUI which drives the PiP.

  As of ag/1964066, the TV recents code is removed, so we can now safely
  remove the PipUI component for secondary users as well, ensuring only a
  single PipManager/InputConsumerController instance.

  This does not prevent PiP from working in secondary users, but only
  leaves the input consumer and menu controller in the primary user's
  SystemUI.
- Fix some crashes when interacting with the PiP in a secondary user,
  all communication between the menu controller and the menu activity
  should be done in a parcelable way as the menu activity runs per-user
- Adding exception when the PipUI component is not created for the primary
  user
- Initial changes to dump input consumers in WM to be able to correlate
  them with SysUI's state

Bug: 35792308
Test: Ensure PiP component is not started for secondary user, verify that
      it still works on secondary users

Change-Id: I3df10860227498bc37799ad296f0a4b71b87d30e
Signed-off-by: Winson Chung <winsonc@google.com>
2017-03-22 08:56:02 -07:00
Jason Monk
361915c727 Move global actions to sysui and add plugin interface
- Move default global actions ui to sysui
 - Add fallback legacy interface in case sysui breaks
 - Switch to fallback if sysui dies or isn't responding

Test: Long-press power
Change-Id: I943522611de5dbbee61e66c67cf3a56379091e97
2017-03-22 09:41:34 -04:00
Daichi Hirono
4e4ec1628d Fix MtpDocumentsProvider test.
ag/2008770 fixed the flag value for root document.
We also need to update expected value for MtpDocumentsProviderTest.

Bug: 35855598
Test: adb shell am instrument -w \
    com.android.mtp.tests/com.android.mtp.TestResultInstrumentation

Change-Id: I3ca7f08dc8f14b84c350dbc3ddd5a0ba5ff7d04f
2017-03-22 15:57:48 +09:00
TreeHugger Robot
c49d7d0158 Merge "Change WifiTrackerFactory methods to static." 2017-03-22 01:42:28 +00:00
Christopher Tate
ec3a9f3346 Give shell the CHANGE_DEVICE_IDLE_TEMP_WHITELIST permission
Shell needs to have this permission in order for the deviceidle
tempwhitelist shell command to exist.

Bug 34715096
Test: cts-tradefed run cts -m CtsAppTestCases \
  -t android.app.cts.ActivityManagerTest#testBackgroundCheckService

Change-Id: Ic1fdd87b6020649705ba0c9349dd00dd096037f3
2017-03-21 17:52:42 -07:00
Winson Chung
b5c0a7a411 Merge "Revert "Fixing issue with IME not showing after PiP menu is shown."" 2017-03-22 00:04:42 +00:00
Winson Chung
ccc470cae7 Revert "Fixing issue with IME not showing after PiP menu is shown."
This reverts commit d703c63c5f7a7caf1f71515da71276ae90bcbef0.

Reason for revert: Causing b/36466104
Test: Revert

Change-Id: I04823cc4294ac5da32908a79da1c8da592d71e34
2017-03-21 16:56:51 -07:00
Sundeep Ghuman
f4a5b7c49d Change WifiTrackerFactory methods to static.
Bug: b/36403696
Test: Preliminary step to enable creation of Espresso tests b/36403696
Change-Id: I8be0cc43f22d6ae3bddc4e37b557060e256d7df4
2017-03-21 16:33:54 -07:00
TreeHugger Robot
9016c2c953 Merge "Create a way to inject a WifiTracker into WifiSettings." 2017-03-21 22:14:49 +00:00
Sanket Padawe
980231f317 Merge "Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis." 2017-03-21 22:13:02 +00:00
Winson Chung
7ba04df38c Merge "Ensure we don't set visibility after action is destroyed." 2017-03-21 19:59:52 +00:00
Winson Chung
356b218a80 Merge "Prevent handling bad touches." 2017-03-21 19:58:55 +00:00
TreeHugger Robot
2ff5824741 Merge "Update battery settings duration remaining summary text." 2017-03-21 19:39:59 +00:00
Sanket Padawe
7e46025199 Change 'idx' to 'index' in SubscriptionManager & TelephonyManager apis.
Bug: 35767068
Test: No build failure.
Change-Id: I3b15901ff18742b5e99f03e74a6412d352461458
2017-03-21 11:31:29 -07:00
Winson Chung
040e72281c Prevent handling bad touches.
Bug: 36466104
Test: Interact with PiP
Change-Id: I53321f22f2058ce8b3d0132f9d57818eb1a22d95
2017-03-21 11:19:37 -07:00
Winson Chung
7200eda462 Ensure we don't set visibility after action is destroyed.
- The activity call to setVisible() does not check before using the
  decor view (which is reset once the activity is destroyed).

Bug: 36469656
Test: Test PIP app which finishes in response to action handling
Change-Id: I50e49bd6e9759c11edd71c0c5cac61939e3bf276
2017-03-21 18:11:37 +00:00
TreeHugger Robot
914c4ab1ed Merge "Fix QS/status bar BT state" 2017-03-21 18:10:04 +00:00
Doris Ling
f6b430d234 Update battery settings duration remaining summary text.
- revert the prevoius change and update the correct string.

Bug: 36375846
Test: builds
Change-Id: Ia958b253fe420e8f9aed1286d72ae2b6eeb80abe
2017-03-21 10:53:19 -07:00
Casey Burkhardt
fc7f4ceb44 Merge "Fix NPE in NavigationBarFragment" 2017-03-21 16:40:07 +00:00
Jorim Jaggi
6f9dbcb742 Implement new thumbnail loading strategy
- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
2017-03-21 14:59:48 +01:00
Jorim Jaggi
35e3f53a30 Also store reduced resolution screenshots
In order to speed up loading time when scrolling through it
in recents. They will be used in recents in the next CL. Also, we
use JPG instead as loading JPG is much faster than PNG.

Test: TaskSnapshotPersisterLoaderTest
Test: TaskSnapshotCacheTest
Bug: 34829962
Change-Id: I4c74b26969ae459bd3b1a42707011a49f425abd9
2017-03-21 14:58:50 +01:00
TreeHugger Robot
7989a34252 Merge "Fix an argument passing to putStorageDocuments." 2017-03-21 07:55:58 +00:00
Dan Shi
7f2afd2dff Add test configs to apct tests under frameworks/base
TouchLatency is needed by test TouchLatencyJankTestWear
UiBench is needed by test UiBenchJankTests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
make -j32 TouchLatency TouchLatencyJankTestWear  && \
tradefed.sh run template/local --template:map test=TouchLatencyJankTestWear \
      --test-tag testname --log-level-display VERBOSE
make -j32 UiBenchJankTests UiBench  && \
tradefed.sh run template/local --template:map test=UiBenchJankTests \
      --test-tag testname --log-level-display VERBOSE

Change-Id: I63f23e3a21ad1343607953958fb7bb0a5fb8c343
2017-03-21 00:05:14 -07:00
TreeHugger Robot
c7da040f22 Merge "Change string for connected via WFA." 2017-03-21 03:15:14 +00:00
Stephen Chen
36dd5cf152 Change string for connected via WFA.
Bug: 34773168
Test: runtest
Change-Id: I292013c874012cca004be1078f854cb3ee145112
2017-03-20 18:22:58 -07:00
Sundeep Ghuman
78a309d353 Create a way to inject a WifiTracker into WifiSettings.
Bug: b/36403696
Test: Preliminary step to enable creation of Espresso tests b/36403696
Change-Id: I63c49cca0905a9d05964c11b3307ccf1859db7ec
2017-03-20 17:55:17 -07:00
Daichi Hirono
72de7a99b3 Fix an argument passing to putStorageDocuments.
Previously device.eventSupported was wrongly passed to
putStorageDocuments while we need to pass device.operationSupported.

Bug: 35855598
Test: manually copied a file from phone to phone
Change-Id: Iaa5d8973b3af0a157ed3196fb83971aeb148d203
2017-03-21 09:55:07 +09:00
Winson Chung
056d2201d4 Merge "Showing notification when activity is in PiP." 2017-03-21 00:29:05 +00:00
Casey Burkhardt
b9dcd66aae Fix NPE in NavigationBarFragment
Retains handle to a ContentResolver within NavigationBarFragment
to account for Context sometimes being unavailable.

Bug: 36356742
Change-Id: Id9070276feb77126e4d0358b8db91516f27ace47
Test: Manual
2017-03-20 16:46:31 -07:00
Eugene Susla
a540460e7b Merge "Register PackageMonitor for CompanionDeviceManagerService" 2017-03-20 23:04:16 +00:00
TreeHugger Robot
6e8e022d0d Merge "Ensure that we update the controller before setting menu visibility." 2017-03-20 22:56:23 +00:00
Winson Chung
ccbc4b9034 Ensure that we update the controller before setting menu visibility.
Bug: 36444329
Test: Launch PIP with media session, expand to see menu
Change-Id: I8ca4d459a2989c93c4300ac687dce298f4233822
2017-03-20 14:01:36 -07:00
Eugene Susla
6a7006a968 Register PackageMonitor for CompanionDeviceManagerService
1. On package removed -> remove all its associations
2. On package updated -> if had associations, update special access permission
in accordance with (potentially changed) permission entries in manifest

Bug: 30932767
Test: 1. Remove app, and ensure xml entries for it got removed.
2. adb install new version of app without special permissions in manifest, and
ensure whitelist removal method got called
Change-Id: I87261c05ddcf40a18332d160b44ee2f8284df5e4
2017-03-20 13:38:58 -07:00