Commit Graph

309172 Commits

Author SHA1 Message Date
TreeHugger Robot
d2b93464da Merge "Adding AppOps setting for entering PiP when hidden." 2017-01-24 18:38:54 +00:00
Nancy Zheng
3cf5963288 Merge "Query for the settings package in KeyguardManager instead of hardcoding it." into cw-f-dev am: 8ac1bff7e2 am: d0c5f0047f
am: 7a86073718

Change-Id: I9c1cc2e674be02d9440024c3b64432cf0c3d371d
2017-01-24 18:38:41 +00:00
TreeHugger Robot
2bf3b1b2cf Merge "Fixing error calculating the top pinned activity." 2017-01-24 18:20:13 +00:00
Jesse Hall
b0309b885d Merge "Don't lower priority of EGL Init thread" into nyc-mr2-dev
am: 9294b75354

Change-Id: I8caf1f80fdbbf43198594c9072b8418f78818f09
2017-01-24 18:13:13 +00:00
Jesse Hall
e8a5df8530 Don't lower priority of EGL Init thread
am: 37e63c705e

Change-Id: Icd21c9243558f4427d48f967f4ea4ae7aa1e2b02
2017-01-24 18:13:07 +00:00
John Reck
efa38e38fb Revert "Workaround libmemunreachable lockup"
This reverts commit 553ae6ab07.

Change-Id: I593b78f7073d84a5e16372849d27e943af65694c
Fixes: 34586922
2017-01-24 18:13:03 +00:00
Makoto Onuki
86389b3edc Temporarily disable LauncherApps reverse access check
Bug 34650921
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

With the reverted CTS,
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testManagedUser'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'

Change-Id: Id9d13c11816fca10b2dacac92537b2baded3ac9c
2017-01-24 10:08:29 -08:00
Jesse Hall
9294b75354 Merge "Don't lower priority of EGL Init thread" into nyc-mr2-dev 2017-01-24 18:08:15 +00:00
John Reck
be34e8ee90 Revert "Destroy DisplayLists on time"
This reverts commit 2874daa4d3.

It broke a bunch of stuff and occasionally blank webviews are preferable to native crashes

Bug: 34638191
Change-Id: I6c5849d4ef0db3ac7c9ed1b1a128f2272a5344c2
2017-01-24 18:06:44 +00:00
Jeff Sharkey
9f1fc2d787 Disable RescueParty on -eng builds, or with flag.
For development devices, RescueParty can be a little too helpful, so
offer a way to disable it.

Test: builds, boots
Bug: 34669556
Change-Id: I401e8e7a99bdde6c0fe09880f0190384b4b0a3de
2017-01-24 11:05:19 -07:00
Dmitri Plotnikov
daab716f35 Disabling crash dialogs on TV
Bug: 34518944
Test: threw an exception and saw the app nicely disappear without a dialog
Change-Id: I08ccfe7b34af6e2af6f91fea8750e81955901f40
2017-01-24 17:53:59 +00:00
Jason Monk
5559543e81 Merge "Add long-click to app info for plugin settings" 2017-01-24 17:49:46 +00:00
Jaewan Kim
6e2b01ce75 Allow privileged app to set media key event listener
If the media key listener is set, the listener will receive the media key
events before any other sessions, but after the global priority session.
If the event is handled by the listener, other sessions cannot get the event.

Privileged app needs permission android.permission.SET_MEDIA_KEY_LISTENER
to set the listener.

Bug: 30125811
Change-Id: I2b2cf4ac7873b70899194701c6921990dcb9de02
2017-01-24 09:41:54 -08:00
Jaewan Kim
5026936e49 Allow privileged app to set volume key long-press listener
If the volume long-press listener is set, the listener will receive
the volume key long-presses instead of chaging the volume.

Privileged app needs permission
android.permission.SET_VOLUME_KEY_LONG_PRESS_LISTENER to set the listener.

Bug: 30125811
Change-Id: I5e8fafbb950e5e11522da0f14004648d0877bf3e
2017-01-24 09:41:43 -08:00
Rubin Xu
0cbc19e4a6 Add unit tests for LockSettingsService
Add infrastructure and first sets of unit tests for LockSettingsService

Bug: 33126408
Test: runtest frameworks-services -c com.android.server.LockSettingsServiceTests
Change-Id: I4f3b7f6eaef7122f72b06bd11ce49134a093fe35
2017-01-24 17:40:04 +00:00
Jorim Jaggi
8faa0600d9 Flip task snapshot flag
Test: Boot and pray.
Test: Pray more that unknown things are not breaking.
Test: Open a couple of apps, go to recents, make screenshots are
up to date, reboot, make sure screenshots are still there
Bug: 31339431

Change-Id: Ib39798cefb47c91aeea33c18df3099141e8012dd
2017-01-24 18:36:52 +01:00
Andrew Sapperstein
4c2fe5da49 Merge "Add Settings.Global configs to high temp warning." 2017-01-24 17:34:31 +00:00
Jason Monk
685db72eb7 Fix up the tests (yet again)
Turns out there was an actual bug in QSFooter where it was using
the wrong handler class (and not showing any of its security features),
and it would have been caught by presubmit if it was working...

Test: runtest systemui
Change-Id: Icbb19db1cc6f3f2a5f984618428ceb2899af69ab
2017-01-24 12:34:23 -05:00
Jorim Jaggi
d285d67f3a Merge changes I5df77ae5,Ice538d09,I2451be87,I953ab6cb,Ie1b8debc
* changes:
  If the surface of a window is displayed, screenshot
  Update starting window fade out to spec
  Fill task snapshot with background color
  Add starting windows while unlocking
  Starting window tests, yay!
2017-01-24 17:32:32 +00:00
Shreyas Basarge
865303fce5 API to select backup transport
This cl adds an API to select a backup
transport by its component name and
receive a callback when BackupManager
is bound to the transport. Calling this API
will make BackupManager bind to the transport
if it isn't already bound to it.

Also fixes the issue where BackupManager would
detect only one transport per package.

Ref: go/backup-transport-switching

Bug: 33616220
Test: Manually tested. GTS tests will be put up shortly.

Change-Id: I8c23bdbb84ceb05eb1fad9b3a8b9c4441cb06c74
2017-01-24 17:28:48 +00:00
TreeHugger Robot
e5ec708000 Merge "Fix crash on user switch" 2017-01-24 17:23:07 +00:00
Niels Egberts
f549a5c3f5 Merge "Implement time markers for TTS." 2017-01-24 17:19:34 +00:00
Robin Lee
e7056216f8 Lock all profile tasks if keyguard is locked too
Bug: 29244275
Test: //tests/PoApi/src/com/google/android/afwtest/poapi/WorkChallengeTest
Change-Id: I1df84aa1af675af68180a84440ef36adb003b42d
2017-01-24 17:16:56 +00:00
Winson Chung
59fda9e217 Adding AppOps setting for entering PiP when hidden.
- In O, apps can request to enter picture-in-picture when the user
  effectively leaves their activity for another task by default. To
  prevent this from being abused, we need to add a setting for the
  user to disable this behavior per-package in the system level.
  When disabled, any activity from that package will only be able
  to enter picture-in-picture when it is visible and resumed.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: Ib3a993e99ffb071706c6b7d3fb1c882b74acc5d7
Signed-off-by: Winson Chung <winsonc@google.com>
2017-01-24 09:15:01 -08:00
TreeHugger Robot
f779f91cd2 Merge "Implement TextClassification-related methods." 2017-01-24 16:54:57 +00:00
Pankaj Kanwar
dd656b91cc Merge "Create Public API which exposes if the device is in a state where simultaneous voice and data are possible." 2017-01-24 16:47:05 +00:00
Yohei Yukawa
7383ce62ee Merge "Fix ImeSubtypeListItem#compareTo()" 2017-01-24 16:37:09 +00:00
Nicolas Prevot
d37c4a99b2 Allow DO to provision even if it has set disallow remove mp.
If the device owner has set DISALLOW_REMOVE_MANAGED_PROFILE,
and there is already a managed profile:
it should be allowed to provision a new managed profile by
deleting the old one.
Test: adb shell am instrument -e class
com.android.server.devicepolicy.DevicePolicyManagerTest
-w
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
BUG:34116228

Change-Id: I9e6f39924107aee40b57d22e638487a1ea3132de
2017-01-24 16:36:14 +00:00
Nicolas Prevot
45d2907863 Update DPM unit tests checking isProvisioningAllowed for comp.
Two of the tests were actually checking the same thing. Removed one.
Refactore another test to make it easier to read.

Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest
-w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
BUG:32629873

Change-Id: Id4ca9bd8c113a858b016fb02d04bf4c76bbcb027
2017-01-24 16:35:58 +00:00
Alexander Hills
3c290d43b1 Merge "Changes the default value of Notification.Action.mAllowGeneratedReplies" 2017-01-24 16:31:42 +00:00
Julia Reynolds
dbfb40f163 Optionally show accessibility stream volume row.
Bug: 30448020
Test: manual
Change-Id: I86a28c7a900d1fbc378f0ce4c113d59353bcb416
2017-01-24 16:27:23 +00:00
Paul Duffin
762b31f7a4 Merge "Prepare for removal of legacy-test from default targets (Part 2)" am: 5a3a3d298a am: a07f9d522b
am: 5aa7e5b46f

Change-Id: I6aede1f1e2216233493cebe3efba43686aa3ad0d
2017-01-24 16:18:43 +00:00
Paul Duffin
5aa7e5b46f Merge "Prepare for removal of legacy-test from default targets (Part 2)" am: 5a3a3d298a
am: a07f9d522b

Change-Id: I758123e58a78ac515fb4ed0ce8e1647cfd1a3dc8
2017-01-24 16:12:57 +00:00
Paul Duffin
a07f9d522b Merge "Prepare for removal of legacy-test from default targets (Part 2)"
am: 5a3a3d298a

Change-Id: I14fd4502454a98baf01f5ace83fe0c583005a52d
2017-01-24 16:08:26 +00:00
Chris Wren
b62371434c Move MetricsReader to SystemApi
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics  && runtest --path frameworks/base/core/tests/coretests/src/com/android/internal/logging/legacy/
Change-Id: If55f0444d5a836f24234182d298ebc128643efc1
2017-01-24 11:07:37 -05:00
Paul Duffin
5a3a3d298a Merge "Prepare for removal of legacy-test from default targets (Part 2)" 2017-01-24 16:02:00 +00:00
Jason Monk
b68d6ae5a2 Fix crash on user switch
Don't re-register a user switcher while getting a user switched
callback, because that will cause a crash.

Test: switch users.
Fixes: 34661001
Change-Id: I31453d75aabe6ecd657e7500cf1823890d5262a0
2017-01-24 10:56:47 -05:00
Alex Hills
1f27f88f02 Changes the default value of Notification.Action.mAllowGeneratedReplies
Changes the default from false to true

Bug:31934635
Fixes:31934635
Test: CTS tests in ag/1824710
Change-Id: I1c7097627e77eed12bb9cc644c1cbb5c3197a750
2017-01-24 15:38:56 +00:00
Mahaver Chopra
470ecb2c6c Merge "Provisioning terms screen constants" 2017-01-24 15:33:57 +00:00
Niels Egberts
65c5078456 Implement time markers for TTS.
The service can inform the framework at which frame a part of the input
is spoken, and that information is then relayed to the client.

This can be used to highlight the currently spoken word/sentence or to
resume synthesis requests at the start of the last word/sentence.

Test: manual
Change-Id: Ie20a6764a8788cc3539cb058425e55eb6fde07db
2017-01-24 15:27:16 +00:00
Paul Duffin
4190f233f9 Prepare for removal of legacy-test from default targets (Part 2)
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Merged-In: If507b641624a2933e722f61e815890fcdf442265
Change-Id: Icdcad50f1cc32e900bc9e882f1db2867ea170fbf
2017-01-24 15:26:42 +00:00
Jorim Jaggi
52e85da8fa If the surface of a window is displayed, screenshot
We really really don't care about whether it's actually visible,
onScreen, displayed, winVisible, visibleNow, readyForDisplay or
whatever. The only thing that matters when screenshotting is the
fact whether the surface is shown or not. If it's shown, it must
be good enough for screenshotting. Period.

Test: Go to settings, go to recents, make sure screenshot is taken
all the time.
Bug: 31339431
Change-Id: I5df77ae537b5e70f6cb17e5e18405926135d4312
2017-01-24 16:25:40 +01:00
Jorim Jaggi
d51febd995 Update starting window fade out to spec
Test: Open app, make sure starting window disappears nicely
Bug: 31339431
Change-Id: Ice538d0937f17ed6901ab56ef208f9a327250d51
2017-01-24 16:20:45 +01:00
Jorim Jaggi
829b9cd100 Fill task snapshot with background color
Make sure to fill the portions that are not covered by the
snapshot are filled with the task background color.

Also fix an issue where the starting window was removed across
configuration changes.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotSurfaceTest
Bug: 31339431
Change-Id: I2451be87aff79b337015ab4bba72cfa03c0d3582
2017-01-24 16:19:31 +01:00
Julia Reynolds
c4d3a70b97 Merge "Add updatable fields to Ranking" 2017-01-24 15:15:28 +00:00
TreeHugger Robot
425a129f1b Merge "add "splitName" attribute" 2017-01-24 15:13:51 +00:00
Abodunrinwa Toki
43e0350922 Implement TextClassification-related methods.
Implements TextClassificationManager.detectLanguages
 Implements TextClassifier interface

Bug: 34661057
Test: See: Ic2a5eceeaec4cd2943c6c753084df46d30511fee
Change-Id: Ic640b96f48bcad7cdd8c4dfac354b008a7ae3961
2017-01-24 15:13:04 +00:00
TreeHugger Robot
110dad7c78 Merge "[SettingsProvider] Auto disable ringtone sync" 2017-01-24 15:05:26 +00:00
Abodunrinwa Toki
1f50fa6df5 Merge "Update TextAssistant interface." 2017-01-24 15:04:29 +00:00
Abodunrinwa Toki
f001fefff3 Update TextAssistant interface.
Rename to TextClassifier
Move to android.view.textclassifier package
Adds getTextClassifierInfo(...)
Changes addLinks(...) to getLinks(...)

This CL also integrates this interface with framework components
and passes a context to TextClassificationManager.

Test: Tests will be added with implementation.
Bug: 34661057
Change-Id: If9e90f034ebb702c1f78e72b6a844f39eebf738f
2017-01-24 15:01:24 +00:00