313449 Commits

Author SHA1 Message Date
Jeff Davidson
35cda39422 Squashed merge of master-sim into master.
Includes the following commits:

==

New system feature: eUICC.

Presence of this feature implies that eUICC-related APIs are expected
to function as long as an eUICC is present in the device. Note that an
eUICC may be embedded in the device but may also be removable.

==

Add empty EuiccManager API and plumbing.

==

Add stub EuiccService.

EuiccService is the class that the LPA app must implement; for now,
just define the action and priority so that the implementation can be
found. Actual methods will come later.

Also declare two relevant permissions: BIND_EUICC_SERVICE, which the
implementation must require (so that nobody else can bind to the
service directly), and WRITE_EMBEDDED_SUBSCRIPTIONS, which permits
signature|privileged apps and CTS (via development) to access
EuiccManager APIs.

==

Add UiccAccessRule based off UiccCarrierPrivilegeRules#AccessRule.

This class can be used to transfer access rules between an
EuiccService implementation and the platform.

We also add a simple encoding/decoding of a list of rules so that they
may be stored in the subscription info table.

==

Add getEid() to EuiccManager/EuiccService.

getEid() fetches the EID. It requires either a privileged permission
(READ_PRIVILEGED_PHONE_STATE) or carrier privileges on the
currently-active profile. Until there is a use case that requires
opening this up to apps with only READ_PHONE_STATE, we shouldn't do
so.

To avoid churn in the future, the API signatures for EuiccService
include a slot ID to identify which SIM slot is being used. However,
this parameter is currently not populated correctly (nor is it usable,
as no Telephony APIs accept a slot ID to address commands). There is
no need to expose it yet in the EuiccManager APIs as we expect to
follow the TelephonyManager pattern of allowing per-slot instances of
EuiccManager in the future while keeping other method signatures the
same.

==

Define Euicc UI actions in EuiccManager/EuiccService.

The EuiccManager actions are to be implemented by the platform (and
only the platform), which forwards the actions to the active
implementation.

Also, remove our explicit priority meta-data tag as we can just rely
on android:priority in the corresponding intent-filter.

==

APIs for downloading embedded subscriptions.

Includes:

-getDownloadableSubscriptionMetadata, used by the platform and LUI to
fetch metadata about a downloadable subscription. The platform will
use this to perform the necessary permission checks (only allowing
otherwise-unprivileged apps to download profiles that are permitted
per the subscription metadata), and the LUI can use this to present
the name of the profile.

-downloadSubscription, to actually perform a profile download.

The stub for startResolutionActivity is included but not implemented;
resolution activities will be handled in a follow-up change.

==

Test: TreeHugger
Change-Id: I47b1da5a69f0736012cb137e02cd6c4e07fdaace
2017-04-03 11:17:53 -07:00
George Mount
c5045a323f Merge "Allow committing allowing state loss on detached FragmentManager." into oc-dev am: e9679db5e2
am: 834752d4b2

Change-Id: I8f60a0e8b45d6c9c0944b47d867cbb5727fafc7a
2017-04-03 18:13:28 +00:00
Chad Brubaker
a8c068f723 Merge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev
am: e35d50622c

Change-Id: Ibe29b902356c271e4ca33da87ed908d427dfb46d
2017-04-03 18:13:27 +00:00
Brad Ebinger
57132a1513 Merge "Move CALL_PRIVILEGED/EMERGENCY to @SystemApi" into oc-dev 2017-04-03 18:12:42 +00:00
Diego Perez
d8113d32f0 Merge "Fix broken perf tests" into oc-dev am: 974b5b13b2
am: 471872e4b8

Change-Id: I9941c82ab0467fd885262aba22078fef5fda8769
2017-04-03 18:10:52 +00:00
Jason Monk
aa42bf71d5 Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev am: a56b6e530a
am: f6e22d4f36

Change-Id: Ib70b009369497f3c11369b01093298bb287f432f
2017-04-03 18:09:36 +00:00
Jason Monk
5f23cfe1f7 Merge "Fix losing status bar icons on config changes" into oc-dev am: f244f7e1b8
am: 5c549b3a2a

Change-Id: I73db4793b09c095404e61e7b377579108116c5f2
2017-04-03 18:08:17 +00:00
Andrii Kulian
45d534bf93 Merge "Fix some WM unit tests" into oc-dev
am: 2c93764bee

Change-Id: I7d2d610f3939eac1b271e45ae35457b7b71dc46a
2017-04-03 18:07:30 +00:00
Daniel Nishi
2444e42e1c Merge "Use KB instead of kB." into oc-dev
am: e8165eb4ba

Change-Id: I33784b0f9c681dcfdc2a1f03d707336a9729ae30
2017-04-03 18:06:19 +00:00
Geoffrey Pitsch
635e4efa1c Merge "Fix deleting Misc channel for o-aps" into oc-dev
am: a906fb7b43

Change-Id: I5276632980c373a0bc1861915a10cecf29b6cce1
2017-04-03 18:05:06 +00:00
Todd Kennedy
58672aba18 Merge "Expose instant app to exposed providers" into oc-dev
am: 644648ebfd

Change-Id: I32fc7de9cd1a0823dd38e5103d85c47776bb1404
2017-04-03 18:03:47 +00:00
Jason Monk
3184cfce76 Merge "Disable sounds on menu button" into oc-dev
am: 5c8832a983

Change-Id: I16aef7e38de6a154d051f539b9fc8c96db73958a
2017-04-03 18:02:26 +00:00
Todd Kennedy
efe5d22272 Merge "Implement service filtering" into oc-dev am: 35110948b7
am: 48a2f0036c

Change-Id: I479a1db354a7f61e669f67241a0648d843301e95
2017-04-03 18:02:24 +00:00
Jason Monk
17e605aae8 Merge "Fix battery icon dark initialization" into oc-dev
am: cb4ed821f2

Change-Id: I34cc7adb16ec21ba8c9cf210b3ca61b2c9506290
2017-04-03 18:01:17 +00:00
Bryce Lee
126159a88f Merge "Add app bounds to configuration." into oc-dev am: 7efe56b779
am: 59d1f8a024

Change-Id: Iae8e43872eee11214347cfb935793e9356a50e08
2017-04-03 18:00:08 +00:00
Chris Wren
be5d41d551 Merge "standardize network policy notification IDs" into oc-dev am: ef3a28cb92
am: 04b0e05bef

Change-Id: Ifd5acffff7b45e02d5ba404550e32e16b5003bd7
2017-04-03 17:58:54 +00:00
Joseph Pirozzo
43eba0836d Bluetooth Multi Connect
Allow automotive bluetooth profiles to connect to issue multiple connect
calls without disconnecting other devices.  These client side profiles
either support multiple connections or handle multiple connection
requests gracefully.

Bug: 36789202
Test: Manual, Connect to one paired device then attempt to connect to a
second paired device, observe that HFP and PBAP are both connected on
both devices.

Change-Id: I8bd6aea2b8411ba5585b34292d8c6ec62c5c2f96
2017-04-03 10:57:32 -07:00
George Mount
834752d4b2 Merge "Allow committing allowing state loss on detached FragmentManager." into oc-dev
am: e9679db5e2

Change-Id: I4192bc42bdc35ff29ac6e3c4ce2bb67f5a412c4b
2017-04-03 17:57:27 +00:00
Jason Monk
5a61ea4282 Merge "Switch cast over to support library dialog" into oc-dev am: de8cd0e8f5
am: 4209e9d739

Change-Id: I5311fff98a4735bf79c1f147e5733c38caf9da37
2017-04-03 17:57:23 +00:00
Jorim Jaggi
bb36746ad1 Revert "Temporarily bg-whitelist the default container package-cleaning service" am: 91232840aa
am: c4bfd5e751

Change-Id: I83a8d235fca0991f394cd9da899089a96bc0a7f3
2017-04-03 17:56:10 +00:00
Tony Mak
96189bf5a7 Merge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev am: 0c224f9674
am: aa82698241

Change-Id: If67406031276a6d958a9c3261a3c6ef51907f2c4
2017-04-03 17:54:39 +00:00
Diego Perez
471872e4b8 Merge "Fix broken perf tests" into oc-dev
am: 974b5b13b2

Change-Id: Ic9442beef0e2bec7db53b8e6ef1ff47dc6d12769
2017-04-03 17:52:17 +00:00
Jason Monk
f6e22d4f36 Merge "QS: Add transient animations for bluetooth and wifi" into oc-dev
am: a56b6e530a

Change-Id: I43f7dafe192930ce5f3a78db5e586d62ba66a1c4
2017-04-03 17:51:00 +00:00
Jason Monk
5c549b3a2a Merge "Fix losing status bar icons on config changes" into oc-dev
am: f244f7e1b8

Change-Id: I08a75d88e6764703d4c450b9ee5f81a824e2adc9
2017-04-03 17:49:45 +00:00
Hyunyoung Song
4794829a1e Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev am: 891e03203c
am: d16d17881e

Change-Id: I96db9ee1a5bb9fc2085e43733638a6b21f50fe65
2017-04-03 17:49:19 +00:00
Todd Kennedy
48a2f0036c Merge "Implement service filtering" into oc-dev
am: 35110948b7

Change-Id: Ie19ae7075e8fe35857a60306452fe19b06bb1848
2017-04-03 17:46:59 +00:00
Winson Chung
c3545d3dc4 Fix menu visibility while updating dismiss fraction.
Bug: 36225602
Test: Enter PIP, move, tap field to show IME
Change-Id: Idf47728a2fa40703e4e68b2cc0925167b8e80c0c
2017-04-03 10:44:57 -07:00
Jeff Sharkey
c91c16b557 Merge "Lower-level user enumeration; fix disabled bug." into oc-dev am: 713b7c6b53
am: f00900d7d4

Change-Id: I81fdae7cc9a09fd8231cd1e2f30113cf02884b59
2017-04-03 17:44:51 +00:00
Jeff Sharkey
c0a60682e2 Merge "We really want f_frsize and f_bavail." into oc-dev am: fd463121c6
am: f9f7d71cc5

Change-Id: Ifa28cb4515d6e9e74380fe70d73aec292d126ac9
2017-04-03 17:43:10 +00:00
Bryce Lee
59d1f8a024 Merge "Add app bounds to configuration." into oc-dev
am: 7efe56b779

Change-Id: If871d90a72f675a93503e883135ebee77f12d971
2017-04-03 17:41:40 +00:00
Chris Wren
04b0e05bef Merge "standardize network policy notification IDs" into oc-dev
am: ef3a28cb92

Change-Id: I0a5f11c0068a6da11bbb18d7a6f8e42f00655d74
2017-04-03 17:40:29 +00:00
Jason Monk
4209e9d739 Merge "Switch cast over to support library dialog" into oc-dev
am: de8cd0e8f5

Change-Id: I997130142d426967d60e9c384056c3aba1ea5af5
2017-04-03 17:38:57 +00:00
Jorim Jaggi
c4bfd5e751 Revert "Temporarily bg-whitelist the default container package-cleaning service"
am: 91232840aa

Change-Id: I0fefe67edea6e5a0c435bbe73730d5ede3adee14
2017-04-03 17:37:40 +00:00
Tony Mak
aa82698241 Merge "Revert "Whitelist ManagedProvisioning from bg check"" into oc-dev
am: 0c224f9674

Change-Id: I6dc643e93b2d542b407abd5aaa7d832df47e47f7
2017-04-03 17:36:07 +00:00
Chad Brubaker
e35d50622c Merge "Rename READ_PHONE_NUMBER to READ_PHONE_NUMBERS" into oc-dev 2017-04-03 17:34:13 +00:00
Yin-Chia Yeh
855662cb57 Merge "Camera: add batching support to HAL1 recording path" into oc-dev am: e1df48d3a0
am: f9da2da1fe

Change-Id: I4681267c10af539ee9a433f3ccdc397894b8f552
2017-04-03 17:34:03 +00:00
Andrii Kulian
2c93764bee Merge "Fix some WM unit tests" into oc-dev 2017-04-03 17:34:01 +00:00
Hyunyoung Song
d16d17881e Merge "Prevent NPE when draw is called without bounds being set Test: unit test inside AdaptiveIconDrawableTest.java" into oc-dev
am: 891e03203c

Change-Id: I14746f95c369503f5515e5123a481798fc76197c
2017-04-03 17:32:51 +00:00
Jeff Sharkey
f00900d7d4 Merge "Lower-level user enumeration; fix disabled bug." into oc-dev
am: 713b7c6b53

Change-Id: Ic2edcfc0d30bc5429753c313d31703802e630851
2017-04-03 17:29:45 +00:00
Jeff Sharkey
f9f7d71cc5 Merge "We really want f_frsize and f_bavail." into oc-dev
am: fd463121c6

Change-Id: I55aebb3b452f4d41af7e5f54d0dff27e9bc6cca6
2017-04-03 17:27:48 +00:00
Daniel Nishi
e8165eb4ba Merge "Use KB instead of kB." into oc-dev 2017-04-03 17:25:17 +00:00
Yin-Chia Yeh
f9da2da1fe Merge "Camera: add batching support to HAL1 recording path" into oc-dev
am: e1df48d3a0

Change-Id: I8e43b2faf95002b33bd8b861b046cd15c02f38d3
2017-04-03 17:24:40 +00:00
Mike Reed
6813635aea add temporary cast to allow Skia roll
Test: refactoring CL. Existing unit tests still pass.

Change-Id: I2e2a647bfad76af313db70d196566e01bf909fc8
2017-04-03 13:14:35 -04:00
Sanket Padawe
2c1a49f933 Make some intents public in SubscriptionManager.
+ As per https://docs.google.com/document/d/1K8C7Ly8YVu032FQlwEdkv3ovcTYQCTvy0PaMax5PmZI/edit#heading=h.g6rt8vhyfjj1

Bug: 36572866
Test: Builds successfully.
Change-Id: Ibb1d1faae9a002ccb530446e24897955c12076e1
2017-04-03 10:13:12 -07:00
Yohei Yukawa
101ae464fc Warn if IMM#showSoftInputUnchecked() is called
With this CL, an @hide method InputMethodManager#showSoftInputUnchecked
is marked to be deprecated and starts showing a warning message in logcat
when it gets called to tell application developers who are still using
old implementation fo android.support.v7.widget.SearchView that they
need to switch to support library ver. 26.0 or later version.

Other than that there is no behavior change in this CL.

Test: Manually verified as follows:
       1. Flash an OS image
       2. Complete the setup wizard (if any).
       3. In N MR-1 AOSP repository
          frameworks/support/gradlew -p frameworks/support support-v7-demos:assemble
       4. adb install out/host/gradle/frameworks/support/support-v7-demos/build/outputs/apk/support-v7-demos-debug.apk
       5. adb logcat -s InputMethodManager
       6. adb shell am start -n com.example.android.supportv7/.Support7Demos
       7. Tap AppCompat -> Action Bar -> Action Bar Usage
       8. Tap the magnifier icon.
       9. Make sure that the software keyboard shows up.
      10. Make sure that in logcat a warning that showSoftInputUnchecked
          is going to be removed is shown.
Fixes: 36015425
Change-Id: If01316a0c2a210f9ea03b53700d0ef651955ba9c
2017-04-03 17:11:41 +00:00
TreeHugger Robot
a906fb7b43 Merge "Fix deleting Misc channel for o-aps" into oc-dev 2017-04-03 16:53:54 +00:00
TreeHugger Robot
644648ebfd Merge "Expose instant app to exposed providers" into oc-dev 2017-04-03 16:43:08 +00:00
TreeHugger Robot
5c8832a983 Merge "Disable sounds on menu button" into oc-dev 2017-04-03 16:37:49 +00:00
TreeHugger Robot
cb4ed821f2 Merge "Fix battery icon dark initialization" into oc-dev 2017-04-03 16:37:11 +00:00
TreeHugger Robot
e9679db5e2 Merge "Allow committing allowing state loss on detached FragmentManager." into oc-dev 2017-04-03 16:34:17 +00:00