377942 Commits

Author SHA1 Message Date
Tyler Gunn
1847b4eb74 Expose capabilitiesToString for use in Telecom.
We will use this in phone account registrar to make the logs more useful.

Test: Manual
Bug: 119306215
Change-Id: Ic882192bc5f135e70f37ddbba055127fdb9c1569
2018-11-09 08:43:02 -08:00
Calvin Pan
1df5ca6a71 Merge "Add CarrierId column in TelephonyProvider" 2018-11-09 13:30:51 +00:00
Paul Duffin
c6b17ad431 Merge "Remove android.icu.... classes from light grey list" 2018-11-09 13:24:17 +00:00
Louis Chang
48bfeeb568 Reduce screen layout in task override configuration from its parent config
This prevented scheduling unexpected screen layout size
changes to client when entering PIP.

Bug: 111811414
Test: atest ActivityManagerPinnedStackTests
Test: go/wm-smoke
Change-Id: I6ff55bedad29df2ae3d00cdd18a748c052fae750
Merged-In: I6ff55bedad29df2ae3d00cdd18a748c052fae750
2018-11-09 12:32:39 +00:00
Treehugger Robot
f2d5ace011 Merge "DexLoadReporter needs to handle arbitrary class loaders." 2018-11-09 11:02:20 +00:00
Junyu Lai
df01b11de1 Merge "Use spy in PermissionMonitorTest." 2018-11-09 08:47:03 +00:00
Wang, ArvinX
3b9dae8c20 Unable to input PIN with hardware keyboard
After typing a wrong PIN, the EditText view will be disabled and lose the focus,
as a result, inputs from hardware keyboard won't be sent to PIN EditText.

Test: 1. Enable PIN lock
Test: 2. Lock the device with Power key
Test: 3. Enter wrong PIN from a physical keyboard
Test: 4. Try to enter PIN again with physical keyboard

Bug: 119287260

Change-Id: I04df523c19c99bef75ea481b44154f7ba2270689
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2018-11-09 08:01:58 +00:00
Sudheer Shanka
c0dd0d6648 Merge "Fix adb shell cmd activity get-config --proto --device fail" 2018-11-09 06:08:23 +00:00
Wang, ArvinX
a2d94c581d Fix the behavior of keyguard bouncer in a corner case
With Android Automotive, there's a cancel button on the bouncer
that allows return to UserSwitcher. Due to specific implementation of
CarStatusBarKeyguardViewManager, all KeyguardViews will be destroyed.
With below steps, user can input PIN the 6th time. But it won't unlock
the device even if it's the correct PIN.

Test: 1. Set screen lock with pin, password or pattern
Test:    in Settings ->Security & location
Test: 2. Lock the device with Power key
Test: 3. Input wrong pin/password for 5 times, 30s timeout is prompted
Test: 4. Quickly click cancel button and select the same user
Test: 5. User can input PIN/password again

bug: 119068682

Change-Id: Ia182902d38de93ad13cb39c333a1294764905e1f
Signed-off-by: Wang, ArvinX <arvinx.wang@intel.com>
Signed-off-by: Guobin Zhang <guobin.zhang@intel.com>
2018-11-09 05:11:48 +00:00
junyulai
345155e8b4 Use spy in PermissionMonitorTest.
Bug: 118811303
Test: runtest frameworks-net
Change-Id: Id61a9efecf1d1ed5a9045b78ecfec9239e13967b
2018-11-09 12:37:16 +08:00
Hall Liu
0a390095df Merge "Fix flaky AnalytisTest by locking in EventRecord" 2018-11-09 02:21:56 +00:00
weijuncheng
1203000809 Fix adb shell cmd activity get-config --proto --device fail
Root cause:
If the system features got from pm.getSystemAvailableFeatures() have some features with no name,
it may cause adb shell cmd activity get-config --proto --device fails, the second parameter
in the compator should also be judged with o2.name == null

Bug: 118662777

Test: run cts  -m CtsActivityManagerDeviceTestCases
               -t android.server.am.ActivityManagerGetConfigTests#testDeviceConfig


Change-Id: Iee22cdf2e69104d3d9480971655b0be66ff84e46
Signed-off-by: weijuncheng <weijuncheng@xiaomi.com>
2018-11-09 01:22:13 +00:00
Treehugger Robot
60b722a005 Merge "[view_compiler] Add end-to-end DexBuilder tests" 2018-11-09 01:10:33 +00:00
Youming Ye
777235c467 Merge "Add possibility to configure SPN during Wi-Fi Calling and Flight mode" 2018-11-09 01:01:28 +00:00
calvinpan
3689c96951 Add CarrierId column in TelephonyProvider
Add a column in provider to migrate mno and mvno to carrierid.

Bug: 115709816
Test: runtest --path tests/src/com/android/providers/telephony/TelephonyProviderTest.java
Change-Id: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
Merged-In: I9c0c0fd069acc7f182d94f422ff15f45ebf187a9
2018-11-08 23:45:23 +00:00
Treehugger Robot
e8c144fe17 Merge changes from topic "async_keystore"
* changes:
  Add return code KEY_ALREADY exists
  Remove legacy functions form IKeystoreService.aidl
2018-11-08 23:01:46 +00:00
Nathan Harold
aaa6722976 Merge "Add toString() method for NetworkScanResult" 2018-11-08 21:54:26 +00:00
Risan
05c41e6a0a Introducing StubVolume in StorageManager
Bug: 110380403
Test: Tested in ARC++ (with Settings and vold changes in separate CLS)
- able to see the external storage under StorageSettings. Also tested
the sm command to print stubvolumes.

Change-Id: I7517260a40399bd9800424bb394512601f6af617
2018-11-08 21:48:35 +00:00
Pengquan Meng
f922b8e6ee Add 5G NR cellInfo
- Add CellInfoNr
- Add CellIdentityNr
- Add CellSignalStrengthNr

Bug:111453000
Test: atest FrameworksTelephonyTests:
Merged-In: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
Change-Id: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
2018-11-08 13:39:57 -08:00
Eric Holk
d683f9fa31 [view_compiler] Add end-to-end DexBuilder tests
These tests verify that code produced by DexBuilder can be loaded and run on
device. It works by introducing a new tool, dex_testcase_generator, which writes
out a couple of DEX files with test cases. This tool runs as a build step. The
generated DEX are then copied over to the device where they are loaded and run
the on-device DexBuilderTest.

Bug: 111895153

Change-Id: I06f5edd0e3e2f4e9ec2d14a0db7d22b75b424119
2018-11-08 21:14:32 +00:00
Janis Danisevskis
d257538507 Add return code KEY_ALREADY exists
In preparation to the async keystore interface we change the semantics
form unconditionally overwriting existing keys to reporting that the key
exists. For compatibility we reimplement the same semantic in the
calling code.

Bug: 111443219
Test: KeyStore CTS test
Change-Id: I1fa5428fa7ada97d5068778cd4590593c992554d
2018-11-08 12:53:57 -08:00
Janis Danisevskis
1864c95616 Remove legacy functions form IKeystoreService.aidl
In preparation for making the keystore service asynchronous we remove
redundant legacy functionality from the protocol.

This patch removes the functions get_pubkey, sign, verify, generate,
and import_key. Which have long been superseded by exportKey
(get_pubkey), begin/update/finish (sign, verify), generateKey
(generate), and importKey (import_key).

This patch also removes isOperationAuthorized.

Test: KeyStore CTS tests
Bug: 111443219
Change-Id: Ib3bd6f40b4e948e5ad6b2ef5278b18ff46201d71
2018-11-08 12:53:57 -08:00
vichang
93bf21dad4 Merge "Add some ICU 63 classes into boot image profile" 2018-11-08 19:23:30 +00:00
sqian
5b76bfc0d0 Introduce getRssi() in CellSignalStrengthLte
Previous people designed that the lte signal strength from HAL is rssi
in ASU, but the new need of getRssi() API requires dBm unit.

Bug: 113074174
Test: Treehugger
Change-Id: I2982365a2e7fe1a56a393d123b9b0a30807d4d15
2018-11-08 10:54:41 -08:00
Brad Ebinger
efed9824e4 Expose SRVCC state changes as @SystemAPI
ImsService needs to be able to register for SRVCC state
changes.

Test: Telephony Unit tests
Bug: 117555643
Change-Id: I87631b51a19cdd46d6b4d15f3631345de03bb771
2018-11-08 10:14:04 -08:00
Tony Zhu
b5e8d45245 Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app." 2018-11-08 17:22:43 +00:00
Victor Chang
6ea0cb0d65 Add some ICU 63 classes into boot image profile
Bug: 118748230
Test: systrace shows 70% improvement of initialize the class DateTimePatternGenerator$FormatParser
Change-Id: I0c29b7892ac57a49c1f93c8b759e547a5bb881cb
2018-11-08 16:33:23 +00:00
Adam Vartanian
6333c84514 Add Conscrypt Public API
Bug: 110403421
Test: cts -m CtsLibcoreTestCases -t android.net.ssl
Change-Id: I51e497032e58c73cc6be77d95c3b18b139804859
2018-11-08 15:22:40 +00:00
Paul Duffin
2e930e7a76 Remove android.icu.... classes from light grey list
Removes all the android.icu.... classes from the light grey lists as
they are now using UnsupportedAppUsage annotation.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt was the
same (after sorting) before and after this change.

Test: see above
Bug: 117818301

Change-Id: Ib11d5462580b3698a8b810dc0138642252ec5f18
2018-11-08 15:22:02 +00:00
junyulai
5aa232e4ae Change types of fields of network stats reported to framework.
Currently, NetworkStats use int to handle uid, set and tag,
while native side using unsigned int mixing with signed int
with that. This commit make necessary changes in JNI part while
libnetdbpf unifying the types of fields.

Bug: 112226716
Test: 1. manually reconnect vpn
      2. update apps from playstore
      3. atest libnetdbpf_test
      4. runtest frameworks-net
      5. cts-tradefed run cts -m CtsUsageStatsTestCases -t \
              android.app.usage.cts.NetworkUsageStatsTest

Change-Id: I6c27124db8292e2825fba51b8994f013897cb566
2018-11-08 23:07:00 +08:00
dimitry
499745f900 Apply version-script to libandroid library.
Hides unintentionally exported symbols from the library.

Test: make checkbuild
Bug: http://b/69603741
Change-Id: Id679077267cc5ea6168c0b4701f827458087cb70
2018-11-08 15:07:32 +01:00
Adam Vartanian
07160ff7e5 Merge "Update API file for libcore additions" 2018-11-08 13:39:31 +00:00
Treehugger Robot
aef8fe0d47 Merge "Add skip464xlat test in Nat464XlatTest" 2018-11-08 12:38:22 +00:00
tonyzhu
9e1d4f86ba [Call Screening]Logging of calls blocked by call blocking feature, call screening app.
Add three call log entries, ALL_SCREENING_COMPONENT_NAME, CALL_SCREENING_APP_NAME,
BLOCK_REASON, and call block reasons. Add new parameter to get the
package name and component name of the implementation of CallScreenService.java.

Bug: 113243596
Test: Build pass
Change-Id: I63debd80d7f4a92278fdbb84b64ff1199591349c
2018-11-08 17:28:34 +08:00
Chen Xu
9d4ebdf379 Merge "separate URL for WFC settings" 2018-11-08 03:23:20 +00:00
Holly Jiuyu Sun
35063d68fa Catch SecurityException in EuiccCardController and trigger callback.
Currently, if checkCallingPackage() throws a SecurityException, it won't
trigger the callback. Since, EuiccCardManager is async which will return
after invoke EuiccCardController, the throwed SecurityException will get
lost. In this CL, the exception is caught in EuiccCardController and
triggers the callback in this case.
Also, fix a typo in EuiccCardManager.

Bug: 78599148
Bug: 110845244
Test: test on phone
Merged-In: I6487d7b29bc9ec0d2ead482ac7d7804b5325a379
Change-Id: I6487d7b29bc9ec0d2ead482ac7d7804b5325a379
2018-11-07 18:39:06 -08:00
Hall Liu
48e2615128 Fix flaky AnalytisTest by locking in EventRecord
AnalyticsTests were flaking with concurrent modification exceptions. Fix
this by locking mEvents properly in EventRecord.

Bug: 119226554
Test: leave it to presubmit
Change-Id: I4df0afe399fab148bbebcef51272c56f628ee18f
2018-11-07 18:32:02 -08:00
Chenbo Feng
441febd86a Rename android bpf library
The bpf support library in android is renamed to libbpf_android to make
it compatible with external bcc project. Fix the Android.bp file here to
prevent build break.

Bug: 112334572
Test: No build breakage.
Change-Id: I183eb99d30afdf5c77b8c491c0c79013e2ed89ee
2018-11-07 18:21:23 -08:00
Christian Wailes
d10870625f Merge "Refactor native Zygote code." 2018-11-08 01:08:32 +00:00
Pengquan Meng
a9ca5c9999 Merge "Move configs to CarrierConfig for MobileNetworkSettings" 2018-11-08 00:47:22 +00:00
Shuo Qian
24cddced04 Merge "Introduce Emergency number functions APIs" 2018-11-08 00:40:10 +00:00
Chris Wailes
efc65b2885 Refactor native Zygote code.
This patch refactors the native Zygote code in anticipation of future
changes.  Notibly, this allows forking without application specific
information, replaces a lambda that was defined twice with a function,
and cleans up some of the jstring extraction logic.

Bug: 68253328
Test: Built image, flashed phone, and booted
Change-Id: I694994b2062b2839bf0cdf7d4bef366d98fc6eed
Merged-In: I694994b2062b2839bf0cdf7d4bef366d98fc6eed
2018-11-07 16:10:34 -08:00
sqian
5ac293f040 Introduce Emergency number functions APIs
- getCurrentEmergencyNumberList
- getCurrentEmergencyNumberList (per categories)
- isCurrentEmergencyNumber

Note: the implementaion from PhoneInterfaceManager is empty, but the names
of the APIs need to be finalized so that the usages and test plan are not
blocked.

Bug: 112657134
Test: Treehugger
Change-Id: I1e310941aea6d5288fd6c99071be6b46a8d98197
Merged-In: I854db34f4378f35f99c3d8133bf35f3d0b3aad2b
Merged-In: Ic0a22dd9c2023362bbb65b80cb78990ace7caac4
2018-11-07 14:57:44 -08:00
Treehugger Robot
d605b5ab3d Merge "Add telephony commands about SMS apps" 2018-11-07 21:46:13 +00:00
chen xu
e6e2a64783 new SystemAPI for roamingType in NetworkRegistrationState
Bug: 79262189
Test: telephony unit test
Change-Id: I443f3c109872ad595fc55fa77fe5e10e1c19b32f
2018-11-07 13:42:51 -08:00
Xiangyu/Malcolm Chen
fbc4e55540 Merge "Changing setPreferredData so that it takes subId." 2018-11-07 20:19:21 +00:00
Treehugger Robot
0b16b3c07f Merge "[view-compiler] Support method declaration and invocation in Dex builder" 2018-11-07 20:13:57 +00:00
chen xu
bf38b068d4 separate URL for WFC settings
we have @SystemAPI exposed in ImsMMTelManager#getVoWiFiModeSetting
and ImsMMTelManager#getVoWiFiRoamingModeSetting and vtEnabled.
We should expose @System URI allowing listeners to be notified
on settings changes.

Bug: 118631333
Test: telephony unit test
Change-Id: Idc8a6a71ed69135644371c122c93916ef4db0b51
Merged-in: Idc8a6a71ed69135644371c122c93916ef4db0b51
2018-11-07 11:58:52 -08:00
Treehugger Robot
a313cab4dc Merge "Add zhfan as owner of settings_enums.proto." 2018-11-07 19:46:22 +00:00
Treehugger Robot
6b0c47b2b8 Merge "Add more OWNERS to DefaultPermissionGrantPolicy" 2018-11-07 18:37:12 +00:00