Commit Graph

5422 Commits

Author SHA1 Message Date
Svet Ganov
a3c4eb35b1 Move child package feature behind sys prop
Now one can do adb shell setprop/getptop to change
"persist.sys.child_packages_enabled" to true/false to
control whether child packages are supported.

Test: manual

bug:36107077

Change-Id: Ie60e255fd3c248905906cdd5b10adae074c0b717
2017-04-25 00:19:53 +00:00
Jeff Sharkey
30e06bb668 Even more auto-doc work.
Update docs based on what new lint detector found.  Add new @IntDef
to parameters or methods returning constants or flags, and add
@RequiresPermission to methods mentioning permissions.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I7f640f7883fcb66b911a52ae93b83f77306571ec
2017-04-24 13:20:46 -06:00
TreeHugger Robot
1ab9119f50 Merge "Remove @TestApi annotation" into oc-dev 2017-04-24 15:35:51 +00:00
Nicolas Geoffray
9cea1d28dd Drop REASON_FORCED_DEXOPT.
This can already be configured with the default compiler filter.

Also remove unused performDexOptIfNeeded.

bug:35794392
Test: device boots, forced dexopt works.
Change-Id: I14fc86c4783b2d7ac9cf8972b6619ba303e79659
(cherry picked from commit e103256c1f)
2017-04-24 10:44:31 +00:00
Jeff Sharkey
6bc03748a7 Merge "More auto-doc work." into oc-dev 2017-04-22 19:11:34 +00:00
TreeHugger Robot
1939550fba Merge "Fix a spelling." into oc-dev 2017-04-22 02:32:39 +00:00
TreeHugger Robot
5be3647a9e Merge "Propagate density through AdaptiveIconDrawable and BitmapDrawable" into oc-dev 2017-04-21 22:35:57 +00:00
Jeff Sharkey
910e081216 More auto-doc work.
Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
2017-04-21 16:35:08 -06:00
Adam Lesinski
50954d2b4e Propagate density through AdaptiveIconDrawable and BitmapDrawable
Resources#getDrawableForDensity now propagates the overridden
density through to AdaptiveIconDrawable so that the density can be
propagated to leaf BitmapDrawables correctly.

This enables AdaptiveIconDrawable to support higher resolution
foreground/background bitmaps for use in Launcher.

Bug: 36039665
Test: bit CtsContentTestCases:android.content.res.cts.ResourcesTest
Change-Id: Iaa9a5592626e38e1ff839a76f7c6cfb9e16e5dc1
2017-04-21 13:25:44 -07:00
TreeHugger Robot
0a02259bba Merge "Move PackageManager to new auto-doc feature!" into oc-dev 2017-04-21 20:20:08 +00:00
Jeff Sharkey
4347f8147b Move PackageManager to new auto-doc feature!
Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: Ib368042e91be3ed702ede0facaf5c8d8d28853d4
2017-04-21 12:14:49 -06:00
Sudheer Shanka
e9ee7f2cb5 Fix a spelling.
Bug: 37419581
Test: N/A
Change-Id: Ia647911524f0a2ebc304e46753a2299bbdd61617
2017-04-21 10:35:47 -07:00
Kang Li
fadc0166d5 Removes colon characters from the doc of EXTRA_CONTENT_ANNOTATIONS.
bug: 37496130

Test: skipped test, because the change is only in javadoc.

Change-Id: I899d55da59260eabfcea0549a1c6a338bcda2c81
2017-04-21 15:19:58 +00:00
Todd Kennedy
fa7470df6f Remove @TestApi annotation
Change-Id: I5cd9556875df3d79568ccd7797aa81bcab731193
Fixes: 37322490
Test: GooglePartnerSetup/tests builds
2017-04-21 07:45:27 -07:00
TreeHugger Robot
9ea4b33f2a Merge "Auto-generate docs based on annotations." into oc-dev 2017-04-21 02:03:33 +00:00
Sudheer Shanka
2cef335b5b Merge "Update ClipDescription.getTimeStamp to use currentTimeMillis timebase." into oc-dev 2017-04-21 01:51:27 +00:00
Jeff Sharkey
6503bd8e33 Auto-generate docs based on annotations.
We have a handful of annotations that we've been sprinkling across
the platform APIs, such as @Nullable, @NonNull, @IntDef, etc.  It
would be really helpful to surface these contracts to developers
through the SDK docs.

This change allows annotations like those mentioned above to declare
the following new javadoc fields:

@memberDoc: docs to append to a field or method definition.
@paramDoc: docs to append to a @param definition.
@returnDoc: docs to append to a @return definition.

This change also builds a docstring to describe the list of all
constants listed in an @IntDef annotation.  Sadly AnnotationDesc
only passes along raw constant values, so we need the help of the
new "prefix" annotation argument to help find the field names.

Test: builds
Bug: 37526420
Change-Id: I4cfc00dd904e5dfa945b406d546e36846b7c0c28
2017-04-20 17:21:41 -06:00
Makoto Onuki
aeb7505a7f Merge "Enhance the shortcut manager javadoc." into oc-dev 2017-04-20 20:14:27 +00:00
Chad Brubaker
1f4e053aef Merge "Address API review comments for registerReceiver" into oc-dev 2017-04-20 19:52:51 +00:00
Sudheer Shanka
c820191061 Update ClipDescription.getTimeStamp to use currentTimeMillis timebase.
Bug: 37419581
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
      android.content.cts.ClipDescriptionTest

Change-Id: I699bfc073c471534eee0b3aa0300a6b6682ab8dd
2017-04-20 11:30:48 -07:00
Makoto Onuki
16e83d0536 Enhance the shortcut manager javadoc.
Test: make -j offline-sdk-docs
Bug 37418396

Change-Id: Ic82eb45ea232c2f032abaade12ac9ca967c35cae
2017-04-20 11:22:59 -07:00
Jesse Hall
45ff1d1ad3 Merge "Vulkan compute 0 only requires variable pointers" into oc-dev 2017-04-20 14:51:36 +00:00
TreeHugger Robot
fb4fb03cc3 Merge "Address API council comments" into oc-dev 2017-04-20 03:53:37 +00:00
TreeHugger Robot
aa6b649a35 Merge "Revert "Introduce PACKAGE_FIRST_ADDED broadcast"" into oc-dev 2017-04-20 02:15:14 +00:00
TreeHugger Robot
232ff0bdc8 Merge "Fix issue #37470038: API Review: ServiceConnection.onBindingDead()" into oc-dev 2017-04-19 23:55:40 +00:00
TreeHugger Robot
52312298b6 Merge "Package installer related changes to javadoc" into oc-dev 2017-04-19 23:34:27 +00:00
Christopher Tate
94b91dbbb8 Revert "Introduce PACKAGE_FIRST_ADDED broadcast"
This reverts commit ee3b42af3f.

Bug 37219124
Test: manual
2017-04-19 15:49:17 -07:00
Chad Brubaker
6d6015f652 Address API review comments for registerReceiver
Bug: 37465538
Test: manual; Verified that Instant Apps can send broadcasts to
receivers still via the changed API.

Change-Id: Ib0f3d0c8ee71234288ccecd07e621554eb9b70ac
2017-04-19 15:06:35 -07:00
Dianne Hackborn
ac26534996 Fix issue #37470038: API Review: ServiceConnection.onBindingDead()
Renamed.

Test: booted and ran.

Change-Id: Ic21f7ef66d43fb6db9f7ebbc833f28c09474ea59
2017-04-19 14:53:43 -07:00
Chad Brubaker
904e6cad28 Merge "Change ANDROID_ID for Instant Apps" into oc-dev 2017-04-19 21:00:55 +00:00
TreeHugger Robot
3a427c3bd9 Merge "Flesh out more API docs." into oc-dev 2017-04-19 20:31:05 +00:00
TreeHugger Robot
4d95e40bb3 Merge "Make javadoc of companion service name more like others" into oc-dev 2017-04-19 20:15:04 +00:00
Jeff Sharkey
9a1967e157 Merge "Some folks like sending null fields." into oc-dev 2017-04-19 20:11:26 +00:00
Chad Brubaker
0d277a7b18 Change ANDROID_ID for Instant Apps
ANDROID_ID for Instant Apps now has the following properties:
1) per-app scoped
2) reset if the user clears the Instant App
3) remains the same if the Instant App gets upgraded to an installed
app.

Note that if the user goes instant -> installed_1 -> uninstall ->
installed_2 the ANDROID_ID at installed_1 will not be the same as
installed_2. This was deemed better than the id changing on the upgrade
step.

Test: manual
Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f
2017-04-19 11:10:53 -07:00
Jeff Sharkey
60a82cd4c2 Flesh out more API docs.
Flesh out docs for Context.getCacheDir(), Intent.addFlags(),
Intent.removeFlags(), and PackageManager.setApplicationCategoryHint().

Test: builds, boots
Bug: 37470473, 37327774, 35812899
Change-Id: Ided031185258a89c3e275d65c162d537065ad49e
2017-04-19 11:51:21 -06:00
TreeHugger Robot
83c9413b75 Merge "Fix issue with fontScale changes not taking effect" into oc-dev 2017-04-19 17:32:30 +00:00
Jeff Sharkey
67c8c1e109 Some folks like sending null fields.
Test: cts-tradefed run commandAndExit cts-dev -m CtsContentTestCases -t android.content.pm.cts.ComponentInfoTest
Bug: 37495524
Change-Id: I9040534d717ac70d580bd2a7f5488369ab7c3a47
2017-04-19 11:28:14 -06:00
Jesse Hall
7a1b8af000 Vulkan compute 0 only requires variable pointers
Bug: 34745152
Test: make doc
Change-Id: If2348a387cdc898b028c5dd577c80246a36b87d3
2017-04-18 21:27:05 -07:00
Svetoslav Ganov
57ed0ba69d Merge "Address API council comments" into oc-dev 2017-04-19 02:44:18 +00:00
TreeHugger Robot
e28cccab24 Merge "update docs per API council" into oc-dev 2017-04-19 01:31:46 +00:00
Adam Lesinski
ec05bc0fda Fix issue with fontScale changes not taking effect
If a configuration change occurs, and an underlying ResourcesImpl is
swapped out under a Resources object, the DisplayMetrics cached by
TypedArray will be stale and not up-to-date.

Bug: 34120637
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerConfigChangeTests
Change-Id: Id78a6d259250950387c2e95c4a2292fdd095c7af
2017-04-18 16:58:18 -07:00
Svetoslav Ganov
345ffa5421 Address API council comments
Test: cookie CTS tests pass

bug:37327624
bug:37325276
bug:37323696

Change-Id: I52b10470759e471629ec6772e115df94482eb341
2017-04-18 16:44:43 -07: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
TreeHugger Robot
43b814b1d2 Merge "update docs per API council" into oc-dev 2017-04-18 22:09:32 +00:00
TreeHugger Robot
94ac6ae6d9 Merge "Fixing javadoc errors for pm#canRequestPackageInstalls" into oc-dev 2017-04-18 21:07:48 +00:00
Eugene Susla
4160be14eb Make javadoc of companion service name more like others
Fixes: 37469823
Test: Ensure no compilation failure
Change-Id: I37ae54bbf05f4434eddbc13b0064ecfc99f69b8e
2017-04-18 12:29:54 -07:00
Suprabh Shukla
54a10e6554 Package installer related changes to javadoc
Permission REQUEST_INSTALL_PACKAGES is enforced starting from API 26 and
the scope of EXTRA_ORIGINATING_UID is restricted.

Test: make docs

Bug: 33351244
Change-Id: Id7ce9623289374c1c34d3c7b2a0fc0e0493f9923
2017-04-17 23:13:12 -07: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