Commit Graph

5448 Commits

Author SHA1 Message Date
Svetoslav Ganov
35f1fe1854 Merge "Address API council comments" into oc-dev am: 57ed0ba69d
am: dca67a7f48

Change-Id: I991a268bf1dfc908249c3114802ea0cc2b567c63
2017-04-19 03:06:36 +00:00
Svetoslav Ganov
57ed0ba69d Merge "Address API council comments" into oc-dev 2017-04-19 02:44:18 +00:00
Todd Kennedy
f84fedf2d4 Merge "update docs per API council" into oc-dev am: e28cccab24
am: 62fc9fd7e7

Change-Id: I187df43e72344e73e1c3d9572a3d692a284ca51b
2017-04-19 01:45:37 +00:00
TreeHugger Robot
e28cccab24 Merge "update docs per API council" into oc-dev 2017-04-19 01:31:46 +00:00
Svetoslav Ganov
0cb43ef67b Address API council comments
Test: all static shared lib CTS tests pass

bug:37327970

Change-Id: Ie8c4d853da5fa0a6125b9def38831860f79ce53d
2017-04-18 16:44:28 -07:00
Todd Kennedy
9732f935dc update docs per API council
Change-Id: Id32be4db7671d3ef99e155f5fc2f3946eac707dd
Fixes: 37322490
Test: treehugger
2017-04-18 16:29:46 -07:00
Todd Kennedy
cf81c43f4a Merge "update docs per API council" into oc-dev am: 43b814b1d2
am: 1b92db197c

Change-Id: Ia61e492ebf4fc5b798f515c24df93961e6e80da5
2017-04-18 22:43:35 +00:00
TreeHugger Robot
43b814b1d2 Merge "update docs per API council" into oc-dev 2017-04-18 22:09:32 +00:00
Suprabh Shukla
c2f5258e2c Merge "Fixing javadoc errors for pm#canRequestPackageInstalls" into oc-dev am: 94ac6ae6d9
am: f415b0c034

Change-Id: I19a478e453da13a5ecd1e6d1ec097172a5c603fd
2017-04-18 21:30:02 +00:00
TreeHugger Robot
94ac6ae6d9 Merge "Fixing javadoc errors for pm#canRequestPackageInstalls" into oc-dev 2017-04-18 21:07:48 +00:00
Christopher Tate
058641607f Merge "Turn down the preliminary foreground service API" into oc-dev am: 00ed0baca8
am: 663de998e7

Change-Id: I1c70471deaa3991945d2950d1c6e0f5bc90805b4
2017-04-18 03:16:49 +00:00
Dianne Hackborn
2dc576f922 Merge "Finish impl of job queue: handle URI permissions." into oc-dev am: 6e8f116647
am: cc4763071d

Change-Id: I02ee3531c37cc990ac4b6408f3452636680c8728
2017-04-18 02:37:06 +00:00
TreeHugger Robot
00ed0baca8 Merge "Turn down the preliminary foreground service API" into oc-dev 2017-04-18 01:48:31 +00:00
TreeHugger Robot
6e8f116647 Merge "Finish impl of job queue: handle URI permissions." into oc-dev 2017-04-18 01:07:18 +00:00
Jeff Sharkey
498e095b6e Merge "Storage API polishing." into oc-dev am: 200d72d933
am: aead06b971

Change-Id: I13baad3e589cfe6b1ee257fa13742394cdee3c51
2017-04-17 23:57:40 +00:00
Dianne Hackborn
342e603710 Finish impl of job queue: handle URI permissions.
The job queue now handles URI permissions associated with
the Intent of each job.  Just (kind-of) like Service!

Also do the second pass of locking in job scheduler, getting
rid of all the async dispatching on a handler, and just executing
calls right in line with simple locking.  This probably fixes
a few other race issues, and allows us to make sure that we
always finish a job correctly when dequeuing the last work (we
will always atomically dequeue and finish, so no new work can
slip in between).

And fix a little debug output in IntentFilter.

Test: ran CtsJobSchedulerTestCases, added new test for URI perms.

Change-Id: I52f700ef0cd5be3ff70050f9c0f5fe3e8a5ccac1
2017-04-17 16:14:58 -07:00
Jeff Sharkey
200d72d933 Merge "Storage API polishing." into oc-dev 2017-04-17 22:26:44 +00:00
Makoto Onuki
0b2108e7f7 Merge "Enhance PinItemRequest javadoc" into oc-dev am: 5838563e93
am: deda224f14

Change-Id: Ib62d8fc270656df7e74a534645478fc78214ee6b
2017-04-17 22:19:05 +00:00
Todd Kennedy
8fddf9de4a update docs per API council
Change-Id: I182e29912276bc09734bd604e9e2fd866094a95f
Fixes: 37328564
Test: treehugger
2017-04-17 15:16:43 -07:00
Makoto Onuki
901eac61e5 Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev am: c3fa6ab2ac
am: 9381a4542d

Change-Id: I0d8ffd125fdec072e4345cd109a1d71969cea952
2017-04-17 21:55:53 +00:00
Christopher Tate
242ba3e997 Turn down the preliminary foreground service API
The NotificationManager.startServiceInForeground() experiment is over,
and will not ship as API, so it's time to tidy up and get rid of it.

Bug 36130212
Test: manual

Change-Id: I834d1ce059aa464ff27f69f5e5d3625cc5e61d8a
2017-04-17 14:22:18 -07:00
TreeHugger Robot
c025ea892e Merge "OEM single-build/multi-SKU via dynamic RRO support" into oc-dev 2017-04-17 21:02:48 +00:00
Makoto Onuki
5838563e93 Merge "Enhance PinItemRequest javadoc" into oc-dev 2017-04-17 20:50:44 +00:00
TreeHugger Robot
c3fa6ab2ac Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev 2017-04-17 20:36:00 +00:00
Jeff Sharkey
789a8fc792 Storage API polishing.
Based on API council feedback, switch to using real UUID objects
instead of Strings.  Since UUID is a general-purpose utility class
that will be passed around quite a bit, add it to Parcel and Bundle.

Define well-known namespaced UUID values for "default" and "primary
physical" storage devices, which will let us annotate a bunch of
things with @NonNull.

Define new extras for MANAGE_STORAGE intent that apps can use to
signal where and how much space they'd like the user to free up.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 37325923, 35812899, 35806020
Change-Id: I8421b126d680f69141a361c1e77223fe2bf4a325
2017-04-17 12:19:50 -06:00
Todd Kennedy
56f715160e Merge "expose the instant app installer component" into oc-dev am: 676590d060
am: 8d0dacb5b1

Change-Id: Id1df099740c6e108878c8f10aacceb59b42b0041
2017-04-17 14:32:38 +00:00
TreeHugger Robot
676590d060 Merge "expose the instant app installer component" into oc-dev 2017-04-17 14:17:27 +00:00
Todd Lee
ea2f3be7aa OEM single-build/multi-SKU via dynamic RRO support
The purpose here is to provide support for selectively
enabling Runtime Resource Overlays (RROs) (specifically
those pertaining to a specific SKU, within a OEM's "single
build" covering multiple SKUs) at boot based on the value
of a pre-defined system property.

This mechanism is designed to be compatible with other,
recent changes to Runtime Resource Overlays - specifically:

- has no effect on 'isStatic'. Resource overlays must be
  attributed as static in order to qualify for loading into
  the system_server. The 'requiredSystemPropertyName/
  requiredSystemPropertyValue' mechanism operates
  independent of this and can be used on both static and
  non static overlays. The effect of specifying a conditional
  property on any overlay is that it will ONLY be enabled
  in the event that the system reflects both the property
  and the specified value (Note that in the ABSENCE of a
  conditional property, overlays are assumed to be enabled).

- has no effect on OverlayManagerService (OMS) API. The
  OMS provides the system with an interface through which
  overlays can be enabled/disabled and even rearranged at
  runtime. This provides the basis of support for various
  user-level features (e.g. dynamic theme selection).
  The 'requiredSystemPropertyName/requiredSystemPropertyValue'
  mechanism operates independent of this -
  with enablement being completely coupled to the available
  system properties on the device and NOT subject to change
  at runtime.

Note: as part of this change, original overlay tests have been
updated (fixed) and expanded to include tests to cover the
conditional property implementation.

Issue: http://b/35100249
Test: frameworks/base/core/tests/overlaytests/testrunner.py

Change-Id: I1990ce21a27a385db1e2f53294b69dd03988351e
(cherry picked from commit d5566c6c47)
2017-04-17 14:12:00 +00:00
Suprabh Shukla
5752847568 Fixing javadoc errors for pm#canRequestPackageInstalls
Fixed @see errrors and upper cased api to API

Test: 'make docs' followed by viewing PackageManager.html

Bug: 37325276
Change-Id: I26abc2f75a6b9f0b785b29d695461596e53108fb
2017-04-14 19:33:16 -07:00
Amith Yamasani
ded55c6ed7 Merge "MASTER_CLEAR action should not be public" into oc-dev am: baf1d7036e
am: 6c608ebafb

Change-Id: I76776f7f44a855bde12d6967ef4778523ae89f7a
2017-04-15 01:17:16 +00:00
Makoto Onuki
7c7fbf6f45 getApplicationInfo() should throw NameNotFoundException
... instead of returning null.

Bug: 37324177

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Change-Id: I7f9f3729ee0eef6b342e4711379e02516559472c
2017-04-14 23:24:35 +00:00
Amith Yamasani
e99757e4b1 MASTER_CLEAR action should not be public
Limit it to SystemApi, for passing intent tests

Bug: 36977779
Test: cts test
Change-Id: I716b94fc3cef43db1fafbfdad8dba0d850bec474
2017-04-14 14:41:45 -07:00
Makoto Onuki
a37ac3d6f1 Enhance PinItemRequest javadoc
Test: javadoc only, treehugger.
Bug: 37325874
Change-Id: I610e4032340cc732782aed2ea0522ae46b6dd6ce
2017-04-14 12:39:09 -07:00
Vikas Marwaha
8b5315f588 Merge "Make android.intent.action.MASTER_CLEAR depreciation explicit" into oc-dev am: e768104f9b
am: 358ec57382

Change-Id: I56c2a327f56ec5108f8654907a1a0cc288c9e7d9
2017-04-14 18:36:10 +00:00
Chad Brubaker
65cf224a3a Merge "Implicitly expose SEND intents to Instant Apps" into oc-dev am: 8ee12087e6
am: 4ad2d2b4d0

Change-Id: I784ba8d936046e65bcec1612ba77ff8aaba26975
2017-04-14 18:18:33 +00:00
Vikas Marwaha
e768104f9b Merge "Make android.intent.action.MASTER_CLEAR depreciation explicit" into oc-dev 2017-04-14 18:06:24 +00:00
Andrew Scull
1b67465918 Merge "Service for OEM lock management." into oc-dev am: e52a1bfede
am: d4be031c76

Change-Id: I9ab76546a140062940c128abdc2b8b4072d3b0f2
2017-04-14 18:01:24 +00:00
Romain Guy
870163ce34 Merge "Fix javadoc typos" into oc-dev am: 4b6e82d237
am: 299ae2f422

Change-Id: Ifac19d190660a0ce129034794abe20bc5d9066dc
2017-04-14 17:51:58 +00:00
Todd Kennedy
801e65905b expose the instant app installer component
Bug: 35873804
Test: TreeHugger
Change-Id: I4d962927587bb10833bfe3c3db27fdceab668fc3
2017-04-14 09:49:13 -07:00
Dianne Hackborn
52a29573ee Merge "Add new extra for identifying an intent coming from storage UI." into oc-dev am: 676bd21542
am: 9596d71664

Change-Id: Iacac793eb8b12cd11e39d2018cb3c1d30a29952f
2017-04-14 16:48:32 +00:00
Makoto Onuki
c40f2ab76e Merge "Actually remove the chooser APIs" into oc-dev am: fbadd6dac9
am: efda6390c9

Change-Id: I0a43d717f62dddace49e63ff2ab80283dea12357
2017-04-14 16:25:50 +00:00
Adam Lesinski
c7c66e7f78 Merge "Update docs for obtainStyledAttribute" into oc-dev am: 80b7a214ba
am: f8235c3631

Change-Id: I7235021ff618fd99f5f1470cbf6e7e64420788e2
2017-04-14 16:07:45 +00:00
Chad Brubaker
8ee12087e6 Merge "Implicitly expose SEND intents to Instant Apps" into oc-dev 2017-04-14 16:07:15 +00:00
Chris Tate
d593e402c2 Merge "Introduce PACKAGE_FIRST_ADDED broadcast" into oc-dev am: 117ac766a9
am: 636915a2ed

Change-Id: I28d8d31b30c9b500be1796566bb9885741b9aedc
2017-04-14 15:34:16 +00:00
Andrew Solovay
47cdd3d8e9 Merge "doc: Add note to Context.bindService()" into oc-dev am: 2c63aa3be7
am: 7cfe7cf19b

Change-Id: I6cd7cf2e25c0038afcf96a26ea2b8635a8ca7d95
2017-04-14 13:09:59 +00:00
Andrew Scull
e52a1bfede Merge "Service for OEM lock management." into oc-dev 2017-04-14 11:31:06 +00:00
Romain Guy
b3f69261c5 Fix javadoc typos
Bug: 37328228
Test: compiles
Change-Id: I75323ef5afb30381aa473ebe7172ebb145eac8f3
2017-04-13 20:06:41 -07:00
Todd Lee
d5566c6c47 OEM single-build/multi-SKU via dynamic RRO support
The purpose here is to provide support for selectively
enabling Runtime Resource Overlays (RROs) (specifically
those pertaining to a specific SKU, within a OEM's "single
build" covering multiple SKUs) at boot based on the value
of a pre-defined system property.

This mechanism is designed to be compatible with other,
recent changes to Runtime Resource Overlays - specifically:

- has no effect on 'isStatic'. Resource overlays must be
  attributed as static in order to qualify for loading into
  the system_server. The 'requiredSystemPropertyName/
  requiredSystemPropertyValue' mechanism operates
  independent of this and can be used on both static and
  non static overlays. The effect of specifying a conditional
  property on any overlay is that it will ONLY be enabled
  in the event that the system reflects both the property
  and the specified value (Note that in the ABSENCE of a
  conditional property, overlays are assumed to be enabled).

- has no effect on OverlayManagerService (OMS) API. The
  OMS provides the system with an interface through which
  overlays can be enabled/disabled and even rearranged at
  runtime. This provides the basis of support for various
  user-level features (e.g. dynamic theme selection).
  The 'requiredSystemPropertyName/requiredSystemPropertyValue'
  mechanism operates independent of this -
  with enablement being completely coupled to the available
  system properties on the device and NOT subject to change
  at runtime.

Note: as part of this change, original overlay tests have been
updated (fixed) and expanded to include tests to cover the
conditional property implementation.

Issue: http://b/35100249
Test: frameworks/base/core/tests/overlaytests/testrunner.py

Change-Id: I1990ce21a27a385db1e2f53294b69dd03988351e
2017-04-13 19:33:11 -07:00
TreeHugger Robot
f9993a7b44 Merge "Add EXTRA_WIPE_ESIMS for factory reset of eSIM" 2017-04-14 02:04:01 +00:00
Dianne Hackborn
676bd21542 Merge "Add new extra for identifying an intent coming from storage UI." into oc-dev 2017-04-14 00:56:39 +00:00