Commit Graph

80351 Commits

Author SHA1 Message Date
TreeHugger Robot
ee39d54a8d Merge "Initial implementation of the new Save APIs." 2017-06-29 02:43:36 +00:00
Robert Carr
7ac5c00246 Merge "Merge "Disable requestVisibleBehind." into oc-dev am: e33c33e38a am: 1c89591f94" into oc-dr1-dev-plus-aosp
am: 72f4e8e370

Change-Id: Ie77f01858b133233f8278e59edaa17fbc2f1a51c
2017-06-29 02:40:17 +00:00
Robert Carr
c09f11ad36 Merge "Disable requestVisibleBehind." into oc-dev am: e33c33e38a
am: 1c89591f94

Change-Id: Ife4908481549c956a23118ce5f8422161cc73d9e
2017-06-29 02:24:23 +00:00
TreeHugger Robot
94eb534881 Merge "Parcel: Use @CriticalNative when possible." 2017-06-29 00:52:27 +00:00
Robert Carr
1c89591f94 Merge "Disable requestVisibleBehind." into oc-dev
am: e33c33e38a

Change-Id: Ie0733cb79acbe34536c4c031f1234dac134841d3
2017-06-29 00:26:35 +00:00
TreeHugger Robot
e33c33e38a Merge "Disable requestVisibleBehind." into oc-dev 2017-06-29 00:17:19 +00:00
Mady Mellor
9df9fbdd0d Merge "Adjustments to PIP position while flinging" into oc-dr1-dev am: 176f2533a1
am: 3e7a97f6fa

Change-Id: Ie79d0d1112c8cf840dbd1378d9f1959c6dd633df
2017-06-29 00:00:59 +00:00
Mady Mellor
3e7a97f6fa Merge "Adjustments to PIP position while flinging" into oc-dr1-dev
am: 176f2533a1

Change-Id: Ic5d38c862c155ac025884e53d688826b57829529
2017-06-28 23:53:23 +00:00
TreeHugger Robot
176f2533a1 Merge "Adjustments to PIP position while flinging" into oc-dr1-dev 2017-06-28 23:45:37 +00:00
Felipe Leme
979013d027 Initial implementation of the new Save APIs.
Test: manual verification with sample app (CTS tests coming later)

Bug: 62534917

Change-Id: I085a9c933bb5e8316d673976e059e13abd7098e5
2017-06-28 15:13:21 -07:00
Mady Mellor
15b29c7bba Adjustments to PIP position while flinging
Rather than using a scroller, find the actual edge intercept
based on the trajectory of the fling.

This is done by finding the two points it could intersect with
and checking which point is 'closer' (i.e. would be hit first
by the PIP).

Bias towards using the intersection with the top / bottom edge
if the PIP is being flung along the side it's currently on.

Also increases the maximum time for the fling.

Bug: 35358634
Test: manual - fling PIP around screen while in landscape
      and portrait
Change-Id: I26e943a5ddbc726ab86bc11e4271d4db034f3d47
2017-06-28 20:12:32 +00:00
Lei Yu
32fcad6b29 Merge "Add API to RuntimePermissionPresenter" into oc-dr1-dev am: a023184bbc
am: eba86e5147

Change-Id: I537c1fd6b4fbf3e00269c50aebb23e9fd7fa3ad6
2017-06-28 18:13:02 +00:00
Lei Yu
eba86e5147 Merge "Add API to RuntimePermissionPresenter" into oc-dr1-dev
am: a023184bbc

Change-Id: Ibd5d41feaf18aacad79345404c944f365aa19587
2017-06-28 18:05:18 +00:00
Lei Yu
a023184bbc Merge "Add API to RuntimePermissionPresenter" into oc-dr1-dev 2017-06-28 17:55:04 +00:00
Jeff Davidson
ad60b37575 Merge "Add EuiccManager#retainSubscriptionsOnFactoryReset API." into oc-dr1-dev am: f28843dd3f
am: 53ad2499f1

Change-Id: I538f0405811b0df28960acdb6f275689f19185dc
2017-06-28 17:41:26 +00:00
Jeff Davidson
53ad2499f1 Merge "Add EuiccManager#retainSubscriptionsOnFactoryReset API." into oc-dr1-dev
am: f28843dd3f

Change-Id: Ibd7c9c673c9272696cd955ddc50d4b55755d5429
2017-06-28 17:33:01 +00:00
Jeff Davidson
f28843dd3f Merge "Add EuiccManager#retainSubscriptionsOnFactoryReset API." into oc-dr1-dev 2017-06-28 17:23:49 +00:00
Makoto Onuki
b148b6c3c8 Parcel: Use @CriticalNative when possible.
- Change some methods from FastNative to CritcialNative
- Change nativeGetBlobAshmemSize to CritcalNative

- ParcelPerfTest.java (CorePerfTests)
bullhead-userdebug + prep_buller.sh, mean(ns), changed methods only
-- After
timeGetDataCapacity_mean    166 +39.16%
timeGetDataPosition_mean    169 +53.25%
timeReadByte_mean           296 +39.86%
timeReadLong_mean           284 +61.97%
timeSetDataPosition_mean    173 +34.10%
timeGetDataSize_mean        173 +37.57%
timeReadInt_mean            284 +57.04%

-- Before
timeGetDataCapacity_mean    231
timeGetDataPosition_mean    259
timeReadByte_mean           414
timeReadLong_mean           460
timeSetDataPosition_mean    232
timeGetDataSize_mean        238
timeReadInt_mean            446

Bug: 62135986
Test: bit CtsOsTestCases:android.os.cts.ParcelTest
Change-Id: I8c7ede25c87017ef2c7a49beaa3ac781c08ea365
2017-06-28 09:03:09 -07:00
TreeHugger Robot
77bada7e98 Merge "Fix ACTION_PROVISIONING_SUCCESSFUL documentation" 2017-06-28 12:00:32 +00:00
Esteban Talavera
4047bae5db Fix ACTION_PROVISIONING_SUCCESSFUL documentation
The current documentation implies that the intent is sent to the
application that requested provisioning (which would be in the
primary profile for managed profile provisioning). However it is
sent to the new DO or PO only.

Test: make docs
Change-Id: I9d1f66ec6f3d6d7fbaa1617d13a7da12d4acb490
2017-06-28 11:03:09 +01:00
Jack He
e70848b8a9 Merge "Add APIs to get remote device's battery level (1/2)" am: ceaccbfe70 am: 96f98f255b am: 3b22538b46
am: 45c074d406

Change-Id: I64c83fe094697b9d34a41e4044606e07d15a42e2
2017-06-28 08:50:29 +00:00
Jack He
45c074d406 Merge "Add APIs to get remote device's battery level (1/2)" am: ceaccbfe70 am: 96f98f255b
am: 3b22538b46

Change-Id: I0a579a4dfd47161b3d9aaccaae9a9a43fcc3bafd
2017-06-28 08:44:01 +00:00
Jack He
3b22538b46 Merge "Add APIs to get remote device's battery level (1/2)" am: ceaccbfe70
am: 96f98f255b

Change-Id: I004b05f007def7f995112b867f102fe11b88064d
2017-06-28 08:37:50 +00:00
Jack He
96f98f255b Merge "Add APIs to get remote device's battery level (1/2)"
am: ceaccbfe70

Change-Id: Ic3253ef666632aaaffe8e1547dc563cd3bca9e37
2017-06-28 08:32:54 +00:00
TreeHugger Robot
c1323664d4 Merge "Make the android.R.string.autofill public." 2017-06-28 01:55:57 +00:00
Jack He
1d312bfa78 Add APIs to get remote device's battery level (1/2)
* Add BluetoothDevice.getBatteryLevel() API to retreive battery level
  information of remote device
* Add BluetoothDevice.ACTION_BATTERY_LEVEL_CHANGED intent to notify user
  that remote device's battery level has changed

Bug: 35874078
Test: make, pair with devices and use them
Change-Id: I41051ee25383f5f3a1e505aef6f8c526385f58bd
2017-06-27 16:53:09 -07:00
Sudheer Shanka
7ea1738c1e Merge "Don't callback if all the delta values are zero." 2017-06-27 21:25:11 +00:00
Sudheer Shanka
ae4d5d93bd Merge "Check and block for network connectivity in onStart as well." 2017-06-27 21:24:33 +00:00
Robert Carr
8661c5e519 Disable requestVisibleBehind.
As there is no caller for the SystemAPI convertToTranslucent, there is no situation
where requestVisibleBehind will actually result in the activity becoming
visible behind. However we have bugs in the requestVisibleBehind code-path,
so rather than fix them...it seems better to just prevent ourselves from
running in to them. Full deletion of the code-path is scheduled for post-O
branches.

Change-Id: I6e7c79e036986564d2d443a603e63c341de23057
Fixes: 62512584
Test: Repro from bug. go/wm-smoke.
2017-06-27 13:46:14 -07:00
TreeHugger Robot
ab620613b9 Merge "Fixes grammatical error in InputMethodManager doc" 2017-06-27 19:54:23 +00:00
TreeHugger Robot
26426a7f64 Merge changes Ie5c878d3,I33d9be04
* changes:
  Remove forward-lock install tests
  Use PackageInstaller
2017-06-27 19:50:42 +00:00
Jeff Sharkey
55b390b399 Merge "Only require that system UIDs tag their sockets." 2017-06-27 19:11:03 +00:00
Android Build Merger (Role)
995b131ef9 Merge "Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev am: 9747b4ace5 am: f251056e0d" 2017-06-27 19:02:34 +00:00
Alex Sakhartchouk
07d9516d21 Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev am: 9747b4ace5
am: f251056e0d

Change-Id: I04d20a7cec15e321efd688b0dd7a5c740033cd99
2017-06-27 19:01:33 +00:00
TreeHugger Robot
77198fa260 Merge "Strip extenders on android go devices." 2017-06-27 19:00:27 +00:00
Nick Felker
8efc3ee3ee Fixes grammatical error in InputMethodManager doc
Fixes: 29645208
Test: This is not a code change, so tests should be unaffected.
Change-Id: I8b76166f3a7f1c825dc9725f6d7fd8e8c96fe410
2017-06-27 17:59:36 +00:00
Udam Saini
9981053810 Merge "Adds necessary permissions to system apis" 2017-06-27 17:59:21 +00:00
Julia Reynolds
8a3b459765 Strip extenders on android go devices.
Test: runtest notification-systemui
Bug: 35219985
Change-Id: I5a2d25c4ea33510c397b351d3604bd3f23f81521
2017-06-27 13:19:15 -04:00
Jeff Sharkey
5ab0243330 Only require that system UIDs tag their sockets.
Apps with a normal UID are typically isolated enough to not require
socket tagging; we're mostly interested in tracking down internal
UIDs that have lots of code sharing the same UID.

Also fix up everyone doing manual string checks of Build.TYPE, since
we now have first-class fields for those.

Bug: 38126076
Test: builds, boots
Change-Id: I3a40348196bd8459289f2b9355d9783a07f1e7dd
2017-06-27 11:11:06 -06:00
Alex Sakhartchouk
f251056e0d Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev
am: 9747b4ace5

Change-Id: I5e5ad0d619a844b445f21bc0272b5cdcf5604b78
2017-06-27 17:08:26 +00:00
TreeHugger Robot
9747b4ace5 Merge "Allow VR Virtual display to rotate with content." into oc-dr1-dev 2017-06-27 16:59:39 +00:00
Jeff Davidson
7b69a86b02 Add EuiccManager#retainSubscriptionsOnFactoryReset API.
By default, all subscriptions are wiped on first boot after a factory
reset. This ensures that if data is wiped outside of userspace (e.g.
in fastboot/recovery), the profiles are wiped, as there's no way to
offer this option to users in those modes - the radio isn't available
for us to access the eUICC.

This API provides a way to bypass this wipe if the user opts to retain
the policies for a wipe done from userspace (e.g. by unchecking the
"Wipe eUICC" checkbox in platform settings before wiping). We tell the
LPA to note this and skip the wipe on the ensuing factory reset.

Change-Id: I2fe472417497e28b043841a5aa2dc9efa45ebbff
Test: TreeHugger
Fixes: 62681577
2017-06-27 09:23:07 -07:00
TreeHugger Robot
2789536500 Merge changes Ie79ce57c,I003dd7c9,Ibb0f4504
* changes:
  Assume virtual devices always have USB connection.
  Allocate well-known tag for app store updates.
  Add @TestApi for StrictMode tests.
2017-06-27 16:15:48 +00:00
Bryce Lee
f9403a6fa1 Merge "Add aborted start result." into oc-dev am: 8796c20dae am: 943794bb70
am: ee289616fb

Change-Id: I1b69a9fb813e2cab1a3c8b496ea5b753cdf3abe6
2017-06-27 04:31:39 +00:00
Bryce Lee
ee289616fb Merge "Add aborted start result." into oc-dev am: 8796c20dae
am: 943794bb70

Change-Id: I9bf7aa7a5b1e8fbf7ccdea5a883c0ce98fa8f3ff
2017-06-27 04:27:08 +00:00
Bryce Lee
943794bb70 Merge "Add aborted start result." into oc-dev
am: 8796c20dae

Change-Id: I849ea5bfce87bd6a9264308e40242f6a2026713c
2017-06-27 04:20:35 +00:00
Bryce Lee
0259473b75 Merge "Add aborted start result." into oc-dev
am: 8796c20dae

Change-Id: I893c429db5c71747fda8e390ee7d9d786ce0c53a
2017-06-27 04:20:34 +00:00
Bryce Lee
8796c20dae Merge "Add aborted start result." into oc-dev 2017-06-27 04:14:26 +00:00
Jeff Sharkey
f23a5e104b Allocate well-known tag for app store updates.
This way an app store can shift blame for update-related network
traffic onto the app that is being updated.

Using a well-known tag makes it easy for developers to identify
that they didn't explicitly request the traffic at runtime, similar
to how backup/restore traffic is handled.

Bug: 38282350
Test: builds, boots
Change-Id: I003dd7c9615d4ab318250f1e44fa5d195ac94d23
2017-06-26 19:50:48 -06:00
Jeff Sharkey
ddc3bfddd4 Add @TestApi for StrictMode tests.
Bug: 62037127
Test: builds, boots
Change-Id: Ibb0f450400bc498c2b4d4fe3399c7e4d573eef60
2017-06-26 19:39:20 -06:00