OSDN Git Service

android-x86/frameworks-base.git
5 years agoRevert "Revert "Schematize vold system properties""
Inseob Kim [Mon, 10 Dec 2018 07:06:25 +0000 (07:06 +0000)]
Revert "Revert "Schematize vold system properties""

This reverts commit 2473b08b07ccd58978d4b0271dc22a770b9b8605.

Reason for revert: Fixed build breakage
sysprop_cpp and sysprop_java directly have been linking against
libprotobuf-cpp-full and do not set proto.type field, which could
cause ASAN error due to linking against both libproto version of full
and lite.

Change-Id: I96eb47444d7b6f6b5fef092efc1514fcdd6f33b6
Merged-In: I8e04f643197b6c8a60cc38c6979e41c5de3469f5

5 years agoRevert "Schematize vold system properties"
Anthony Stange [Fri, 7 Dec 2018 11:43:03 +0000 (11:43 +0000)]
Revert "Schematize vold system properties"

This reverts commit 7bc31dc162dd6c97eeb4d85058a079a74bd8777b.

Reason for revert: Breaking aosp_master build.

Change-Id: I34a5e9889c17e3454a0a86deabcec3c192a3da52

5 years agoSchematize vold system properties
Inseob Kim [Thu, 8 Nov 2018 04:13:54 +0000 (13:13 +0900)]
Schematize vold system properties

Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: m -j
Change-Id: I8e04f643197b6c8a60cc38c6979e41c5de3469f5
Merged-In: I8e04f643197b6c8a60cc38c6979e41c5de3469f5

5 years agoMerge "Adding new intent ACTION_SMS_MMS_DB_CREATED."
Amit Mahajan [Tue, 13 Nov 2018 22:22:30 +0000 (22:22 +0000)]
Merge "Adding new intent ACTION_SMS_MMS_DB_CREATED."

5 years agoMerge changes Idbacb6ad,I4e06b3f9,Iffcbbb82
Treehugger Robot [Tue, 13 Nov 2018 22:01:56 +0000 (22:01 +0000)]
Merge changes Idbacb6ad,I4e06b3f9,Iffcbbb82

* changes:
  BinderProxy: Fix up differences
  Move proxy debug info dumping back to Java.
  Dump top binder proxy interface names in dumpsys.

5 years agoAdding new intent ACTION_SMS_MMS_DB_CREATED.
Amit Mahajan [Mon, 22 Oct 2018 17:43:34 +0000 (10:43 -0700)]
Adding new intent ACTION_SMS_MMS_DB_CREATED.

Test: manual (verified from logcat that intent is broadcast)
Bug: 115990430
Merged-in: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
Change-Id: I660cf2d04a1b57a58c8cefd212e5f8d73b329890
(cherry picked from commit 1b26e44ce0792eda6b9bb2fa6b273842a8bf8ae3)

5 years agoMerge "Introducing StubVolume in StorageManager"
Treehugger Robot [Tue, 13 Nov 2018 19:20:38 +0000 (19:20 +0000)]
Merge "Introducing StubVolume in StorageManager"

5 years agoMerge "Unsupported app usage API cleanup"
Tyler Gunn [Tue, 13 Nov 2018 17:49:01 +0000 (17:49 +0000)]
Merge "Unsupported app usage API cleanup"

5 years agoMerge "Expose capabilitiesToString for use in Telecom."
Tyler Gunn [Tue, 13 Nov 2018 17:47:49 +0000 (17:47 +0000)]
Merge "Expose capabilitiesToString for use in Telecom."

5 years agoMerge "Reduce screen layout in task override configuration from its parent config"
Treehugger Robot [Tue, 13 Nov 2018 17:20:34 +0000 (17:20 +0000)]
Merge "Reduce screen layout in task override configuration from its parent config"

5 years agoMerge "Expose Transliterator API"
vichang [Tue, 13 Nov 2018 15:43:35 +0000 (15:43 +0000)]
Merge "Expose Transliterator API"

5 years agoMerge "Remove com.android.bouncycastle.... classes from light grey list"
Treehugger Robot [Tue, 13 Nov 2018 15:26:21 +0000 (15:26 +0000)]
Merge "Remove com.android.bouncycastle.... classes from light grey list"

5 years agoMerge "Remove com.android.conscrypt.... classes from light grey list"
Treehugger Robot [Tue, 13 Nov 2018 15:26:15 +0000 (15:26 +0000)]
Merge "Remove com.android.conscrypt.... classes from light grey list"

5 years agoMerge "Re-add light-greylist entries incorrectly removed with icu entries"
Treehugger Robot [Tue, 13 Nov 2018 14:22:17 +0000 (14:22 +0000)]
Merge "Re-add light-greylist entries incorrectly removed with icu entries"

5 years agoMerge "Apply version-script to libandroid library."
Dimitry Ivanov [Tue, 13 Nov 2018 10:53:18 +0000 (10:53 +0000)]
Merge "Apply version-script to libandroid library."

5 years agoMerge "Fix LingerMonitor notification rate limiting"
Treehugger Robot [Tue, 13 Nov 2018 09:36:39 +0000 (09:36 +0000)]
Merge "Fix LingerMonitor notification rate limiting"

5 years agoMerge "Change types of fields of network stats reported to framework."
Junyu Lai [Tue, 13 Nov 2018 09:15:37 +0000 (09:15 +0000)]
Merge "Change types of fields of network stats reported to framework."

5 years agoRemove com.android.bouncycastle.... classes from light grey list
Paul Duffin [Thu, 8 Nov 2018 12:22:56 +0000 (12:22 +0000)]
Remove com.android.bouncycastle.... classes from light grey list

Removes all the com.android.bouncycastle.... 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: Id2de74e4c3b84646ebaa3bb0d18113fc593d3200

5 years agoRemove com.android.conscrypt.... classes from light grey list
Paul Duffin [Thu, 8 Nov 2018 12:22:56 +0000 (12:22 +0000)]
Remove com.android.conscrypt.... classes from light grey list

Removes all the com.android.conscrypt.... 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: Ib2298ef17eeab4874265b72b19dddc912079500f

5 years agoMerge "Fix mis-ordered merge in PhoneStateListener.java"
Xiangyu/Malcolm Chen [Tue, 13 Nov 2018 06:38:50 +0000 (06:38 +0000)]
Merge "Fix mis-ordered merge in PhoneStateListener.java"

5 years agoMerge "support parent carrier id"
Chen Xu [Tue, 13 Nov 2018 06:08:46 +0000 (06:08 +0000)]
Merge "support parent carrier id"

5 years agoMerge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist"
Treehugger Robot [Tue, 13 Nov 2018 03:48:59 +0000 (03:48 +0000)]
Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist"

5 years agoFix mis-ordered merge in PhoneStateListener.java
Malcolm Chen [Tue, 13 Nov 2018 03:34:38 +0000 (19:34 -0800)]
Fix mis-ordered merge in PhoneStateListener.java

Bug: 119131284
Test: build
Change-Id: I9ab7a0a992e4000efb1a1b89ec198f9da74876d9

5 years agoMerge "The JE about "android.process.media" will pop up when you eject the SD card...
Treehugger Robot [Tue, 13 Nov 2018 03:19:56 +0000 (03:19 +0000)]
Merge "The JE about "android.process.media" will pop up when you eject the SD card after you set SD as internel phone storage"

5 years agoMerge "Update API doc of View.DragShadowBuilder"
Treehugger Robot [Tue, 13 Nov 2018 03:15:51 +0000 (03:15 +0000)]
Merge "Update API doc of View.DragShadowBuilder"

5 years agoMerge "new SystemAPI for roamingType in NetworkRegistrationState"
Chen Xu [Tue, 13 Nov 2018 01:16:25 +0000 (01:16 +0000)]
Merge "new SystemAPI for roamingType in NetworkRegistrationState"

5 years agoMerge "do not link hidden intdef in the comments"
Chen Xu [Tue, 13 Nov 2018 01:14:42 +0000 (01:14 +0000)]
Merge "do not link hidden intdef in the comments"

5 years agoBinderProxy: Fix up differences
Andreas Gampe [Tue, 13 Nov 2018 00:15:31 +0000 (16:15 -0800)]
BinderProxy: Fix up differences

Fix up resolves to minimize differences to internal code.

Test: m
Change-Id: Idbacb6ad14c43aff8030d70b5e17427b86e92d6e
Merged-In: I4e06b3f93e30ed1c7868ec9e018709a7e796e441

5 years agoMerge "[StatusBar] fix: Make DisableRecord.pkg working"
Evan Laird [Tue, 13 Nov 2018 00:11:17 +0000 (00:11 +0000)]
Merge "[StatusBar] fix: Make DisableRecord.pkg working"

5 years agoMove proxy debug info dumping back to Java.
Martijn Coenen [Fri, 6 Jul 2018 10:04:48 +0000 (12:04 +0200)]
Move proxy debug info dumping back to Java.

This had to be called from native because serialization
was done from native, but now that serialization is in Java
we can move this back to a more logical place.

Also, this allows us to dump the per-UID proxy counts in
this situation again.

Bug: 109888955
Test: sailfish builds, proxy debug info shown on hitting limits
Merged-In: I4e06b3f93e30ed1c7868ec9e018709a7e796e441
Change-Id: I4e06b3f93e30ed1c7868ec9e018709a7e796e441

5 years agoDump top binder proxy interface names in dumpsys.
Martijn Coenen [Fri, 6 Jul 2018 09:26:26 +0000 (11:26 +0200)]
Dump top binder proxy interface names in dumpsys.

To facilitate real-time debugging.

Bug: 109888955
Test: builds, adb shell dumpsys activity binder-proxies shows output
Merged-In: Iffcbbb824f4050b6fb8f556c8b4d09115e53da18
Change-Id: Iffcbbb824f4050b6fb8f556c8b4d09115e53da18

5 years agodo not link hidden intdef in the comments
chen xu [Mon, 12 Nov 2018 22:35:32 +0000 (14:35 -0800)]
do not link hidden intdef in the comments

Bug: 118351153
Bug: 119119026
Test: build
Change-Id: I26be8e6d83e205589d10e6b7bd71297907aa5119

5 years agoMerge "[view compiler] Add conditional branch instruction"
Treehugger Robot [Mon, 12 Nov 2018 20:51:52 +0000 (20:51 +0000)]
Merge "[view compiler] Add conditional branch instruction"

5 years agoMerge "Close PFD.AutoClose{In,Out}putStream before the PFD itself."
Josh Gao [Mon, 12 Nov 2018 20:34:21 +0000 (20:34 +0000)]
Merge "Close PFD.AutoClose{In,Out}putStream before the PFD itself."

5 years agoMerge "Add owners to the Shell app"
Treehugger Robot [Mon, 12 Nov 2018 20:25:25 +0000 (20:25 +0000)]
Merge "Add owners to the Shell app"

5 years agoUnsupported app usage API cleanup
Tyler Gunn [Mon, 12 Nov 2018 19:30:56 +0000 (11:30 -0800)]
Unsupported app usage API cleanup

This CL includes a number of cleanups related to unsupported app usage
tags.

TelecomManager#EXTRA_IS_HANDOVER - public APIS exist for this usecase;
updated docs and limit to P with maxtarget sdk.
TelecomManager#getSimCallManager(int userId) - marked as max target P;
there is a public API available which can be used to accomplish the same
thing.  Nobody should be calling this.
TelecomManager#getCallCapablePhoneAccounts(boolean) - marked as max
target P; callers should use the version without the boolean parameter.

Deprecate CAPABILITY_CAN_UPGRADE_TO_VIDEO; its redundant.

New public API:
Promote TelecomManager#getSystemDialerPackage() to public API; its a
benign API and doesn't expose anything which can't be inferred other ways.

New system APIs:
TelecomManager#getCurrentTtyMode() - used by settings app.
TelecomManager#setDefaultDialer() - used by useful for settings app.
TelecomManager#TTY_MODE* constants - used by getCurrentTtyMode API.

Test: Compile / run unit tests
Bug: 119305590
Change-Id: I67d6213e6c689fb545fc9ceae4a359831f97c32f

5 years agosupport parent carrier id
chen xu [Sat, 3 Nov 2018 00:49:57 +0000 (17:49 -0700)]
support parent carrier id

The parent-child relationship can be used to further differentiate a
single carrier by different networks, by prepaid v.s. postpaid
or even by 4G v.s. 3G plan. parent carrier id it's an optional field.
A carrier id with a valid parent_carrier_id is considered fine-grained carrier id,
will not be returned as API getSimCarrierId but will be returned as
new API getSimPreciseCarrierId.

Bug: 110559381
Change-Id: Ica273cbad16b4773edc41b79ff4bf7570de40ec1

5 years agoMerge "Create new API for MNO carrier id"
Calvin Pan [Mon, 12 Nov 2018 18:09:25 +0000 (18:09 +0000)]
Merge "Create new API for MNO carrier id"

5 years agoMerge "Add 5G NR cellInfo"
Pengquan Meng [Mon, 12 Nov 2018 16:28:57 +0000 (16:28 +0000)]
Merge "Add 5G NR cellInfo"

5 years agoAdd PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
andychou [Mon, 12 Nov 2018 04:09:10 +0000 (12:09 +0800)]
Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist

Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: I10ec05256f748007657e4a8e60d07b1fd8a4f8b2
Merged-In: Iaa9673e4fa9568078161231df1b06735b862ca09

5 years agoRe-add light-greylist entries incorrectly removed with icu entries
Paul Duffin [Mon, 12 Nov 2018 14:48:50 +0000 (14:48 +0000)]
Re-add light-greylist entries incorrectly removed with icu entries

Commit 2e930e7a765ec6ebb075523a390ad625010f9e8a accidentally removed
some non-icu entries. The entries were added around the same time as
the ICU entries were removed and caused a conflict that appears to
have been incorrectly resolved.

This was tested by making and then manually checking that the generated
out/target/common/obj/PACKAGING/hiddenapi-light-greylist.txt contains
the new entries.

Bug: 117818301
Test: make checkbuild
Change-Id: Id6bacaab34caee9e7c278c6655ab462e0ee2a442

5 years agoThe JE about "android.process.media" will pop up when you eject the
mtk33169 [Mon, 29 Oct 2018 05:45:51 +0000 (11:15 +0530)]
The JE about "android.process.media" will pop up when you eject the
SD card after you set SD as internel phone storage

This JE is happening due to null pointer access in makeEntryFor() in
MediaScanner.Java.
Before accessing the cursor, check if cursor is available and not null.
It is a safe check.

Bug: 119392250
Test: manual, ran test 20 times and it passed every times.
Change-Id: I23039281b63a0a6a411860eb5989cf20a5663c8f

5 years agoMerge "Add Conscrypt Public API"
Adam Vartanian [Mon, 12 Nov 2018 10:31:28 +0000 (10:31 +0000)]
Merge "Add Conscrypt Public API"

5 years agoCreate new API for MNO carrier id
calvinpan [Wed, 31 Oct 2018 11:09:27 +0000 (19:09 +0800)]
Create new API for MNO carrier id

New telephony APIs to getSimMnoCarrierId and GET_CURRENT_APN_LIST

Bug: 115709816
Test: Build pass
Change-Id: I415ee634d8392d5120d5d8f79d927c0349d9a42e
Merged-in: I415ee634d8392d5120d5d8f79d927c0349d9a42e

5 years agoMerge "Not defer network disconnect event in Probing state"
Chiachang Wang [Mon, 12 Nov 2018 05:30:46 +0000 (05:30 +0000)]
Merge "Not defer network disconnect event in Probing state"

5 years ago[StatusBar] fix: Make DisableRecord.pkg working
JiangDongya [Fri, 9 Nov 2018 10:23:54 +0000 (18:23 +0800)]
[StatusBar] fix: Make DisableRecord.pkg working

* replace wrong return statement with break statement

Test: adb shell dumpsys statusbar, and pkg would not be "null"

Change-Id: I462c93f87e17057501dde34d114692423a40444b
Signed-off-by: Dongya Jiang <jiangdongya@xiaomi.com>
5 years agoNot defer network disconnect event in Probing state
Chiachang Wang [Mon, 12 Nov 2018 02:52:25 +0000 (10:52 +0800)]
Not defer network disconnect event in Probing state

If network reevaluation is triggered just before network
disconnect, statemachine will stuck in Probing state and unable
to exit.

Test: 1. runtest frameworks-net
      2. connect and disconnect wifi to see if NetworkMonitor is
         destroyed as expected
Bug: 119158436

Change-Id: Ibbb20caee94d0a5ab5403c6b01636936025562fe

5 years ago[view compiler] Add conditional branch instruction
Eric Holk [Thu, 1 Nov 2018 22:50:24 +0000 (15:50 -0700)]
[view compiler] Add conditional branch instruction

This CL adds support for the if-eqz instruction. It should be easy to add
additional comparisons as needed.

This also introduces a new kind of Value called a Label. Labels may be created
any time and then must be bound to a location in code at some point. References
to labels are tracked, and when a label is bound all references are patched to
refer to the concrete address.

Bug: 111895153
Change-Id: I15424aec75425004f0f1f4bbc6e760bac3a6c7de

5 years agoMerge "Unable to input PIN with hardware keyboard"
Treehugger Robot [Sat, 10 Nov 2018 00:05:38 +0000 (00:05 +0000)]
Merge "Unable to input PIN with hardware keyboard"

5 years agoMerge "Expose SRVCC state changes as @SystemAPI"
Brad Ebinger [Fri, 9 Nov 2018 23:02:38 +0000 (23:02 +0000)]
Merge "Expose SRVCC state changes as @SystemAPI"

5 years agoClose PFD.AutoClose{In,Out}putStream before the PFD itself.
Josh Gao [Fri, 9 Nov 2018 21:40:53 +0000 (13:40 -0800)]
Close PFD.AutoClose{In,Out}putStream before the PFD itself.

Bug: http://b/118316956
Test: atest ParcelFileDescriptorTest
Test: atest ParcelFileDescriptor_AutoCloseOutputStreamTest
Change-Id: I39c5b15ea8ac5915e4f5e4e42328cd08f65ec9a0

5 years agoMerge "Introduce getRssi() in CellSignalStrengthLte"
Shuo Qian [Fri, 9 Nov 2018 22:07:50 +0000 (22:07 +0000)]
Merge "Introduce getRssi() in CellSignalStrengthLte"

5 years agoExpose Transliterator API
Victor Chang [Fri, 9 Nov 2018 14:37:56 +0000 (14:37 +0000)]
Expose Transliterator API

All the public APIs have been covered by CtsIcuTestCases.

Test: CtsIcuTestCases
Bug: 109663008
Bug: 109837373
Change-Id: Ib03c80629be727c7b17642177fa520ed808409c1

5 years agoMerge "Rename android bpf library"
Treehugger Robot [Fri, 9 Nov 2018 20:06:41 +0000 (20:06 +0000)]
Merge "Rename android bpf library"

5 years agoExpose capabilitiesToString for use in Telecom.
Tyler Gunn [Fri, 9 Nov 2018 16:43:02 +0000 (08:43 -0800)]
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

5 years agoMerge "Add CarrierId column in TelephonyProvider"
Calvin Pan [Fri, 9 Nov 2018 13:30:51 +0000 (13:30 +0000)]
Merge "Add CarrierId column in TelephonyProvider"

5 years agoMerge "Remove android.icu.... classes from light grey list"
Paul Duffin [Fri, 9 Nov 2018 13:24:17 +0000 (13:24 +0000)]
Merge "Remove android.icu.... classes from light grey list"

5 years agoReduce screen layout in task override configuration from its parent config
Louis Chang [Tue, 26 Jun 2018 09:58:29 +0000 (17:58 +0800)]
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

5 years agoMerge "DexLoadReporter needs to handle arbitrary class loaders."
Treehugger Robot [Fri, 9 Nov 2018 11:02:20 +0000 (11:02 +0000)]
Merge "DexLoadReporter needs to handle arbitrary class loaders."

5 years agoMerge "Use spy in PermissionMonitorTest."
Junyu Lai [Fri, 9 Nov 2018 08:47:03 +0000 (08:47 +0000)]
Merge "Use spy in PermissionMonitorTest."

5 years agoUnable to input PIN with hardware keyboard
Wang, ArvinX [Thu, 13 Sep 2018 03:17:55 +0000 (11:17 +0800)]
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>
5 years agoMerge "Fix adb shell cmd activity get-config --proto --device fail"
Sudheer Shanka [Fri, 9 Nov 2018 06:08:23 +0000 (06:08 +0000)]
Merge "Fix adb shell cmd activity get-config --proto --device fail"

5 years agoUse spy in PermissionMonitorTest.
junyulai [Fri, 9 Nov 2018 04:37:16 +0000 (12:37 +0800)]
Use spy in PermissionMonitorTest.

Bug: 118811303
Test: runtest frameworks-net
Change-Id: Id61a9efecf1d1ed5a9045b78ecfec9239e13967b

5 years agoMerge "Fix flaky AnalytisTest by locking in EventRecord"
Hall Liu [Fri, 9 Nov 2018 02:21:56 +0000 (02:21 +0000)]
Merge "Fix flaky AnalytisTest by locking in EventRecord"

5 years agoFix adb shell cmd activity get-config --proto --device fail
weijuncheng [Tue, 30 Oct 2018 06:07:53 +0000 (14:07 +0800)]
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>
5 years agoMerge "[view_compiler] Add end-to-end DexBuilder tests"
Treehugger Robot [Fri, 9 Nov 2018 01:10:33 +0000 (01:10 +0000)]
Merge "[view_compiler] Add end-to-end DexBuilder tests"

5 years agoMerge "Add possibility to configure SPN during Wi-Fi Calling and Flight mode"
Youming Ye [Fri, 9 Nov 2018 01:01:28 +0000 (01:01 +0000)]
Merge "Add possibility to configure SPN during Wi-Fi Calling and Flight mode"

5 years agoAdd CarrierId column in TelephonyProvider
calvinpan [Fri, 19 Oct 2018 07:11:22 +0000 (15:11 +0800)]
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

5 years agoMerge changes from topic "async_keystore"
Treehugger Robot [Thu, 8 Nov 2018 23:01:46 +0000 (23:01 +0000)]
Merge changes from topic "async_keystore"

* changes:
  Add return code KEY_ALREADY exists
  Remove legacy functions form IKeystoreService.aidl

5 years agoMerge "Add toString() method for NetworkScanResult"
Nathan Harold [Thu, 8 Nov 2018 21:54:26 +0000 (21:54 +0000)]
Merge "Add toString() method for NetworkScanResult"

5 years agoIntroducing StubVolume in StorageManager
Risan [Sun, 28 Oct 2018 23:57:43 +0000 (08:57 +0900)]
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

5 years agoAdd 5G NR cellInfo
Pengquan Meng [Tue, 30 Oct 2018 00:59:26 +0000 (17:59 -0700)]
Add 5G NR cellInfo

- Add CellInfoNr
- Add CellIdentityNr
- Add CellSignalStrengthNr

Bug:111453000
Test: atest FrameworksTelephonyTests:
Merged-In: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e
Change-Id: I45a8042fcbeb9faa7f8cc8db45eeb2c85125397e

5 years ago[view_compiler] Add end-to-end DexBuilder tests
Eric Holk [Fri, 26 Oct 2018 23:08:09 +0000 (16:08 -0700)]
[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

5 years agoAdd return code KEY_ALREADY exists
Janis Danisevskis [Mon, 8 Oct 2018 14:56:58 +0000 (07:56 -0700)]
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

5 years agoRemove legacy functions form IKeystoreService.aidl
Janis Danisevskis [Thu, 9 Aug 2018 18:14:49 +0000 (11:14 -0700)]
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

5 years agoMerge "Add some ICU 63 classes into boot image profile"
vichang [Thu, 8 Nov 2018 19:23:30 +0000 (19:23 +0000)]
Merge "Add some ICU 63 classes into boot image profile"

5 years agoIntroduce getRssi() in CellSignalStrengthLte
sqian [Thu, 8 Nov 2018 00:46:07 +0000 (16:46 -0800)]
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

5 years agoExpose SRVCC state changes as @SystemAPI
Brad Ebinger [Fri, 26 Oct 2018 17:25:57 +0000 (10:25 -0700)]
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

5 years agoMerge "[Call Screening]Logging of calls blocked by call blocking feature, call screen...
Tony Zhu [Thu, 8 Nov 2018 17:22:43 +0000 (17:22 +0000)]
Merge "[Call Screening]Logging of calls blocked by call blocking feature, call screening app."

5 years agoAdd some ICU 63 classes into boot image profile
Victor Chang [Thu, 8 Nov 2018 15:03:16 +0000 (15:03 +0000)]
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

5 years agoAdd Conscrypt Public API
Adam Vartanian [Thu, 18 Oct 2018 09:10:35 +0000 (10:10 +0100)]
Add Conscrypt Public API

Bug: 110403421
Test: cts -m CtsLibcoreTestCases -t android.net.ssl
Change-Id: I51e497032e58c73cc6be77d95c3b18b139804859

5 years agoRemove android.icu.... classes from light grey list
Paul Duffin [Wed, 7 Nov 2018 15:54:13 +0000 (15:54 +0000)]
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

5 years agoChange types of fields of network stats reported to framework.
junyulai [Thu, 8 Nov 2018 14:33:09 +0000 (22:33 +0800)]
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

5 years agoApply version-script to libandroid library.
dimitry [Thu, 8 Nov 2018 14:07:32 +0000 (15:07 +0100)]
Apply version-script to libandroid library.

Hides unintentionally exported symbols from the library.

Test: make checkbuild
Bug: http://b/69603741
Change-Id: Id679077267cc5ea6168c0b4701f827458087cb70

5 years agoMerge "Update API file for libcore additions"
Adam Vartanian [Thu, 8 Nov 2018 13:39:31 +0000 (13:39 +0000)]
Merge "Update API file for libcore additions"

5 years agoMerge "Add skip464xlat test in Nat464XlatTest"
Treehugger Robot [Thu, 8 Nov 2018 12:38:22 +0000 (12:38 +0000)]
Merge "Add skip464xlat test in Nat464XlatTest"

5 years ago[Call Screening]Logging of calls blocked by call blocking feature, call screening...
tonyzhu [Mon, 22 Oct 2018 07:11:31 +0000 (15:11 +0800)]
[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

5 years agoMerge "separate URL for WFC settings"
Chen Xu [Thu, 8 Nov 2018 03:23:20 +0000 (03:23 +0000)]
Merge "separate URL for WFC settings"

5 years agoFix flaky AnalytisTest by locking in EventRecord
Hall Liu [Thu, 8 Nov 2018 02:32:02 +0000 (18:32 -0800)]
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

5 years agoRename android bpf library
Chenbo Feng [Thu, 8 Nov 2018 01:46:24 +0000 (17:46 -0800)]
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

5 years agoMerge "Refactor native Zygote code."
Christian Wailes [Thu, 8 Nov 2018 01:08:32 +0000 (01:08 +0000)]
Merge "Refactor native Zygote code."

5 years agoMerge "Move configs to CarrierConfig for MobileNetworkSettings"
Pengquan Meng [Thu, 8 Nov 2018 00:47:22 +0000 (00:47 +0000)]
Merge "Move configs to CarrierConfig for MobileNetworkSettings"

5 years agoMerge "Introduce Emergency number functions APIs"
Shuo Qian [Thu, 8 Nov 2018 00:40:10 +0000 (00:40 +0000)]
Merge "Introduce Emergency number functions APIs"

5 years agoRefactor native Zygote code.
Chris Wailes [Fri, 26 Oct 2018 19:41:54 +0000 (12:41 -0700)]
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

5 years agoIntroduce Emergency number functions APIs
sqian [Wed, 17 Oct 2018 23:31:31 +0000 (16:31 -0700)]
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

5 years agoMerge "Add telephony commands about SMS apps"
Treehugger Robot [Wed, 7 Nov 2018 21:46:13 +0000 (21:46 +0000)]
Merge "Add telephony commands about SMS apps"

5 years agonew SystemAPI for roamingType in NetworkRegistrationState
chen xu [Mon, 5 Nov 2018 23:59:57 +0000 (15:59 -0800)]
new SystemAPI for roamingType in NetworkRegistrationState

Bug: 79262189
Test: telephony unit test
Change-Id: I443f3c109872ad595fc55fa77fe5e10e1c19b32f

5 years agoMerge "Changing setPreferredData so that it takes subId."
Xiangyu/Malcolm Chen [Wed, 7 Nov 2018 20:19:21 +0000 (20:19 +0000)]
Merge "Changing setPreferredData so that it takes subId."

5 years agoMerge "[view-compiler] Support method declaration and invocation in Dex builder"
Treehugger Robot [Wed, 7 Nov 2018 20:13:57 +0000 (20:13 +0000)]
Merge "[view-compiler] Support method declaration and invocation in Dex builder"

5 years agoseparate URL for WFC settings
chen xu [Thu, 1 Nov 2018 07:08:37 +0000 (00:08 -0700)]
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