304597 Commits

Author SHA1 Message Date
Adam Lesinski
4e8628157a Add support for Split APK dependcies
Apps can now declare in their base APK AndroidManifest.xml
that they want to have their split APKs loaded in isolated
Contexts. This means code and resources from the split
get loaded into their own ClassLoader and AssetManager.

<manifest xmlns:android="..."
          ...
          android:isolatedSplits="true"
          ...

In order to make this more useful, splits can declare dependencies
on other splits, which will all get pulled in to the Context
and run as expected at runtime.

A split declares its dependency on another split by using the
tag <uses-split> in its AndroidManifest.xml:

<manifest xmlns:android="...">
    ...
    <uses-split android:name="feature_split_1" />
    ...

A split can have a single parent on which it depends on. This is
due to the limitation of having a single ClassLoader parent.
All splits depend on the base APK implicitly.

PackageManager verifies that no cycles exist and that each dependency
is present before allowing an installation to succeed.

The runtime will then load splits based on the dependencies.

Given the following APKs:

base <-- split A <-- split C
  ^----- split B

If an Activity defined in split C is launched, then the base,
split A, and split C will be loaded into the ClassLoader defined
for the Activity's Context. The AssetManager will similarly be loaded
with the resources of the splits.

A split can be manually loaded by creating a Context for that split, defined
by its name:

Context.createContextForSplit("my_feature_split_1");

All installed Activities, Services, Receivers, and Providers are accessible
to other apps via Intent resolution. When they are instantiated, they are
given the appropriate Context that satisfies any dependencies the split they
were defined in stipulated.

Test: WIP (CTS tests to come)
Change-Id: I8989712b241b7bc84381f2919d88455fcad62161
2017-01-24 18:34:08 -08:00
Peter Qiu
ff256204e8 Merge "hotspot2: add support for complete HomeSP subtree" am: 28c7afe578 am: 6570ce6c80 am: 704f1bfea4
am: 890cc7e901

Change-Id: I56ae04669ad7e4031cef84489c84cd7230464483
2017-01-25 02:23:49 +00:00
Peter Qiu
890cc7e901 Merge "hotspot2: add support for complete HomeSP subtree" am: 28c7afe578 am: 6570ce6c80
am: 704f1bfea4

Change-Id: I0ad0256eb12fd4c255dd0c27d7ec8b90d42ccbdc
2017-01-25 02:19:45 +00:00
Peter Qiu
704f1bfea4 Merge "hotspot2: add support for complete HomeSP subtree" am: 28c7afe578
am: 6570ce6c80

Change-Id: I8c232cc7d246b28943d16c1f28121597dad8f215
2017-01-25 02:15:44 +00:00
Peter Qiu
6570ce6c80 Merge "hotspot2: add support for complete HomeSP subtree"
am: 28c7afe578

Change-Id: If1b097fb5b9453d1e108534c1fb088dfc92b1b6e
2017-01-25 02:11:10 +00:00
Treehugger Robot
28c7afe578 Merge "hotspot2: add support for complete HomeSP subtree" 2017-01-25 02:02:59 +00:00
Ying Wai (Daniel) Fan
896c7f8937 Merge "Correct the formula of battery capacity estimation." 2017-01-25 02:01:53 +00:00
TreeHugger Robot
58ac1310db Merge "Camera2: Combine API for deferred surface and shared surface" 2017-01-25 01:54:24 +00:00
TreeHugger Robot
1909ec1cd5 Merge "Update Status Bar with Badged Wifi Icons." 2017-01-25 01:42:46 +00:00
Jeremy Joslin
ba24273401 Implemented network score cache filtering.
NetworkScoreCaches registered with a filter type will now only
receive updates that match their filter criteria.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34127291
Change-Id: I3d5e6e57b6682707b0734259a2530658ad75dbb7
2017-01-24 17:33:47 -08:00
Ralph Nathan
9d3d90a22f Merge "Add FEATURE_EMBEDDED to PackageManager" 2017-01-25 01:32:54 +00:00
TreeHugger Robot
01e4eeb0e8 Merge "Added StackWindowContainerController" 2017-01-25 01:25:19 +00:00
Jason Long
b04c54fdb3 Merge "Define contract for AutoFillServiceInfo more precisely." 2017-01-25 01:21:43 +00:00
TreeHugger Robot
e84ad491c8 Merge "Add color mode to activity/window" 2017-01-25 01:20:28 +00:00
TreeHugger Robot
b7cab6a190 Merge changes from topic 'bisto-request'
* changes:
  Allow privileged app to set media key event listener
  Allow privileged app to set volume key long-press listener
2017-01-25 01:16:32 +00:00
Yuichi Araki
b08655764b Merge "AAPT: Add --no-version-transitions flag" 2017-01-25 01:05:24 +00:00
Hongming Jin
f32d909df0 Merge "Test: AccountManagerService APCT test." 2017-01-25 01:00:56 +00:00
Peng Xu
ccf0c8edea Sensor event direct report mode support API
Add direct report mode support API with stub implementation.

 * new SensorDirectChannel class to represent direct channel and
   hold related constants.
 * new methods in SensorManager to create/destroy direct channel
 * new method in SensorManager to config sensor report in direct
   channel
 * new methods in Sensor to expose direct report related capability
   of sensor.

Test: tested with demo app
Bug: 30985702
Change-Id: Ic03c67bea4ed0a728d3d783e95de6c59cf663cca
2017-01-24 16:54:05 -08:00
TreeHugger Robot
3c30e00add Merge "Remove accessibility labels of application info and dimiss" 2017-01-25 00:50:21 +00:00
Andrew Sapperstein
97bfa0f17d Decrease frequency of high temp warnings
Instead of showing any time the temp is above throttling temp,
if the user has dismissed the notification (or clicked it), the notification
will not reshow until the temperature has gone below the throttling
temp and come back.

Test: manual
Change-Id: I4cef9144dfcff03a5e70ccd5b12efaab1e74d15b
Fixes: 34346625
2017-01-24 16:38:50 -08:00
Android Build Merger (Role)
840a779a42 Merge "Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout" into nyc-mr2-dev am: ae5d4ff831 am: 8d2ffaefaa" 2017-01-25 00:36:24 +00:00
Adrian Roos
14d84f56c9 Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout" into nyc-mr2-dev am: ae5d4ff831
am: 8d2ffaefaa

Change-Id: I566523005ac5f21e1033f30d99d220b8f513167c
2017-01-25 00:35:46 +00:00
Android Build Merger (Role)
69031d61fa Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout am: 4749930c37 am: c0f4f0a1dc" 2017-01-25 00:35:26 +00:00
Daniel Nishi
b08c9f387a Merge "Only count user 0 for diskstats package logging." 2017-01-25 00:35:19 +00:00
Adrian Roos
3ecaa8e27b MessagingStyle: Fix buggy measure in MessagingLinearLayout am: 4749930c37
am: c0f4f0a1dc

Change-Id: Icc4f29c3e6d44aa00159e7355bd5d3957c7905c7
2017-01-25 00:34:35 +00:00
Adrian Roos
8d2ffaefaa Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout" into nyc-mr2-dev
am: ae5d4ff831

Change-Id: Ib76e1da3dbd8b55ff55b3df2f040380e86fd3c35
2017-01-25 00:30:43 +00:00
Adrian Roos
c0f4f0a1dc MessagingStyle: Fix buggy measure in MessagingLinearLayout
am: 4749930c37

Change-Id: Id664ebb3c07271ff5282daedd29c7f38e79c8776
2017-01-25 00:30:35 +00:00
TreeHugger Robot
ae5d4ff831 Merge "MessagingStyle: Fix buggy measure in MessagingLinearLayout" into nyc-mr2-dev 2017-01-25 00:24:38 +00:00
Peter Qiu
444dc5d099 hotspot2: add support for complete PerProviderSubscription/Credential subtree
Added missing fields in Credential subtree for supporting Release 2
and added parsing support for the new fields.

Bug: 34198926
Test: frameworks/base/wifi/test/runtests.sh
Change-Id: Ic3665c963ab77ddc4b9a03262517a3c7a4ec3ffc
2017-01-24 16:18:31 -08:00
Peter Qiu
e6e7baa600 hotspot2: add support for complete HomeSP subtree
Added missing fields in HomeSP subtree for supporting Release 2
and added parsing support for the new fields.

Bug: 34198926
Test: frameworks/base/wifi/test/runtests.sh
Change-Id: Id2766b6b48be8bd97b56eb7c57a0e8527f38e06c
2017-01-24 16:07:26 -08:00
TreeHugger Robot
8773a8d0be Merge "Make SettingsProvider reset no-op for now." 2017-01-25 00:00:09 +00:00
Romain Guy
4832745b84 Add color mode to activity/window
The color mode lets an application request a wide color gamut for
a specific window. This will also be used in the future to request
HDR. The color mode is currently either default (sRGB) or an undefined
wide gamut color space chosen by the platform. These attributes could
later be used to choose a specific color space if we deem this important
or useful.

This change also renames the various "colorimetry" attributes and
constants to "color mode" for consistency. These symbols were
added in O and can be safely renamed.

Test: CtsColorModeTestCases
Bug: 32984164
Change-Id: I4d4691dd12dbe3f3aa6a5cf893cff39aa16c739e
2017-01-24 15:55:09 -08:00
Android Build Merger (Role)
c58119fe2e Merge "Merge "unbindBackupAgent and initialize inFullBackup" am: 36654ffef5 am: 3a13bb43f6 am: 6793b1f0b8 am: c8d9b32db8" 2017-01-24 23:53:20 +00:00
Chris Tate
dfbba3e790 Merge "unbindBackupAgent and initialize inFullBackup" am: 36654ffef5 am: 3a13bb43f6 am: 6793b1f0b8
am: c8d9b32db8

Change-Id: I19a58876417cd00019c3d5fead9ee6bb48eb3f8d
2017-01-24 23:52:35 +00:00
TreeHugger Robot
2268f459de Merge "Enable kernel UID state updates." 2017-01-24 23:52:29 +00:00
Frank Barchard
39a1fce439 media volume allow --get to be combined with --set and --adj
Bug: 33819516
Test: adb shell media volume --stream 3 --adj lower --get
Change-Id: Ie30f5c0ea54bfac59c2e05513da61a98658f7d0e
2017-01-24 23:47:19 +00:00
Chris Tate
c8d9b32db8 Merge "unbindBackupAgent and initialize inFullBackup" am: 36654ffef5 am: 3a13bb43f6
am: 6793b1f0b8

Change-Id: I16e1b48e818023243f2c05e43599432f59203a19
2017-01-24 23:46:58 +00:00
Badhri Jagan Sridharan
d979398983 Merge "Refactor UsbPortManager to use the binderised USB HAL" 2017-01-24 23:46:25 +00:00
Chris Tate
6793b1f0b8 Merge "unbindBackupAgent and initialize inFullBackup" am: 36654ffef5
am: 3a13bb43f6

Change-Id: I44fcb1ff849d39ff528adb85f8d76563eb9b9d52
2017-01-24 23:42:33 +00:00
Makoto Onuki
454a9777b8 Merge "Add client package name to WTF message" 2017-01-24 23:42:31 +00:00
Chris Tate
3a13bb43f6 Merge "unbindBackupAgent and initialize inFullBackup"
am: 36654ffef5

Change-Id: I5ba75075e2fb2dae0dcabbb0cee3b83c3d0c15ea
2017-01-24 23:38:12 +00:00
Chris Tate
36654ffef5 Merge "unbindBackupAgent and initialize inFullBackup" 2017-01-24 23:31:35 +00:00
Matthew Snider
c755fb64f6 Merge "Introducing clear package data intent" 2017-01-24 23:31:12 +00:00
Ralph Nathan
b8e0dee9af Add FEATURE_EMBEDDED to PackageManager
This CL adds FEATURE_EMBEDDED to PackageManager to identify Android
Things devices.

BUG: 34644059
Test: built using make update-api

Change-Id: Ife4430e4a445f6afdd969e94db5fe5c9098ee145
2017-01-24 15:30:50 -08:00
TreeHugger Robot
b878348382 Merge "Don't mark query+cancellationSignal final." 2017-01-24 23:26:24 +00:00
Wale Ogunwale
1666e317dc Added StackWindowContainerController
For linking ActivityStack in AMS to TaskStack window container in WMS.

Change-Id: I8b9eaef49e62854d59b22d27f80f5935a5a4d7fc
Bug: 30060889
Test: bit FrameworksServicesTests:com.android.server.wm.StackWindowContainerControllerTests
Test: bit FrameworksServicesTests:com.android.server.wm.TaskWindowContainerControllerTests
Test: Existing test pass and manual testing.
2017-01-24 15:23:37 -08:00
Hongming Jin
a0c4d1d6bf Test: AccountManagerService APCT test.
More APCT tests for AccountManagerService for session based functions:
hasFeatures, removeAccountAsUser, getAuthTokenLabel, getAuthToken,
addAccountAsUser

Bug: 31346530
Change-Id: Ie57973547aa676b83b56ee8664dd2de661ec4a7e
2017-01-24 15:23:27 -08:00
Sundeep Ghuman
d57f324776 Update Status Bar with Badged Wifi Icons.
This change inserts badged wifi icons into the status bar to indicate
historical network strength. The existing callback handler was modified
to explicitly pass the drawable as currently the icon is a rendered from
two separate resources, composited together in a LayeredDrawable.

Badging is controlled by Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED
and can be enabled from the Wifi Settings page.

Bug: 34056846
Test: runtest --path
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerWifiTest.java
Change-Id: I33b736d4543e380887513cbb5937f49945794c09
2017-01-24 15:18:32 -08:00
Matthew Ng
72800a9373 Remove accessibility labels of application info and dimiss
After moving application info and dismiss actions into custom actions
this will remove the talkback options by removing their labels.

Test: listened to options with talkback
Fixes: 29360763
Change-Id: Ia2cc788b22d1fcede58cb43cdbfe23c055604105
2017-01-24 15:10:38 -08:00
Android Build Merger (Role)
6cdd505398 Merge "Merge "Vodafone SIMs should treat Spain as roaming" am: a9c27b348c am: 8e9cf51db3 am: 3cd1f5bac7 am: 17674b6115" 2017-01-24 23:02:55 +00:00