Commit Graph

309172 Commits

Author SHA1 Message Date
yuanhao
823fe8481e Merge "Fixed NPE in canAddMoreManagedProfiles" am: a83222e4fb am: 8d3a8b1327 am: 1a34a41268
am: 70abb5122a

Change-Id: I806e4ce4f01e28c3b7e413b6447154a3cf77aca5
2017-01-19 19:14:52 +00:00
Vladislav Kaznacheev
6a944ca175 Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText
Bug: 34454987
Test: android.view.cts.TooltipTest
Change-Id: I7203d5c61804b79584ba8449643c6c0f27a90747
2017-01-19 11:12:53 -08:00
yuanhao
70abb5122a Merge "Fixed NPE in canAddMoreManagedProfiles" am: a83222e4fb am: 8d3a8b1327
am: 1a34a41268

Change-Id: Ic3673491705af125a88f66460996911244184fc8
2017-01-19 19:10:44 +00:00
Amith Yamasani
f45badefbb Merge "Protobufferize DiskStats dumpsys" 2017-01-19 19:08:12 +00:00
yuanhao
1a34a41268 Merge "Fixed NPE in canAddMoreManagedProfiles" am: a83222e4fb
am: 8d3a8b1327

Change-Id: I8a5f9b7fcf46d2a801446fabece327ddceec3add
2017-01-19 19:05:54 +00:00
TreeHugger Robot
bae6c26fdf Merge "Ensure we account for insets in minimized state." 2017-01-19 19:04:38 +00:00
Kang Li
002693910e Merge "Initialize Sharing Ranker with a pre-trained model." 2017-01-19 19:03:32 +00:00
yuanhao
8d3a8b1327 Merge "Fixed NPE in canAddMoreManagedProfiles"
am: a83222e4fb

Change-Id: Icd63296061485d29a95fa6c6735a8c1a91099afc
2017-01-19 19:00:55 +00:00
Treehugger Robot
a83222e4fb Merge "Fixed NPE in canAddMoreManagedProfiles" 2017-01-19 18:53:25 +00:00
Tyler Gunn
15470f9bfc Merge "Adding self-managed connection service APIs." am: 3a7253a09d am: 2155be0218 am: d70e5d9317
am: 61650097ed

Change-Id: Icfeff293b66b1bb062095a857c8a22ac0dcbdd63
2017-01-19 18:44:10 +00:00
Tyler Gunn
61650097ed Merge "Adding self-managed connection service APIs." am: 3a7253a09d am: 2155be0218
am: d70e5d9317

Change-Id: I20ba841ceefb5905bf81262d6c42ea4b252ba3d4
2017-01-19 18:39:50 +00:00
Tyler Gunn
d70e5d9317 Merge "Adding self-managed connection service APIs." am: 3a7253a09d
am: 2155be0218

Change-Id: I75319e09f352905ffa45194086b11711f9070c70
2017-01-19 18:34:53 +00:00
Adam Lesinski
8f3b174d90 Merge "Teach apps to refresh AppInfos without restarting" 2017-01-19 18:30:43 +00:00
Tyler Gunn
2155be0218 Merge "Adding self-managed connection service APIs."
am: 3a7253a09d

Change-Id: I5d7aa094d71e40bc2ce8e6d051c757a82d9c6083
2017-01-19 18:29:54 +00:00
Wale Ogunwale
f0a60a9c60 Workaround for leaked dim layer.
Tasks are some how leaking their dim layer. The root cause of Task
not properly cleaning-up its dim layer in Task.removeImmediately()
hasn't being identified, but the CL will prevent user devices from
getting into a bad state until we figure-out the cause for the leak.

Note that when this occurs the task has been completely removed from
the system and the only reference left to it is for the dim layer...

Bug: 34395537
Test: This is a workaround until the real problem is identified.
Change-Id: Id8d45edb3b6858be82e4f057ae3da480da4f4b59
2017-01-19 10:27:10 -08:00
Treehugger Robot
3a7253a09d Merge "Adding self-managed connection service APIs." 2017-01-19 18:23:34 +00:00
Hangyu Kuang
9deb7b5e73 Merge "media: Add new API to set next output file." 2017-01-19 18:17:45 +00:00
Jeremy Joslin
3ef77d3d0c Remove NetworkScorerAppManager.isCallerActiveScorer().
The method is no longer used.

Test: adb shell am instrument -e class android.net.NetworkScorerAppManagerTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Bug: 33781558
Change-Id: I2b4acd54a747bd480a4a91bac424d39e264ea882
2017-01-19 09:55:26 -08:00
Michal Karpinski
b71fedc494 Unhide enabling backup service in DO APIs
Bug: 28628532
Change-Id: I5940735994c7e63fae86549fedcf138ad12151cd
2017-01-19 17:49:51 +00:00
Amith Yamasani
38f91ff986 Protobufferize DiskStats dumpsys
Bug: 34227723
Test: cts-tradefed run cts-dev -t CtsIncidentHostTestCases
Change-Id: I4c99b8d4a2f120bea3d0ab196c44f6634224d59b
2017-01-19 09:35:54 -08:00
Winson Chung
97a60d9d00 Falling back to media session controls.
- If there are no specific actions set by the current PiP activity,
  then fall back to actions provided by the current media session.

Test: Start PiP activity with a media session

Change-Id: Iabb33606eec682fa2fa4d1ba065c8b2763023de7
2017-01-19 09:16:31 -08:00
Winson Chung
3535df26e3 Move activity to fullscreen stack when it is relaunched in PIP.
- Only happens when the caller is not from the same package.

Bug: 33754261
Test: Open a PIP activity, try to launch it again from launcher
Change-Id: I3c364ebe31a7626b9133d9c4c1fafc718c2eecf9
2017-01-19 09:12:30 -08:00
Winson Chung
114aeea516 Ensure we account for insets in minimized state.
- When dragging slightly offscreen to minimize the PIP,
  ensure that the bounds take the insets into account so
  that the user can still interact with the PIP.

Test: Enter PIP in landscape, try to minimize it.

Change-Id: I093a37ba600722d44e50cc68dac77365a2ba062e
2017-01-19 08:54:29 -08:00
Polina Bondarenko
80909ce333 Make TelephonyManager#get/setAllowedCarriers system api
Make TelephonyManager#get/setAllowedCarriers system api under
PackageManager#FEATURE_TELEPHONY_CARRIERLOCK feature flag.

Bug: 33480084
Test: cts

Change-Id: I1ce77a9e3801bd4003b52887d0a36866e5a5b81a
2017-01-19 17:53:55 +01:00
Polina Bondarenko
8d5bb11126 Added NAN temperature value handling to HardwarePropertiesManager.
Consider NAN temperature value as undefined temperature.

Bug: 34107726
Test: cts

Change-Id: I933fe3a1c1eb88960cee2eb32cbc56a88d9da9e4
2017-01-19 17:48:29 +01:00
TreeHugger Robot
0ae1a7d9e9 Merge "Check for REQUEST_NETWORK_SCORES instead of BROADCAST_NETWORK_PRIVILEGED." 2017-01-19 16:40:47 +00:00
Jeff Sharkey
e1a774e359 Merge "Follow installd API changes." am: 915f279556 am: 6b662722f0 am: 5e17fe3e8c
am: f52972ad8b

Change-Id: Ib22fb4e87944824a64faf93667181a8bc56098ef
2017-01-19 16:35:27 +00:00
Jeff Sharkey
f52972ad8b Merge "Follow installd API changes." am: 915f279556 am: 6b662722f0
am: 5e17fe3e8c

Change-Id: I4b812be109896a3574b1034033c163d8f2872e59
2017-01-19 16:30:42 +00:00
Jeff Sharkey
5e17fe3e8c Merge "Follow installd API changes." am: 915f279556
am: 6b662722f0

Change-Id: Ia9406884d17226b10cae21fd2d98eecb9e5e7253
2017-01-19 16:26:23 +00:00
TreeHugger Robot
5a82d6c9d7 Merge "Fix transferring of starting windows" 2017-01-19 16:22:46 +00:00
Jeff Sharkey
6b662722f0 Merge "Follow installd API changes."
am: 915f279556

Change-Id: Ib362db25a0393e859909e06a00dbb0c655fd4b47
2017-01-19 16:21:54 +00:00
Michael Wright
794cf190aa Also parse "1" as true for ContentValues#getAsBoolean
SQLite's internal representation for booleans is an integer with a value
of 0 or 1, so without this check, boolean values obtained via
DatabaseUtils#cursorRowToContentValues will always return false.

Bug: 34365384
Test: demo app, cts
Change-Id: I6c0829c992252ca5ee16bd5eac48668507fd4089
2017-01-19 16:19:28 +00:00
Jeff Sharkey
915f279556 Merge "Follow installd API changes." 2017-01-19 16:16:03 +00:00
Jorim Jaggi
f9084ecae2 Persist task snapshots to disk
So they can be used again after rebooting or when the process gets
killed, but the snapshot is still used for recents.

Also implement TaskSnapshotLoader, to restore it from disk. The
infrastructure around restoring and caching snapshots for recents
will be implemented in the next CL.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotPersisterLoaderTest

Bug: 31339431
Change-Id: Iaec03c4cc92e04b6dd7e623bca755ddc92613bce
2017-01-19 17:06:42 +01:00
Polina Bondarenko
d5cfe6cdf1 Make TelephonyManager#get/setAllowedCarriers system api
Make TelephonyManager#get/setAllowedCarriers system api under
PackageManager#FEATURE_TELEPHONY_CARRIERLOCK feature flag.

Bug: 33480084
Test: cts

Merged-In: I1ce77a9e3801bd4003b52887d0a36866e5a5b81a

Change-Id: I1ce77a9e3801bd4003b52887d0a36866e5a5b81a
2017-01-19 16:43:29 +01:00
TreeHugger Robot
96415fb603 Merge "Pass more data through the recommendation request." 2017-01-19 15:29:42 +00:00
Bartosz Fabianowski
d9fa667e2d Allow system to retrieve persistent preferred activities
This CL allows system code to retrieve persistent preferred activities
(default intent handlers set by a Device Owner or Profile Owner app).
Settings will use this information to indicate which default apps were
set by the admin.

There is no public PackageManager API. Settings will call via the
IPackageManager interface directly.

Bug: 32692748
Test: Will be CTS-verifier-tested together with Settings

Change-Id: Ibd0a39f13852a9117836ca75cc0882e4cbe0ec1d
2017-01-19 16:28:51 +01:00
Jorim Jaggi
e09fc6b8d6 Fix transferring of starting windows
Since we may transfer starting data we can not store
AppWindowToken in that class.

Additionally, remove starting window directly if it was
transferred. The normal removing path doesn't really work as
the fields aren't set.

Also fixes a monkey crash in the same code region.

Test: Open a notification that creates multiple activities with
using TaskStackBuilder, verify no windows leaking.
Test: (For monkey crash) Boot device, pray to the monkey god
Change-Id: I64fb176b579535adea1916d1623ad03ab06ca67e
Fixes: 34364463
Fixes: 34361417
Fixes: 34349533
2017-01-19 15:40:05 +01:00
Przemyslaw Szczepaniak
abb47f3606 Merge "Track libcore java.util.logging update to ojdk8u60" am: 76edc3b8a5 am: 0823ed394b am: b72c17afdc
am: baa1aea5e1

Change-Id: Id00a02599847b902878eb501d687645f66e15420
2017-01-19 14:35:52 +00:00
Przemyslaw Szczepaniak
baa1aea5e1 Merge "Track libcore java.util.logging update to ojdk8u60" am: 76edc3b8a5 am: 0823ed394b
am: b72c17afdc

Change-Id: I84dc0804b1f9db5359d9c9d8caf0356398eab2d5
2017-01-19 14:29:13 +00:00
Przemyslaw Szczepaniak
b72c17afdc Merge "Track libcore java.util.logging update to ojdk8u60" am: 76edc3b8a5
am: 0823ed394b

Change-Id: Iee0a79ac5f1770b218e6ff9e4a9f0d14c3c90378
2017-01-19 14:22:48 +00:00
Przemyslaw Szczepaniak
0823ed394b Merge "Track libcore java.util.logging update to ojdk8u60"
am: 76edc3b8a5

Change-Id: I0598b566f4d02a6d14c6be86f917bcef48bbf748
2017-01-19 14:16:56 +00:00
Przemyslaw Szczepaniak
76edc3b8a5 Merge "Track libcore java.util.logging update to ojdk8u60" 2017-01-19 14:11:13 +00:00
Orion Hodson
1ed0f2d447 Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" am: e5c3aed8dc am: a08d67495c am: da4cfdfbdf
am: c61c0baeee

Change-Id: I0252e8a7684b05e567f7563e7a82376bcef4b03c
2017-01-19 13:56:37 +00:00
Orion Hodson
c61c0baeee Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" am: e5c3aed8dc am: a08d67495c
am: da4cfdfbdf

Change-Id: I5bf99527268cb26f3b1cab4a24080b9598ee03d2
2017-01-19 13:52:05 +00:00
TreeHugger Robot
a85963aba9 Merge "Unhide public methods for API Council review. Test: Existing unit tests still pass. Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171" 2017-01-19 13:50:26 +00:00
Orion Hodson
da4cfdfbdf Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" am: e5c3aed8dc
am: a08d67495c

Change-Id: I4ea03fd453e58737b795c9f856db6a8312fdd1a0
2017-01-19 13:47:37 +00:00
Orion Hodson
a08d67495c Merge "API: Unhide dalvik.system.InMemoryDexClassLoader"
am: e5c3aed8dc

Change-Id: I90cd3d3b09000bd3e1961a63d95eede19f0bd12e
2017-01-19 13:43:05 +00:00
Orion Hodson
e5c3aed8dc Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" 2017-01-19 13:35:52 +00:00
Svet Ganov
e710a6fc66 Use separate switch ops for runtime permissions
If permissions review is enabled we allow individual
control of fine graned permissions in the SMS group.
This change ensures these permissions use the
corresponding app op as a switch to allow indifidual
control.

Change-Id: I83cd78a78a8266df8324b8a10cd9e36c04ff3112
(cherry picked from commit 99e4d51584)
2017-01-19 12:31:42 +00:00