Commit Graph

19614 Commits

Author SHA1 Message Date
Andrew Grieve
e7bb5673fe Merge "Expose Process.isIsolated()" into pi-dev
am: 6ddf443d15

Change-Id: I02cb0a0bb503201ea4b4e9ca4961e5687a51e6d8
2018-03-06 19:45:12 +00:00
Andrew Grieve
0fec93682e Expose Process.isIsolated()
Rather than have a process attempt to perform IO / IPC and check if it
fails, it makes much more sense to expose this getter.

My specific motivation for exposing this information more directly is to
be able to perform process-specific initialization logic in
Application.attachBaseContext():

https://cs.chromium.org/chromium/src/chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java?rcl=ac2e180a1265f88dd4030bb35d69f5d0b2dc488d&l=54

Bug: 73343822
Test: Same code that's used in Chrome via reflection.
Change-Id: I1505962679da36ac42401230b204bff7b3376b73
2018-03-06 17:17:43 +00:00
Wei Jia
3a4a27cf4c Merge "MediaPlayer2: clarify sync/async for API's" into pi-dev
am: 97d579d1ee

Change-Id: I26d1541c0d016181be09afdb172715fda3dc41dc
2018-03-06 08:07:34 +00:00
Chen Xu
1f56d18fd1 Merge "API review: rename CarrierIdentification to Carrier id" am: f01600d5f9
am: ce7404744f

Change-Id: Iad12593f9e027052185f9efcb65a1983dda22a16
2018-03-06 01:00:36 +00:00
Wei Jia
d526bc3b88 MediaPlayer2: clarify sync/async for API's
Test: MediaPlayer2 plays
Bug: 63934228
Change-Id: I48b73c75311dbb31dcebe7c7a38e444d7dc65ed8
2018-03-05 16:40:59 -08:00
Chen Xu
f01600d5f9 Merge "API review: rename CarrierIdentification to Carrier id" 2018-03-05 22:59:21 +00:00
Adrian Roos
9bbd9661c0 DisplayCutout API: Make constructor public and adjust javadoc
Change-Id: I093cf4f9ea60f00e187aeb4a548f3f5789d87fa1
Fixes: 73953880
Test: make update-api
(cherry picked from commit d61db603fe)
2018-03-05 13:52:32 +00:00
TreeHugger Robot
3a4f974c91 Merge "AID: Change loop to repeat and set from xml" 2018-03-05 01:23:19 +00:00
TreeHugger Robot
f8f0c8df78 Merge "Revert "Introduce InputConnection#reportLanguageHint()"" 2018-03-03 23:36:37 +00:00
nharold
082cfca292 Merge "Expose Carrier Name Override CarrierConfig Values" am: a60e42cc2d am: f0b3b84a13
am: 5bc9756f8b

Change-Id: I747e769a5d278e90fa880d9d26011c6d010fd95d
2018-03-03 02:57:41 +00:00
Yohei Yukawa
4397591f3d Revert "Introduce InputConnection#reportLanguageHint()"
This reverts commit e77386e8fb [1].

Reason for revert:
The protocol is not yet ready to be exposed and we are still unsure
what is the best approach.

 [1]: Ie86edafd1ed68b58f702116f561fc448fdbb57a8

Bug: 7031513
Bug: 72522601
Fix: 74087970
Test: atest CtsInputMethodTestCases
Change-Id: Ia61dc9b3d5b116199382994430fb16ee804942b3
2018-03-02 17:35:18 -08:00
Suprabh Shukla
c0fe0626f6 Merge "An api to query usage events for the caller" 2018-03-03 01:32:21 +00:00
TreeHugger Robot
247779b31c Merge "MediaSession2: Add caller to the callback methods" 2018-03-03 00:54:31 +00:00
Cassie Han
b87a7a749c Merge "Expand use of 'Str' suffix in CellIdentity to 'String'" am: d622eacb9e am: 3bcb6da703
am: d210655d48

Change-Id: Ibc0862fb7ae1063cbee10415c4c21d7d4a835c51
2018-03-03 00:31:34 +00:00
nharold
a60e42cc2d Merge "Expose Carrier Name Override CarrierConfig Values" 2018-03-03 00:11:29 +00:00
TreeHugger Robot
053a3859a8 Merge "MediaSession2: Add reset() to the MediaPlayerBase" 2018-03-02 23:58:14 +00:00
fionaxu
4281d0ff57 API review: rename CarrierIdentification to Carrier id
Bug: 73953797
Test: unit test
Change-Id: Id89c9100e8963a3cb890ebec347e4aabcd5fd4b8
2018-03-02 15:24:49 -08:00
Cassie Han
d622eacb9e Merge "Expand use of 'Str' suffix in CellIdentity to 'String'" 2018-03-02 22:15:56 +00:00
Leon Scroggins III
6de55b88f7 AID: Change loop to repeat and set from xml
Bug: 73529437
Test: I60fbee6d3610070413e8c46f363ec3c19c2e7c52

Allow setting AnimatedImageDrawable's loop count in xml. Use
"repeatCount" to match the existing attr used by other objects, and
change the Java api from "loop" to "repeat".

Cache the repeat count in the State object for the situation where we
inflate but are waiting on a theme, so that when we get a src we can
apply the existing repeat count.

Change-Id: Ie723fe9a40c64dd0e1e8fd7b5d5cf81e5c5ccd0d
2018-03-02 16:11:37 -05:00
TreeHugger Robot
3c4c64455e Merge "Add a HINT_KEYWORDS to Slice" 2018-03-02 19:14:26 +00:00
Holly Jiuyu Sun
45277c7aca Merge "Add result code for eUICC card not found." 2018-03-02 19:01:41 +00:00
Vladislav Kaznacheev
f1aab4de20 Merge "Add ViewConfiguration.shouldShowMenuShortcutsWhenKeyboardPresent" 2018-03-02 17:34:04 +00:00
Jaewan Kim
3fb60d56c2 MediaSession2: Add caller to the callback methods
This is to follow MediaPlayer2 and MediaPlayerBase's API style.

Bug: 64098437
Test: make update-api
Change-Id: I7fe17852d16237fac801c716eab1007cd0337867
2018-03-02 23:14:40 +09:00
TreeHugger Robot
f10700343c Merge "Add HIDDEN_API_BLACKLIST_EXEMPTIONS to @TestApi." 2018-03-02 09:57:14 +00:00
Mathew Inwood
5518c752ba Add HIDDEN_API_BLACKLIST_EXEMPTIONS to @TestApi.
It's used by a CGTS test.

Bug: 64382372
Test: It builds
Change-Id: I4bde625a89896140b2e8bf585d16074d290c0fc9
2018-03-02 09:51:28 +00:00
Jaewan Kim
de2bbb322b MediaSession2: Add reset() to the MediaPlayerBase
This would be used in response to
  - MediaController2#play()
  - KEYCODE_MEDIA_STOP

Bug: 64098437
Test: passed MediaComponentTest
Change-Id: I7cd4d855d5e1bf8e4260a9b920f30dfe2eea44e1
2018-03-02 18:03:42 +09:00
Bo Zhu
0f0d1ab1d3 Merge "Check the public-key signature of the whole certificate file before accepting the certificates" 2018-03-02 08:52:36 +00:00
Nathan Harold
8366bcb8b8 Expose Carrier Name Override CarrierConfig Values
These CarrierConfig values are needed for a
CC app to override the SPN dynamically. Since
Carrier names are very complicated, it's extra
important that these values be exposed so that we
can properly enforce correct behavior through CTS.

Bug: 73734601
Test: compilation (no functional change)
Change-Id: I26dab1bd32d1d5273f707a37026cffca7fd639a3
2018-03-01 19:10:28 -08:00
Mady Mellor
15e2c5d54d Add a HINT_KEYWORDS to Slice
Want to be able to support allowing a Slice to specify some keywords
associated with it; need a new hint to identify these.

Bug: 74086214
Test: make
Change-Id: I79d3f1806eecf416f5e3ae09451b90507b382c24
2018-03-02 00:54:15 +00:00
Holly Jiuyu Sun
e902719b93 Add result code for eUICC card not found.
Bug: 38206971
Test: test on phone
Merged-In: Ia783fe68389d950b664ad312d98c7e3aa200b471
Change-Id: Ia783fe68389d950b664ad312d98c7e3aa200b471
2018-03-01 13:00:30 -08:00
Jiuyu Sun
595182423f Merge "Add result code for eUICC card not found." 2018-03-01 19:21:32 +00:00
TreeHugger Robot
5130fdb0ac Merge "cas: explicitly define possible key id values" 2018-03-01 18:50:18 +00:00
Arthur Ishiguro
f0cda31e00 Merge "Mark location classes as Parcelable appropriately" 2018-03-01 17:10:14 +00:00
Adrian Roos
90c27c332a Merge "DisplayCutout: Add xml wrapper for layoutInDisplayCutoutMode" 2018-03-01 13:57:22 +00:00
TreeHugger Robot
8f7aa97fa9 Merge "MediaPlayer2: clean up APIs" 2018-03-01 07:28:35 +00:00
Jean-Michel Trivi
38008955e3 Merge "AudioPolicy: support for add/remove AudioMix without unregistering" 2018-03-01 07:00:39 +00:00
TreeHugger Robot
3b0014dcad Merge "MediaSession2: Unhide setAudioFocusRequest" 2018-03-01 05:11:24 +00:00
Jean-Michel Trivi
af576a0e4f AudioPolicy: support for add/remove AudioMix without unregistering
System API for a registered AudioPolicy to attach or detach
  AudioMix without having to unregister, and then registering
  the new mix configuration.

Bug: 63906162
Test: AudioPolicyTest

Change-Id: Ib2fea8aa034d3f7b498e76dc1fc51c1ea508d3a2
2018-02-28 21:06:20 -08:00
Wei Jia
1789cc7f82 MediaPlayer2: clean up APIs
Make MediaPlayer2 derived from MediaPlayerBase
Test: MediaPlayer2 plays
Bug: 63934228
Change-Id: Ib31e3196ad65c694f778a8a79277e53017a7026f
2018-02-28 19:52:13 -08:00
TreeHugger Robot
c7c1ce8012 Merge "MediaSession2: Refine APIs" 2018-03-01 03:39:31 +00:00
Sungsoo Lim
12a1f62745 MediaSession2: Unhide setAudioFocusRequest
Bug: 64098437
Test: make update-api
Change-Id: I9244719e1a771ab7b420a95af6ba43faef7b352c
2018-03-01 12:31:52 +09:00
Arthur Ishiguro
f3ab9cdc41 Mark location classes as Parcelable appropriately
Doesn't add the "final" qualifier,
since make will throw errors due to compatibility issues.

Bug: 69622177
Test: Run CHQTS from master and oc-mr1-dev, verify pass
Change-Id: If02203d7862e77ca4fda7b95a39bbfa3d9f6d87d
2018-03-01 03:10:57 +00:00
Sungsoo Lim
aa080a80a6 MediaSession2: Refine APIs
Bug: 64098437
Test: passed MediaComponentTest
Change-Id: I40e1ef141e47d17e2bfa0a689a680b45a3d73b03
2018-03-01 10:38:33 +09:00
TreeHugger Robot
4f7c46585d Merge "NEW API: Add Image.getHardwareBuffer()" 2018-03-01 01:26:14 +00:00
TreeHugger Robot
30982facc5 Merge "Finish ops started on behalf of a removed package." 2018-03-01 01:11:35 +00:00
TreeHugger Robot
06b1df657a Merge "Use start/finish app ops in window manager" 2018-03-01 01:11:25 +00:00
Jean-Michel Trivi
2175b9a8b2 Merge "Ringtone: unhide looping and volume control" 2018-03-01 00:57:31 +00:00
TreeHugger Robot
19130fea91 Merge "More work on issue #73301635: Ability to extract device configuration" 2018-02-28 23:19:13 +00:00
TreeHugger Robot
379374b1d3 Merge "Added an api to query ForcedAppStandby state" 2018-02-28 22:28:30 +00:00
Mathias Agopian
3e88ed82e5 NEW API: Add Image.getHardwareBuffer()
This mirror the corresponding NDK API. For some
reason this was missing from the java version
of Image.

Bug: 73784759
Test: manual
Change-Id: Iafa6dedda809fe38ea4453d9873d1ba886f88481
2018-02-28 22:23:54 +00:00