Commit Graph

309172 Commits

Author SHA1 Message Date
TreeHugger Robot
389505fdb9 Merge "Switch RecoverableSE over to using RemoteAction." 2017-02-12 12:52:09 +00:00
Jeff Sharkey
500ce9ea58 Explicit API for allocating disk space.
Now that we're giving apps better guidance around how much cached
disk space they can use, we also need to provide a way to help clear
some of those cached files.  The final logic is coming in a future
CL, but it will be designed to prevent abuse.

Test: newly added CTS tests
Bug: 34690590
Change-Id: I1e46ade0cdabbc33162fc7bfa76abec711992f92
2017-02-12 04:02:28 -07:00
Jeff Sharkey
ceb25d2b5c Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 41c9029be0" into nyc-mr2-dev-plus-aosp
am: 912a5f054c  -s ours

Change-Id: I1f1206f8d3bfb815e2effbc072522ece02a25ce9
2017-02-12 10:35:43 +00:00
Jeff Sharkey
706ad5ac4b DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 8100f549bf
am: ed3841df86  -s ours

Change-Id: Ie77c38a65afeae8c2fbd55eb2f4edc32ea342a70
2017-02-12 10:34:50 +00:00
Android Build Merger (Role)
912a5f054c Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3 am: 41c9029be0" into nyc-mr2-dev-plus-aosp 2017-02-12 10:31:45 +00:00
Jeff Sharkey
065974c0fe DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3
am: 41c9029be0

Change-Id: I491c4ae2b64e2a15a626bc20a8e2083e0bb6a91d
2017-02-12 10:30:58 +00:00
Jeff Sharkey
ed3841df86 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763 am: 62314d7dd3
am: 8100f549bf

Change-Id: Icb69b7af8a1e7c9c2fb8c2ea47e41932006128d8
2017-02-12 10:30:50 +00:00
Jeff Sharkey
8100f549bf DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763
am: 62314d7dd3

Change-Id: Iba461adcfafc41128bc4cd33f934830c7a92ae65
2017-02-12 10:26:57 +00:00
Jeff Sharkey
41c9029be0 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc am: 55ef8ba763
am: 62314d7dd3

Change-Id: I1eca65886210f095a29125506422a846ae6567f9
2017-02-12 10:26:51 +00:00
Jeff Sharkey
f2de07d2ab Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b am: 86f242b071 am: d491410316" into nyc-mr2-dev-plus-aosp
am: 09b336febd  -s ours

Change-Id: I0caa68f60a66a17f7627ea83f143555c8fdcb74e
2017-02-12 10:25:44 +00:00
Jeff Sharkey
e75d9b3622 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b am: 86f242b071 am: 5b49be4488
am: ce567aa642  -s ours

Change-Id: I82dc6c91b5c215679d30cf47cebe444e6581dc9f
2017-02-12 10:24:44 +00:00
Jeff Sharkey
62314d7dd3 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a am: ab296986fc
am: 55ef8ba763

Change-Id: Ie2f9e943501b62177b23b701a9eea219a1dc696f
2017-02-12 10:22:43 +00:00
Jeff Sharkey
72ec448307 Switch RecoverableSE over to using RemoteAction.
Now that RemoteAction supports PendingIntent, we should be using it
instead of rolling our own fields.  Continue offering legacy
constructor for some existing unit tests.

Create a notification channel for each remote app that throws at a
client app.  All apps targeting O must now use channels, which give
the user better control over notifications.

Mention in docs that strings should be localized.

Test: builds
Bug: 33749182, 35012253, 34676491
Change-Id: Ic57e32025bc6caf784d3746d9f97f6595b0edb69
2017-02-12 03:21:39 -07:00
Android Build Merger (Role)
09b336febd Merge "DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b am: 86f242b071 am: d491410316" into nyc-mr2-dev-plus-aosp 2017-02-12 10:21:37 +00:00
Jeff Sharkey
4f86c07a3e DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b am: 86f242b071
am: d491410316

Change-Id: If549125c9057964da34ab178af08e926962dd1d5
2017-02-12 10:20:52 +00:00
Jeff Sharkey
ce567aa642 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b am: 86f242b071
am: 5b49be4488

Change-Id: I576f71a635e1d1da44506b4e10ea7d915f5e7ba5
2017-02-12 10:20:41 +00:00
Jeff Sharkey
55ef8ba763 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours am: 9aca89293a
am: ab296986fc

Change-Id: Idd20eb270f3824840900b60a0b507b3c135ddc9e
2017-02-12 10:18:15 +00:00
Jeff Sharkey
5b49be4488 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b
am: 86f242b071

Change-Id: Iec17b7e2b1dcc972951e71d3c0d9e12d03440e88
2017-02-12 10:16:12 +00:00
Jeff Sharkey
d491410316 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4 am: c7b754f62b
am: 86f242b071

Change-Id: Iaf37416af9d8d3e31b1825719f2f0cc8e860a603
2017-02-12 10:16:12 +00:00
Jeff Sharkey
ab296986fc DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4 am: 208dcadb4f -s ours
am: 9aca89293a

Change-Id: Ifc71c14cbdfe8e93cb6bca789daa17117b8f214f
2017-02-12 10:14:09 +00:00
Jeff Sharkey
86f242b071 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359 am: 853e178de4
am: c7b754f62b

Change-Id: Icc3179df0206649ca412eb3cb4a8b5a4691718fb
2017-02-12 10:12:11 +00:00
Jeff Sharkey
9aca89293a DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0 am: 9335807fc4
am: 208dcadb4f  -s ours

Change-Id: If13e06378379077bbf25e6accc35951c26703a9c
2017-02-12 10:10:13 +00:00
Jeff Sharkey
c7b754f62b DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours am: deea677359
am: 853e178de4

Change-Id: I7adf093b7b09d6cc69e13f17865f754ccf327200
2017-02-12 10:08:11 +00:00
Jeff Sharkey
208dcadb4f DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a am: 00f5232dd0
am: 9335807fc4

Change-Id: I66766f7b8feccdf1855b3819ca30cec5b480ef07
2017-02-12 10:06:34 +00:00
Jeff Sharkey
853e178de4 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1 am: 502ee22a9d -s ours
am: deea677359

Change-Id: I579175736bf9c3839492e67d08b8ce765c85c121
2017-02-12 10:04:10 +00:00
Jeff Sharkey
9335807fc4 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours am: 48f1ddc94a
am: 00f5232dd0

Change-Id: I535ba4091bcb29fc25fc640f938a483b829e15c2
2017-02-12 10:02:08 +00:00
Jeff Sharkey
deea677359 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c am: 75f767afa1
am: 502ee22a9d  -s ours

Change-Id: Ibb1a72ca35121ba586f18852445941b0a0c15724
2017-02-12 10:00:37 +00:00
Jeff Sharkey
00f5232dd0 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9 am: a0b1198e70 -s ours
am: 48f1ddc94a

Change-Id: I1785a0a301e2847946276be682f62ee263b39a3f
2017-02-12 09:58:13 +00:00
Jeff Sharkey
502ee22a9d DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9 am: 32c71b078c
am: 75f767afa1

Change-Id: I1393b6bcfa074bef42b7491204df55e39471e689
2017-02-12 09:56:10 +00:00
Jeff Sharkey
48f1ddc94a DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 6f754e48e9
am: a0b1198e70  -s ours

Change-Id: Ieefebd7669b892cba9afade572e3f43d56095902
2017-02-12 09:53:38 +00:00
Jeff Sharkey
75f767afa1 DO NOT MERGE. Grant MMS Uri permissions as the calling UID. am: 3f3da42ef9
am: 32c71b078c

Change-Id: I1af83dbf9869bd93ecc5c07e1ce6155206f73290
2017-02-12 09:51:37 +00:00
Jeff Sharkey
a0b1198e70 DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
am: 6f754e48e9

Change-Id: I2f6dd5ba1e266b3d451533e518ec7f2fe24b262c
2017-02-12 09:48:46 +00:00
Jeff Sharkey
32c71b078c DO NOT MERGE. Grant MMS Uri permissions as the calling UID.
am: 3f3da42ef9

Change-Id: I222c32931827d906db5fc1e3258f2095e6013481
2017-02-12 09:47:33 +00:00
Yohei Yukawa
f7526b5896 Merge restartInput into startInput in internal IPC
This is the 2nd attempt to merge restartInput into startInput in
internal IPC after fixing the mistake in new parameter order in
the previous CL [1].

As a preparation to start tracking all the event flows that
cause InputMethodManagerService#setImeWindowStatus(), this CL
merges an internal IPC method IInputMethod#restartInput() into
IInputMethod#startInput() in favor of simplicity.

This is a refactoring CL that should have no behavior change.

 [1]: Ifda6f74ac1b1370d9e9a9fe60354b692121fdcb9
      1a5838e966

Test: Set true to InputMethodService#DEBUG and make sure startInput()
      and restartInput() are called in the following scenario.
      1. Complete the setup wizard.
      2. adb shell am start -a android.app.action.SET_NEW_PASSWORD
      3. Proceed to "Choose your password" page
      4. Make sure startInput() gets called.
      5. Type "aaaa" then hit "CONTINUE" button.
      6. Make sure restartInput() gets called.
Bug: 35079353
Change-Id: I476d0cf8cbb0a0134941854f9337d9ad15e66a71
2017-02-11 20:57:10 -08:00
TreeHugger Robot
9a49f85ae4 Merge "Revert "Merge restartInput into startInput in internal IPC"" 2017-02-12 02:08:10 +00:00
Yohei Yukawa
3eaf867487 Revert "Merge restartInput into startInput in internal IPC"
This reverts commit 1a5838e966 [1].

Reason of revert:
There was a mistake in the parameter order of MSG_START_INPUT.

 [1]: Ifda6f74ac1b1370d9e9a9fe60354b692121fdcb9

Test: none. This is a revert.
Bug: 35079353
Change-Id: Ic1487768932febe0f1f1b6e71929464e91f357e0
2017-02-11 23:42:15 +00:00
Yohei Yukawa
aab4e11c0a Merge "Inline IMMS#resetAllInternalStateLocked()" 2017-02-11 23:09:37 +00:00
Yohei Yukawa
d5c1d92eb5 Merge "Merge restartInput into startInput in internal IPC" 2017-02-11 23:07:51 +00:00
Adrian Roos
9125068a99 SysUiLeaks: Add GarbageMonitor
Adds a service for monitoring the amount of tracked garbage.
If it exceeds reasonable levels, a notification with a leak
report is posted.

Test: runtest systemui
Change-Id: Ib55281f2aac557743b97c46bc616688261c72e9c
2017-02-11 21:57:10 +01:00
TreeHugger Robot
9e193f03e8 Merge "Dismiss keyguard before displaying bugrepot details dialog." 2017-02-11 08:28:07 +00:00
TreeHugger Robot
2c728430a7 Merge "fix warning: Potential leak of memory pointed to by 'target'" 2017-02-11 04:20:43 +00:00
TreeHugger Robot
d1b1637051 Merge "Implement SkiaCanvasProxy::onDrawArc" 2017-02-11 03:31:31 +00:00
Paul Stewart
02d21a0adc Merge "Allow EAP-SIM authentication methods under PEAP" am: e690e0178c am: 549c3fc0da am: bdfb1b86d3
am: edb9b8df23

Change-Id: I9db72a171526dae90a436398a11229a467736531
2017-02-11 02:57:20 +00:00
Yohei Yukawa
1a5838e966 Merge restartInput into startInput in internal IPC
As a preparation to start tracking all the event flows that
cause InputMethodManagerService#setImeWindowStatus(), this CL
merges an internal IPC method IInputMethod#restartInput() into
IInputMethod#startInput() in favor of simplicity.

Test: Done some quick manual testing to make sure that IME is
      still working
Bug: 35079353
Change-Id: Ifda6f74ac1b1370d9e9a9fe60354b692121fdcb9
2017-02-11 02:56:48 +00:00
Paul Stewart
edb9b8df23 Merge "Allow EAP-SIM authentication methods under PEAP" am: e690e0178c am: 549c3fc0da
am: bdfb1b86d3

Change-Id: I083778d8867e79b1a2c04166811508a6642a9c68
2017-02-11 02:52:44 +00:00
Paul Stewart
bdfb1b86d3 Merge "Allow EAP-SIM authentication methods under PEAP" am: e690e0178c
am: 549c3fc0da

Change-Id: I35592cd0e25bf459505c0a2008b7fe1f3be6298c
2017-02-11 02:48:31 +00:00
Paul Stewart
549c3fc0da Merge "Allow EAP-SIM authentication methods under PEAP"
am: e690e0178c

Change-Id: I3f61bdd86c97210acd14b6d2d30e44e26c8b1085
2017-02-11 02:43:38 +00:00
TreeHugger Robot
f98c2f2aa3 Merge "Clarified requirements for cross-user calls" 2017-02-11 02:40:04 +00:00
Treehugger Robot
e690e0178c Merge "Allow EAP-SIM authentication methods under PEAP" 2017-02-11 02:34:51 +00:00
Andy Hung
035d4ec772 VolumeShaper: Initial implementation
The VolumeShaper is used to apply a volume
envelope to an AudioTrack or a MediaPlayer.

Test: CTS
Bug: 30920125
Bug: 31015569
Change-Id: If8b4bed29760aa3bd15a4b54cae60e40b4f518ee
2017-02-10 18:08:12 -08:00