Commit Graph

249995 Commits

Author SHA1 Message Date
Andy Hung
737d9fb181 AudioSystem: Verify audio port array information
Bug: 30737845
Change-Id: Id092086862bc527fccc5e9f34c8a3ab16167ae92
2016-08-17 17:58:58 -07:00
Svetoslav Ganov
fea7cfce8b Merge "Prevent apps to overlay other apps via toast windows" into nyc-mr1-dev 2016-08-01 18:48:11 +00:00
Svet Ganov
dc24f937b0 Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout.

Now for apps targeting SDK greater than N MR1 to add a
toast window one needs to have a special token. The token
is added by the notificatoion manager service only for
the lifetime of the shown toast and is then removed
including all windows associated with this token. This
prevents apps to add arbitrary toast windows.

Since legacy apps may rely on the ability to directly
add toasts we mitigate by allowing these apps to still
add such windows for unlimited duration if this app is
the currently focused one, i.e. the user interacts with
it then it can overlay itself, otherwise we make sure
these toast windows are removed after a timeout like
a toast would be.

We don't allow more that one toast window per UID being
added at a time which prevents 1) legacy apps to put the
same toast after a timeout to go around our new policy
of hiding toasts after a while; 2) modern apps to reuse
the passed token to add more than one window; Note that
the notification manager shows toasts one at a time.

bug:30150688

Change-Id: Icc8f8dbd060762ae1a7b1720e96c5afdb8aff3fd
2016-08-01 11:46:02 -07:00
Makoto Onuki
5faa852c57 Merge "Revert "LauncherApps should also throw when user is locked"" into nyc-mr1-dev 2016-08-01 17:30:31 +00:00
Makoto Onuki
2ec16b08ac Revert "LauncherApps should also throw when user is locked"
This reverts commit bc4ad85d29.

Will retry when the updated launcher is in.

Change-Id: I428dc93132615480df70aeca7977089af008c041
2016-08-01 17:20:59 +00:00
Joe Fernandez
160c3437b2 docs: Update Android Dashboard for August 2016 am: 3d1cd9d2da
am: 5483ad29ad

Change-Id: Ic7f9c5eb3076335428330063152df8cf115f5ad9
2016-08-01 16:50:10 +00:00
Joe Fernandez
5483ad29ad docs: Update Android Dashboard for August 2016
am: 3d1cd9d2da

Change-Id: Ie50f433a6399ae5690c722a703614443889c30da
2016-08-01 16:43:59 +00:00
Joe Fernandez
3d1cd9d2da docs: Update Android Dashboard for August 2016
Change-Id: I6e5d35a3f3ed4f79f7acd485fc66f250d90f828a
2016-08-01 16:34:59 +00:00
TreeHugger Robot
fbd93027e4 Merge "Prevent brightness changes before boot complete." into nyc-mr1-dev 2016-08-01 13:06:46 +00:00
Kazuhiro Inaba
7f96551b03 Merge "Cap minimum visibilty of floating windows by the real size." into nyc-mr1-dev 2016-07-30 12:23:38 +00:00
Sungsoo Lim
3a9923d7cf Merge \\\\\\\\\"DO NOT MERGE: Fix CTS regression\\\\\\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648 am: ec986ac944 -s ours am: cc154342aa am: ee0c3b013a am: 0d05028ba8 am: 2f7756f4c9 -s ours
am: ea7fa85a0d

Change-Id: Idd36b801a596e2f1d1f471038f7829191a5aa747
2016-07-30 08:23:30 +00:00
Sungsoo Lim
ea7fa85a0d Merge \\\\\\\\"DO NOT MERGE: Fix CTS regression\\\\\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648 am: ec986ac944 -s ours am: cc154342aa am: ee0c3b013a am: 0d05028ba8
am: 2f7756f4c9  -s ours

Change-Id: I98ceec760f862404e48477472f4931f8d49490f1
2016-07-30 08:17:49 +00:00
Sungsoo Lim
2f7756f4c9 Merge \\\\\\\"DO NOT MERGE: Fix CTS regression\\\\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648 am: ec986ac944 -s ours am: cc154342aa am: ee0c3b013a
am: 0d05028ba8

Change-Id: Ia66f61ac4d53b2908b6a468375346c21c61c2d5a
2016-07-30 08:11:04 +00:00
Sungsoo Lim
ce272c6b6b DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c am: 1fcc472b3e -s ours am: 1559998d08 am: c3485668ad am: 174f17bc19 am: cf94d53469 -s ours
am: accabefc6b

Change-Id: I8ac50800e7f76edfb731c4f3544ec3ecb8010a76
2016-07-30 07:59:51 +00:00
Sungsoo Lim
0d05028ba8 Merge \\\\\\"DO NOT MERGE: Fix CTS regression\\\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648 am: ec986ac944 -s ours am: cc154342aa
am: ee0c3b013a

Change-Id: Ic5f0abe33b51bd085a990c1d48d5c7c9eb5af8fe
2016-07-30 07:42:35 +00:00
Sungsoo Lim
accabefc6b DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c am: 1fcc472b3e -s ours am: 1559998d08 am: c3485668ad am: 174f17bc19
am: cf94d53469  -s ours

Change-Id: I00e4f8f8f0e6a98bee0212dede9362297715127a
2016-07-30 07:31:34 +00:00
Sungsoo Lim
cf94d53469 DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c am: 1fcc472b3e -s ours am: 1559998d08 am: c3485668ad
am: 174f17bc19

Change-Id: Id47b0c1771b9fb85b874b9d7b8892d31506a842b
2016-07-30 07:23:37 +00:00
Sungsoo Lim
ee0c3b013a Merge \\\\\"DO NOT MERGE: Fix CTS regression\\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648 am: ec986ac944 -s ours
am: cc154342aa

Change-Id: Ic1bc071d11c42771d46ad1b2da9e9264299d5e7b
2016-07-30 07:14:33 +00:00
Sungsoo Lim
174f17bc19 DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c am: 1fcc472b3e -s ours am: 1559998d08
am: c3485668ad

Change-Id: Ieaf58a651f3bd15ee49d81fea3f118331e908cd7
2016-07-30 07:13:57 +00:00
Sudheer Shanka
fe3fec0558 Merge \\\\\\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\\\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff am: 28acd0fae9 -s ours am: 98ae56902e am: 382f9aadcd am: 9457779aa4 am: 247edeb721 -s ours
am: 3cfa1bb8ec

Change-Id: I365b65c49c0380379e8aa64661c0da5046bbc2e3
2016-07-30 07:06:15 +00:00
Sudheer Shanka
92f00c6b5d DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108 am: f01ee1c291 -s ours am: 373492b076 am: c2178ed1d9 am: 32f4f1a697 am: 5b420a7b44 -s ours
am: efe9502301

Change-Id: I71d913ce932730bce19068b78f5e1f3e7d5ef40b
2016-07-30 07:06:12 +00:00
Sudheer Shanka
54aeda8e7f Merge \\\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\\" into mnc-dev am: e140322bde am: 088e081ac1 am: 72f9d1ff97 am: 9a7c067034 -s ours
am: ea60ad5173

Change-Id: Icd257105b253f0062111b1978296923c8984f6ac
2016-07-30 06:57:37 +00:00
Sudheer Shanka
3cfa1bb8ec Merge \\\\\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff am: 28acd0fae9 -s ours am: 98ae56902e am: 382f9aadcd am: 9457779aa4
am: 247edeb721  -s ours

Change-Id: I4723ec70d9f4193cff5521e4a06013d57bac9666
2016-07-30 06:57:35 +00:00
Sudheer Shanka
60fac50f71 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 8a8d7e7962 am: 2349d0dea5 am: 7559673a6d am: 77f0b54c0b -s ours
am: a8ff98fbce

Change-Id: If9fb3d623d11066f08fe347082d95aa9ba26d9b3
2016-07-30 06:57:34 +00:00
Sudheer Shanka
efe9502301 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108 am: f01ee1c291 -s ours am: 373492b076 am: c2178ed1d9 am: 32f4f1a697
am: 5b420a7b44  -s ours

Change-Id: I7e3838dbcc651182eaa23299887142004782d557
2016-07-30 06:57:29 +00:00
Sungsoo Lim
c3485668ad DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c am: 1fcc472b3e -s ours
am: 1559998d08

Change-Id: Iececea055821da36f2aa7870e1c2fc04ac58e22c
2016-07-30 06:55:41 +00:00
Sudheer Shanka
ea60ad5173 Merge \\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\" into mnc-dev am: e140322bde am: 088e081ac1 am: 72f9d1ff97
am: 9a7c067034  -s ours

Change-Id: I6808755cfd17d41a7cbcbfb54b619eba535b6570
2016-07-30 06:49:33 +00:00
Sudheer Shanka
a8ff98fbce DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 8a8d7e7962 am: 2349d0dea5 am: 7559673a6d
am: 77f0b54c0b  -s ours

Change-Id: I9b35d77bd9cda1f9884f86c9d0db3a46981fc8cc
2016-07-30 06:49:29 +00:00
Sudheer Shanka
247edeb721 Merge \\\\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff am: 28acd0fae9 -s ours am: 98ae56902e am: 382f9aadcd
am: 9457779aa4

Change-Id: Ib123df6f044bb7a5323235a4aafe69b04865acfa
2016-07-30 06:43:27 +00:00
Sudheer Shanka
5b420a7b44 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108 am: f01ee1c291 -s ours am: 373492b076 am: c2178ed1d9
am: 32f4f1a697

Change-Id: I89358f925d063a311f208c92ae7b34f9dcffad8b
2016-07-30 06:43:25 +00:00
Sungsoo Lim
cc154342aa Merge \\\\"DO NOT MERGE: Fix CTS regression\\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9 am: 8ef8e2b648
am: ec986ac944  -s ours

Change-Id: I66ddeab0f0f2fa3d3f3fff71a20cd0b842c2f9d6
2016-07-30 06:41:37 +00:00
Sungsoo Lim
1559998d08 DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95 am: f928b8062c
am: 1fcc472b3e  -s ours

Change-Id: Icf6055101947c23621ed320469c475dd105dd60f
2016-07-30 06:41:33 +00:00
Sudheer Shanka
9a7c067034 Merge \\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\" into mnc-dev am: e140322bde am: 088e081ac1
am: 72f9d1ff97

Change-Id: I71b12632934b7ac1284929e276a6a462509ab969
2016-07-30 06:31:19 +00:00
Sudheer Shanka
77f0b54c0b DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 8a8d7e7962 am: 2349d0dea5
am: 7559673a6d

Change-Id: I874a78978c631ed3060fcac1547b261537045d8c
2016-07-30 06:31:16 +00:00
Sudheer Shanka
9457779aa4 Merge \\\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff am: 28acd0fae9 -s ours am: 98ae56902e
am: 382f9aadcd

Change-Id: I8a40d4f562110009f0e155c370e09daea6cafe79
2016-07-30 06:30:14 +00:00
Sudheer Shanka
32f4f1a697 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108 am: f01ee1c291 -s ours am: 373492b076
am: c2178ed1d9

Change-Id: Ibcbf12ee9bb11c76c46a3d0db5aad81e8462a9f6
2016-07-30 06:30:10 +00:00
Kevin Hufnagle
e351f7d3c2 Merge \\"docs: Improved Google Play Developer Console documentation\\" into nyc-docs am: 88f0518ce3
am: 72108d200d

Change-Id: Ib534bb9c84186cb7d79eefb8391d095aaa8eec18
2016-07-30 06:21:11 +00:00
Kevin Hufnagle
941cf16f34 docs: Improved Google Play Developer Console documentation am: ec8b21a27a
am: e37a55b840

Change-Id: Ib1cbc6b646d23c6ed33346f044a2378f03fb2f4e
2016-07-30 06:21:08 +00:00
Sudheer Shanka
382f9aadcd Merge \\\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff am: 28acd0fae9 -s ours
am: 98ae56902e

Change-Id: I5fb6decba8be97f68a0b24d6caa5d718929ea4d3
2016-07-30 06:21:06 +00:00
Sudheer Shanka
c2178ed1d9 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108 am: f01ee1c291 -s ours
am: 373492b076

Change-Id: Ibfc86e4b13fcc88c09b7ac74a7b0ddc4bd42dda7
2016-07-30 06:21:04 +00:00
Sudheer Shanka
72f9d1ff97 Merge \\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\" into mnc-dev am: e140322bde
am: 088e081ac1

Change-Id: Ia0621eda31e392aa381f401bf05782201a4037a0
2016-07-30 06:19:25 +00:00
Sudheer Shanka
7559673a6d DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 8a8d7e7962
am: 2349d0dea5

Change-Id: Id099c53df0a4a7c6996e546dfe6017b375f6d34e
2016-07-30 06:19:20 +00:00
Sungsoo Lim
ec986ac944 Merge \\\"DO NOT MERGE: Fix CTS regression\\\" into lmp-dev am: 124cc534f8 -s ours am: 3d58e326d9
am: 8ef8e2b648

Change-Id: I245e257deb8febb49f2abd7322eb3a24db564b31
2016-07-30 05:57:16 +00:00
Sungsoo Lim
1fcc472b3e DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours am: 0fb1075d95
am: f928b8062c

Change-Id: I92c4e992dc23f43851a9fab8479db408a89f5e89
2016-07-30 05:57:09 +00:00
Sungsoo Lim
8ef8e2b648 Merge \\"DO NOT MERGE: Fix CTS regression\\" into lmp-dev am: 124cc534f8 -s ours
am: 3d58e326d9

Change-Id: Ic642286098aeeafe379c7f71b6a98da61fb31a21
2016-07-30 05:40:55 +00:00
Sungsoo Lim
f928b8062c DO NOT MERGE: Fix CTS regression am: edc9238514 -s ours
am: 0fb1075d95

Change-Id: I1a019156b580ec594afbb866bb7aec342de8e636
2016-07-30 05:40:52 +00:00
Sudheer Shanka
088e081ac1 Merge \"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\" into mnc-dev
am: e140322bde

Change-Id: Idc3caa0c20f5d069ad6166f69d858ce8f6c99302
2016-07-30 05:26:52 +00:00
Sudheer Shanka
2349d0dea5 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.
am: 8a8d7e7962

Change-Id: Id3a971b538618801f97abe0bd1d03d11d2b8118c
2016-07-30 05:26:51 +00:00
Sudheer Shanka
98ae56902e Merge \\\"DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles.\\\" into lmp-mr1-dev am: dbbdb6d089 am: 9ed6bd83ff
am: 28acd0fae9  -s ours

Change-Id: Ifc5732a29b101a9b85a4fd14ff6d0a59d778217c
2016-07-30 05:19:02 +00:00
Sudheer Shanka
373492b076 DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 7ef684713e am: 9f6bd40108
am: f01ee1c291  -s ours

Change-Id: I9bf603d8e6315552d8d00036aa67dc96e9ba678a
2016-07-30 05:18:59 +00:00