OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "add missing annotation for CarrierIdentifier"
Treehugger Robot [Tue, 5 Mar 2019 19:07:19 +0000 (19:07 +0000)]
Merge "add missing annotation for CarrierIdentifier"

5 years agoMerge "add missing annotation for TelephonyManager APIs"
Treehugger Robot [Tue, 5 Mar 2019 19:06:30 +0000 (19:06 +0000)]
Merge "add missing annotation for TelephonyManager APIs"

5 years agoMerge "WIFI cannot be automatically connected"
Treehugger Robot [Tue, 5 Mar 2019 18:23:36 +0000 (18:23 +0000)]
Merge "WIFI cannot be automatically connected"

5 years agoMerge "Apilint: No longer flag interface callbacks"
Adrian Roos [Tue, 5 Mar 2019 18:15:44 +0000 (18:15 +0000)]
Merge "Apilint: No longer flag interface callbacks"

5 years agoMerge "apilint: decorator-based verifier registration"
Adrian Roos [Tue, 5 Mar 2019 18:15:11 +0000 (18:15 +0000)]
Merge "apilint: decorator-based verifier registration"

5 years agoMerge "Apilint: lint for URL/URI"
Adrian Roos [Tue, 5 Mar 2019 18:14:42 +0000 (18:14 +0000)]
Merge "Apilint: lint for URL/URI"

5 years agoApilint: No longer flag interface callbacks
Adrian Roos [Thu, 28 Feb 2019 11:49:19 +0000 (12:49 +0100)]
Apilint: No longer flag interface callbacks

With default interfaces, this is no longer necessary.

Test: python apilint_test.py
Change-Id: Ifa9ba24511a82797089934009d9096c3a589e7f6

5 years agoMerge "Add min_score_adj into LmkKillOccurred event"
Suren Baghdasaryan [Tue, 5 Mar 2019 18:06:46 +0000 (18:06 +0000)]
Merge "Add min_score_adj into LmkKillOccurred event"

5 years agoMerge "Add Carriers.SKIP_464XLAT and includes ApnSetting"
Jack Yu [Tue, 5 Mar 2019 17:36:51 +0000 (17:36 +0000)]
Merge "Add Carriers.SKIP_464XLAT and includes ApnSetting"

5 years agoapilint: decorator-based verifier registration
Adrian Roos [Tue, 5 Mar 2019 17:31:37 +0000 (18:31 +0100)]
apilint: decorator-based verifier registration

Registers verifiers via a decorator to avoid error-prone registration
elsewhere.

Test: Run apilint before and after the change, verify identical output
Change-Id: I77ae47a2f3f1a486bb78d3167f8439ade6fc28ab

5 years agoApilint: lint for URL/URI
Adrian Roos [Thu, 28 Feb 2019 11:45:00 +0000 (12:45 +0100)]
Apilint: lint for URL/URI

Test: python apilint_test.py
Change-Id: Iebe3b48df7ed69e0b5f5ff372b72f68ca9f8efec

5 years agoMerge changes Icc2810f5,Ib0ad635e
Adrian Roos [Tue, 5 Mar 2019 16:43:24 +0000 (16:43 +0000)]
Merge changes Icc2810f5,Ib0ad635e

* changes:
  Apilint: report all implemented interfaces and fix false positives Test: python apilint_test.py
  Apilint: properly parse packages with numbers

5 years agoMerge "Remove calls to VMRuntime methods that are no-ops."
Nicolas Geoffray [Tue, 5 Mar 2019 15:37:27 +0000 (15:37 +0000)]
Merge "Remove calls to VMRuntime methods that are no-ops."

5 years agoAdd min_score_adj into LmkKillOccurred event
Suren Baghdasaryan [Mon, 4 Mar 2019 19:09:31 +0000 (11:09 -0800)]
Add min_score_adj into LmkKillOccurred event

Log min_score_adj when lmkd kills a process to determine the oom_score
levels that lmkd considers during the kill.
Accompanies Piper cl/236692672

Bug: 123024834
Change-Id: Ibfec13ef80ef1d74f5f224dde2e24970f7a88bfa
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
5 years agoMerge "Correct nullability and final constraints on new APIs."
Tyler Gunn [Tue, 5 Mar 2019 15:21:48 +0000 (15:21 +0000)]
Merge "Correct nullability and final constraints on new APIs."

5 years agoMerge "Set module min_sdk_version to 28"
Treehugger Robot [Tue, 5 Mar 2019 14:59:33 +0000 (14:59 +0000)]
Merge "Set module min_sdk_version to 28"

5 years agoRemove calls to VMRuntime methods that are no-ops.
Nicolas Geoffray [Mon, 4 Mar 2019 13:23:34 +0000 (13:23 +0000)]
Remove calls to VMRuntime methods that are no-ops.

Test: m

(Cherry-picked from: 5735cc7a116598eb9eb635857605394f67ef005e)
Change-Id: If2e6afe21f6efcb141f3a4428ff9154b68f08a1d
Merged-In: Ibe849f56f5fe8af1415dc6c85b484d0edca518ec

5 years agoMerge "Fixed that DcTracker does not use correct data registration info"
Jack Yu [Tue, 5 Mar 2019 06:56:14 +0000 (06:56 +0000)]
Merge "Fixed that DcTracker does not use correct data registration info"

5 years agoFixed that DcTracker does not use correct data registration info
Jack Yu [Tue, 26 Feb 2019 21:10:05 +0000 (13:10 -0800)]
Fixed that DcTracker does not use correct data registration info

Fixed by using correct info from the corresponding transport

Test: Unit tests + manual
Bug: 126436426

Merged-In: Ie8ae20423b794622b6a6141faf68c01b75c144ce
Change-Id: Ie8ae20423b794622b6a6141faf68c01b75c144ce
(cherry picked from commit 1fa6cf157806673ca65383d281ca344329e28c28)

5 years agoMerge "Move PublicFormat definition to libui"
Treehugger Robot [Tue, 5 Mar 2019 02:16:42 +0000 (02:16 +0000)]
Merge "Move PublicFormat definition to libui"

5 years agoSet module min_sdk_version to 28
Remi NGUYEN VAN [Tue, 5 Mar 2019 01:14:54 +0000 (10:14 +0900)]
Set module min_sdk_version to 28

The modules are not actually compatible with 28, but this is necessary
as tooling does not support "Q" as a version in the APK.

This will need to be changed to the new version number as soon as it is
available.

Test: m
Change-Id: I1d88f80c293b4667244d219a6989dd11be90f12a

5 years agoMerge "Fix isActiveNetworkMetered for VPNs."
Varun Anand [Tue, 5 Mar 2019 01:37:30 +0000 (01:37 +0000)]
Merge "Fix isActiveNetworkMetered for VPNs."

5 years agoAdd Carriers.SKIP_464XLAT and includes ApnSetting
Yuuki Habu [Fri, 22 Feb 2019 02:29:26 +0000 (11:29 +0900)]
Add Carriers.SKIP_464XLAT and includes ApnSetting

Add the below flag as well and they are hidden now
 - SKIP464_XLAT_DEFAULT
 - SKIP464_XLAT_DISABLE
 - SKIP464_XLAT_ENABLE

Support new flag skip464xlat in ApnSetting

Bug: 69949375
Test: run TelephonyProviderTest

Change-Id: Ia85be92a41a7c1a0b8176718d17469880a0c42cb

5 years agoadd missing annotation for TelephonyManager APIs
chen xu [Sun, 3 Mar 2019 23:57:12 +0000 (15:57 -0800)]
add missing annotation for TelephonyManager APIs

Bug: 126702627
Test: Build
Change-Id: I39cb57db7cc1105bf74eb18ecf15ddbdc6e44f0c
Merged-in: I39cb57db7cc1105bf74eb18ecf15ddbdc6e44f0c

5 years agoMerge "Extract android_media_Utils.cpp as a lib"
Treehugger Robot [Mon, 4 Mar 2019 22:47:16 +0000 (22:47 +0000)]
Merge "Extract android_media_Utils.cpp as a lib"

5 years agoMerge "Move the check on multisim support when switch configuration is done"
Michele Berionne [Mon, 4 Mar 2019 21:12:06 +0000 (21:12 +0000)]
Merge "Move the check on multisim support when switch configuration is done"

5 years agoMerge "Update ImsSsData/ImsSsInfo API based on API council feedback."
Brad Ebinger [Mon, 4 Mar 2019 21:02:10 +0000 (21:02 +0000)]
Merge "Update ImsSsData/ImsSsInfo API based on API council feedback."

5 years agoMerge "Add NonNull and Nullable annotations"
Jordan Liu [Mon, 4 Mar 2019 20:18:50 +0000 (20:18 +0000)]
Merge "Add NonNull and Nullable annotations"

5 years agoMerge "Changes to APIs for CarrierRestrictionRules class"
Michele Berionne [Mon, 4 Mar 2019 19:01:42 +0000 (19:01 +0000)]
Merge "Changes to APIs for CarrierRestrictionRules class"

5 years agoChanges to APIs for CarrierRestrictionRules class
Michele [Fri, 1 Mar 2019 06:38:33 +0000 (22:38 -0800)]
Changes to APIs for CarrierRestrictionRules class

Add @NonNull annotation where applicable.
Rename isCarrierIdentifiersAllowed into areCarrierIdentifiersAllowed.
Make Builder class final.

Bug: 126375826
Bug: 126699079
Bug: 126700761
Test: Compilation
Change-Id: I1a02bc007f147597df97eaa55c00fd31a952870b

5 years agoMerge "Adding new APN type for Mission Critical Services."
Amit Mahajan [Mon, 4 Mar 2019 18:23:30 +0000 (18:23 +0000)]
Merge "Adding new APN type for Mission Critical Services."

5 years agoCorrect nullability and final constraints on new APIs.
Tyler Gunn [Thu, 28 Feb 2019 19:33:42 +0000 (11:33 -0800)]
Correct nullability and final constraints on new APIs.

Per API review, correct nullability and final constraints on new Telecom
APIs.

Test: Build API.
Fixes: 126700293
Fixes: 126699447
Fixes: 126700465
Fixes: 126702895
Fixes: 126702527
Change-Id: Ic19664b156410e79a307b2af0d5672dc19f93c59
Merged-In: Icec15403493de596194a61b27bb3e1031fdc1099

5 years agoMerge "Fix javadoc HTML escaping."
Treehugger Robot [Mon, 4 Mar 2019 16:22:20 +0000 (16:22 +0000)]
Merge "Fix javadoc HTML escaping."

5 years agoMerge "Revert "Revert "Revert "Correct nullability and final constraints on new APIs...
Slava Shklyaev [Mon, 4 Mar 2019 14:42:17 +0000 (14:42 +0000)]
Merge "Revert "Revert "Revert "Correct nullability and final constraints on new APIs.""""

5 years agoRevert "Revert "Revert "Correct nullability and final constraints on new APIs."""
Slava Shklyaev [Mon, 4 Mar 2019 14:39:56 +0000 (14:39 +0000)]
Revert "Revert "Revert "Correct nullability and final constraints on new APIs."""

This reverts commit b255be1307aeae47ca7e8ee72ab4da670a1c49f1.

Reason for revert: the commit being reverted fixed git_master but broke aosp-master. This revert is aimed to fix aosp-master while not touching git_master.

DO NOT MERGE: This change is aimed at aosp-master only and should not be merged into git_master.

Change-Id: Ie5aaabb211affe2d21daaf87809641276d9d4707

5 years agoMerge "Use new libcore filegroup variable"
Neil Fuller [Mon, 4 Mar 2019 12:14:59 +0000 (12:14 +0000)]
Merge "Use new libcore filegroup variable"

5 years agoMerge "Revert "Revert "Correct nullability and final constraints on new APIs."""
Slava Shklyaev [Mon, 4 Mar 2019 11:49:34 +0000 (11:49 +0000)]
Merge "Revert "Revert "Correct nullability and final constraints on new APIs."""

5 years agoRevert "Revert "Correct nullability and final constraints on new APIs.""
Slava Shklyaev [Mon, 4 Mar 2019 11:47:11 +0000 (11:47 +0000)]
Revert "Revert "Correct nullability and final constraints on new APIs.""

This reverts commit 8462c66bd52f3132c3fa03475fcab2af30618f67.

Reason for revert: Looks like this change broke the build.

Change-Id: I4cff1ec1211e278d5e5734f1594c096722293662

5 years agoMerge "Add @Nullable to new method"
Treehugger Robot [Mon, 4 Mar 2019 11:43:48 +0000 (11:43 +0000)]
Merge "Add @Nullable to new method"

5 years agoMerge "Return not supported if no necessary socket option"
Mark Chien [Mon, 4 Mar 2019 09:16:07 +0000 (09:16 +0000)]
Merge "Return not supported if no necessary socket option"

5 years agoMove PublicFormat definition to libui
Jooyung Han [Mon, 4 Mar 2019 07:24:35 +0000 (16:24 +0900)]
Move PublicFormat definition to libui

PublicFormat is defined in android_view_Surface.
However this and related functions are also used in libmediandk
which is both NDK and LL-NDK. As a LL-NDK it should run without
libandroid_runtime.

By moving PublicFormat definition and its utility functions
into libui, LL-NDK can use it without cost of libandroid_runtime.

This is a part cutting dependency from libmediandk to
libandroid_runtime.

Bug: 124268753
Test: m -j
Change-Id: I49eea4325cde244a7168c6954027ee5c9a8459da
Merged-In: I49eea4325cde244a7168c6954027ee5c9a8459da

5 years agoMerge "Revert "Correct nullability and final constraints on new APIs.""
Tyler Gunn [Mon, 4 Mar 2019 05:37:44 +0000 (05:37 +0000)]
Merge "Revert "Correct nullability and final constraints on new APIs.""

5 years agoRevert "Correct nullability and final constraints on new APIs."
Tyler Gunn [Mon, 4 Mar 2019 05:19:42 +0000 (05:19 +0000)]
Revert "Correct nullability and final constraints on new APIs."

This reverts commit b6940c3ea6779bc6d062a430d9eebe192943f09a.

Reason for revert: There appears to be a downstream issue with how the test API definitions are created; until I can figure out how to account for this I'll revert in AOSP (this is in internal master and its fine there).

Change-Id: I840c3ed82afa18323408e161913a84858f7a1539

5 years agoMerge "Correct nullability and final constraints on new APIs."
Tyler Gunn [Mon, 4 Mar 2019 04:13:38 +0000 (04:13 +0000)]
Merge "Correct nullability and final constraints on new APIs."

5 years agoWIFI cannot be automatically connected
Chuwei Xu [Fri, 15 Feb 2019 08:20:53 +0000 (16:20 +0800)]
WIFI cannot be automatically connected

Legacy architectures and the ones with antenna sharing design operate with
single chain and thus would need the scan results with single radio
chain. Thus, set this configuration to TRUE

Bug: 123730925
Test: run cts-on-gsi -m CtsNetTestCases

Change-Id: I524269584588fce241d5a3a7abc6bb90e93ed507

5 years agoMerge "LocalLog: add overloaded dump and reverseDump methods."
Treehugger Robot [Mon, 4 Mar 2019 01:46:23 +0000 (01:46 +0000)]
Merge "LocalLog: add overloaded dump and reverseDump methods."

5 years agoMerge "Expose some APIs as test APIs to facilitate CTS"
Tyler Gunn [Sun, 3 Mar 2019 23:26:09 +0000 (23:26 +0000)]
Merge "Expose some APIs as test APIs to facilitate CTS"

5 years agoadd missing annotation for CarrierIdentifier
chen xu [Sun, 3 Mar 2019 23:15:30 +0000 (15:15 -0800)]
add missing annotation for CarrierIdentifier

Bug: 126702740
Test: Build
Change-Id: I4e1be23ed2d9f016c9c2b71812bbeba24fd090f0

5 years agoMerge "Remove gaillard@google.com from OWNERS of statsd"
Howard Ro [Sun, 3 Mar 2019 22:57:50 +0000 (22:57 +0000)]
Merge "Remove gaillard@google.com from OWNERS of statsd"

5 years agoMerge "Check if DUN APN exists to decide isDunRequired"
Mark Chien [Sun, 3 Mar 2019 06:53:47 +0000 (06:53 +0000)]
Merge "Check if DUN APN exists to decide isDunRequired"

5 years agoMerge "Change return value of getTetherApnRequired() to a boolean."
Mark Chien [Sun, 3 Mar 2019 06:53:47 +0000 (06:53 +0000)]
Merge "Change return value of getTetherApnRequired() to a boolean."

5 years agoMerge "Fixed all APIs not meeting API review requirement"
Treehugger Robot [Sun, 3 Mar 2019 04:27:32 +0000 (04:27 +0000)]
Merge "Fixed all APIs not meeting API review requirement"

5 years agoMerge "Ensure handleUpdateLinkProperties runs on the CS handler thread."
Treehugger Robot [Sat, 2 Mar 2019 05:38:21 +0000 (05:38 +0000)]
Merge "Ensure handleUpdateLinkProperties runs on the CS handler thread."

5 years agoMerge "getConnectionOwnerUid: Clarify documentation"
Treehugger Robot [Sat, 2 Mar 2019 03:42:22 +0000 (03:42 +0000)]
Merge "getConnectionOwnerUid: Clarify documentation"

5 years agoMerge "Add @NonNull and @Nullable annotations to VpnService#Builder."
Treehugger Robot [Sat, 2 Mar 2019 03:41:57 +0000 (03:41 +0000)]
Merge "Add @NonNull and @Nullable annotations to VpnService#Builder."

5 years agoMerge "Fix Automated API Review: InetAddresses"
Treehugger Robot [Sat, 2 Mar 2019 03:05:18 +0000 (03:05 +0000)]
Merge "Fix Automated API Review: InetAddresses"

5 years agoMerge "Revert "Revert "Revert "Enable static overlay for SettingsLib resources""""
Andrii Kulian [Sat, 2 Mar 2019 01:52:04 +0000 (01:52 +0000)]
Merge "Revert "Revert "Revert "Enable static overlay for SettingsLib resources""""

5 years agoRevert "Revert "Revert "Enable static overlay for SettingsLib resources"""
Andrii Kulian [Sat, 2 Mar 2019 01:45:19 +0000 (01:45 +0000)]
Revert "Revert "Revert "Enable static overlay for SettingsLib resources"""

This reverts commit 007c0b0a4346a1304a09864caa71dc872bd4d18e.

Reason for revert: broke git_pi-dev-plus-aosp build

Change-Id: Iaf901d36ab37a5be6f8e0ee3c8a190f78bdd443a

5 years agoAdding new APN type for Mission Critical Services.
Amit Mahajan [Wed, 20 Feb 2019 23:04:30 +0000 (15:04 -0800)]
Adding new APN type for Mission Critical Services.

Test: build
Bug: 124447962
Change-Id: I9f608badd363703394432640dc892a4465660b6d

5 years agoRemove gaillard@google.com from OWNERS of statsd
Howard Ro [Sat, 2 Mar 2019 00:39:56 +0000 (16:39 -0800)]
Remove gaillard@google.com from OWNERS of statsd

Test: not needed for OWNERS change
Change-Id: I6c15067c86dc38784979d6da1265ceb0a3fc5ce5

5 years agoMerge "API tweaks round 2"
Hall Liu [Fri, 1 Mar 2019 23:00:54 +0000 (23:00 +0000)]
Merge "API tweaks round 2"

5 years agoFixed all APIs not meeting API review requirement
Jack Yu [Fri, 1 Mar 2019 20:04:50 +0000 (12:04 -0800)]
Fixed all APIs not meeting API review requirement

To address the API review feedback provided by
the API council.

Bug: 126702995
Bug: 126701710
Bug: 126702357
Bug: 126701113
Bug: 126701239
Bug: 126700713
Bug: 126700064
Test: Manual
Change-Id: I4b902c1fc2c09133022b05dacdda8964436205d2

5 years agoExpose some APIs as test APIs to facilitate CTS
Tyler Gunn [Mon, 4 Feb 2019 23:12:06 +0000 (15:12 -0800)]
Expose some APIs as test APIs to facilitate CTS

Test: added new cts tests
Bug: 123896388
Merged-In: I742f23be57e731307338591d816f7888e198b333
Change-Id: I742f23be57e731307338591d816f7888e198b333

5 years agoMerge "Preload libnativehelper.so which cannot be loaded through the Java classloader."
Treehugger Robot [Fri, 1 Mar 2019 21:56:40 +0000 (21:56 +0000)]
Merge "Preload libnativehelper.so which cannot be loaded through the Java classloader."

5 years agoMerge "Revert "Revert "Enable static overlay for SettingsLib resources"""
Treehugger Robot [Fri, 1 Mar 2019 21:48:55 +0000 (21:48 +0000)]
Merge "Revert "Revert "Enable static overlay for SettingsLib resources"""

5 years agoMerge "add Nullable annotation to TelephonyAPIs"
Chen Xu [Fri, 1 Mar 2019 21:34:29 +0000 (21:34 +0000)]
Merge "add Nullable annotation to TelephonyAPIs"

5 years agoMove the check on multisim support when switch configuration is done
Michele [Fri, 1 Mar 2019 21:01:51 +0000 (13:01 -0800)]
Move the check on multisim support when switch configuration is done

The methods switchMultiSimConfig() and isMultisimSupported() in
TelephonyManager have different permissions. So, in order to check if
the switch operation can be performed, the check needs to be moved after
the verification of the permissions.

Bug: 124462964
Test: compilation
Change-Id: I501110d8b3fb2d26e4dfe187b52bb45dc8b5dc4b

5 years agoCorrect nullability and final constraints on new APIs.
Tyler Gunn [Thu, 28 Feb 2019 19:33:42 +0000 (11:33 -0800)]
Correct nullability and final constraints on new APIs.

Per API review, correct nullability and final constraints on new Telecom
APIs.

Test: Build API.
Fixes: 126700293
Fixes: 126699447
Fixes: 126700465
Fixes: 126702895
Fixes: 126702527
Change-Id: Icec15403493de596194a61b27bb3e1031fdc1099
Merged-In: Icec15403493de596194a61b27bb3e1031fdc1099

5 years agoPreload libnativehelper.so which cannot be loaded through the Java classloader.
Martin Stjernholm [Fri, 1 Mar 2019 18:32:35 +0000 (18:32 +0000)]
Preload libnativehelper.so which cannot be loaded through the Java classloader.

Test: atest CtsHardwareTestCases (between 2 and 4 failing tests, but that
  happens on clean ToT too; no dlopen failures)
Bug: 126601993

Change-Id: Icfe58fad93b97992e39758c02c92c488a13c717f

5 years agoMerge changes I2eef0a3c,I263a1774
Roland Levillain [Fri, 1 Mar 2019 19:17:26 +0000 (19:17 +0000)]
Merge changes I2eef0a3c,I263a1774

* changes:
  Also check Zygote runtime options when testing flag `enable_apex_image`.
  Refactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.

5 years agoAdd @NonNull and @Nullable annotations to VpnService#Builder.
Varun Anand [Fri, 1 Mar 2019 07:40:56 +0000 (23:40 -0800)]
Add @NonNull and @Nullable annotations to VpnService#Builder.

Bug: 126699070
Test: n/a
Change-Id: Ief0066636ca6ae4fefbdf70b8dfdfacf2a44e0e6

5 years agoadd Nullable annotation to TelephonyAPIs
chen xu [Fri, 1 Mar 2019 01:10:22 +0000 (17:10 -0800)]
add Nullable annotation to TelephonyAPIs

Bug: 126702627
Test: Build
Change-Id: I0fa9370840ceda70b181976fa671cd962bdfcbca

5 years agoMerge "Migrate frameworks/base/tests/testables and its users to androidx.test"
Treehugger Robot [Fri, 1 Mar 2019 18:23:34 +0000 (18:23 +0000)]
Merge "Migrate frameworks/base/tests/testables and its users to androidx.test"

5 years agoMerge "Add euicc privileged actions and extras."
Treehugger Robot [Fri, 1 Mar 2019 17:39:49 +0000 (17:39 +0000)]
Merge "Add euicc privileged actions and extras."

5 years agoMigrate frameworks/base/tests/testables and its users to androidx.test
Brett Chabot [Tue, 26 Feb 2019 22:52:33 +0000 (14:52 -0800)]
Migrate frameworks/base/tests/testables and its users to androidx.test

See go/jetpack-test-android-migration

Test: atest TestablesTests NetworkStackTests FrameworksServicesTests SystemUITests FrameworksUiServicesTests ExtServicesUnitTests
Exempt-From-Owner-Approval: already reviewed
Change-Id: I083fcdaa71b503535aa2b3c257740f3ecf055373
Merged-In: Ib04d80954bd8536914d88c66b28e6632e60a6245

5 years agoMerge "Fix ImsMmTelManager API in accordance with the council"
Brad Ebinger [Fri, 1 Mar 2019 17:21:17 +0000 (17:21 +0000)]
Merge "Fix ImsMmTelManager API in accordance with the council"

5 years agoMerge "Make Uri.toSafeString() also handle 'rtsp'"
Dongwon Kang [Fri, 1 Mar 2019 17:09:29 +0000 (17:09 +0000)]
Merge "Make Uri.toSafeString() also handle 'rtsp'"

5 years agoAlso check Zygote runtime options when testing flag `enable_apex_image`.
Roland Levillain [Fri, 1 Mar 2019 15:38:54 +0000 (15:38 +0000)]
Also check Zygote runtime options when testing flag `enable_apex_image`.

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 119800099
Change-Id: I2eef0a3c1f5254b5e270b35477649047c9db40a6

5 years agoRefactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.
Roland Levillain [Fri, 1 Mar 2019 15:33:40 +0000 (15:33 +0000)]
Refactor Zygote runtime option checking in runtime_native_boot-flags-test.sh.

Generalize runtime option checking functions, so that they can be used
to check options other than the ones starting with `-Xgc:`

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123754583
Bug: 119800099
Change-Id: I263a177486f8e24ce92928973f7c8853baf0983b

5 years agoAdd @Nullable to new method
Adam Vartanian [Fri, 1 Mar 2019 13:58:28 +0000 (13:58 +0000)]
Add @Nullable to new method

Add @Nullable to a newly-added method, as requested by API council.

Bug: 126698875
Test: make
Change-Id: I2e72ea457b5adaceea70d9908bb8e2cac2e0d963

5 years agoMerge "Support dexopting shared libraries."
Nicolas Geoffray [Fri, 1 Mar 2019 14:44:49 +0000 (14:44 +0000)]
Merge "Support dexopting shared libraries."

5 years agoMerge "Switch android.test and junit classes to use UnsupportedAppUsage"
Paul Duffin [Fri, 1 Mar 2019 14:24:16 +0000 (14:24 +0000)]
Merge "Switch android.test and junit classes to use UnsupportedAppUsage"

5 years agoMerge changes I10c6ed68,I14d6defe
Roland Levillain [Fri, 1 Mar 2019 14:22:49 +0000 (14:22 +0000)]
Merge changes I10c6ed68,I14d6defe

* changes:
  Check Android Runtime (Boot) device configuration flag `enable_apex_image`.
  Refactor unit test for Android Runtime (Boot) device configuration flags.

5 years agoFix Automated API Review: InetAddresses
Paul Duffin [Fri, 1 Mar 2019 13:52:25 +0000 (13:52 +0000)]
Fix Automated API Review: InetAddresses

Add @NonNull annotations as required by the automated review.

Bug: 126702338
Test: make checkbuild
Change-Id: I9057f06de8d7ea846af00d5cefa744d4206b4b63

5 years agoSwitch android.test and junit classes to use UnsupportedAppUsage
Paul Duffin [Fri, 15 Feb 2019 12:58:26 +0000 (12:58 +0000)]
Switch android.test and junit classes to use UnsupportedAppUsage

The UnsupportedAppUsage annotations could not be added directly to the
java files in src/ as they have to be built against the current api
which does not include the annotation. Instead this uses the same
technique as used for libcore/ojluni files and adds the annotations to
stub files (in hiddenapi/src) which are built as part of the
android.test.base-hiddenapi target. That target is added to a special
whitelist in build/soong/java/config/config.go which causes the
hiddenapi information to be extracted from the target.

Also, updates the preupload check to prevent anymore entries being
added to the config/hiddenapi-greylist.txt for android.test or junit
classes.

Bug: 73711752
Test: m cts-hiddenapi_flags-csv and check that it contained the
        correct entries even though they had been removed from
config/hiddenapi-greylist.txt
Change-Id: Ifaf15d2751f54cb03f8402b866a0ee4da7acc4d2

5 years agoSupport dexopting shared libraries.
Nicolas Geoffray [Tue, 26 Feb 2019 23:24:34 +0000 (23:24 +0000)]
Support dexopting shared libraries.

Test: adb shell setprop dalvik.vm.boot-image /system/framework/apex.art && see compilations in dalvik-cache
Test: BackgroundDexOptServiceIntegrationTests
Test: DexoptUtilsTest
Bug: 119800099
Change-Id: I3445b8743d576e09c9a339602307ba3a219db1fc

5 years agoMerge "Set NetworkStack targetSdk to 28"
Remi NGUYEN VAN [Fri, 1 Mar 2019 06:43:21 +0000 (06:43 +0000)]
Merge "Set NetworkStack targetSdk to 28"

5 years agoAdd euicc privileged actions and extras.
Patrick Huang [Fri, 1 Mar 2019 03:51:10 +0000 (19:51 -0800)]
Add euicc privileged actions and extras.

Bug: 122769846
Test: Test on phone
Change-Id: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170
Merged-In: Ifcf6575c3c65cb38e8787e32bc04b0e4532f7170

5 years agoMerge "Remove ConnectivityManager and its usages from NetworkStatsService."
Varun Anand [Fri, 1 Mar 2019 03:06:06 +0000 (03:06 +0000)]
Merge "Remove ConnectivityManager and its usages from NetworkStatsService."

5 years agoAPI tweaks round 2
Hall Liu [Fri, 1 Mar 2019 02:54:15 +0000 (18:54 -0800)]
API tweaks round 2

Add nullability annotations and change a static constant to a method
that returns a value.

Fixes: 126702861
Fixes: 126699926
Fixes: 126698717
Fixes: 126699057
Fixes: 126701443
Fixes: 126700882
Test: compiles
Change-Id: I96396eb8890b8b5148cf74447e08c31983398e47

5 years agoSet NetworkStack targetSdk to 28
Remi NGUYEN VAN [Fri, 1 Mar 2019 01:01:24 +0000 (10:01 +0900)]
Set NetworkStack targetSdk to 28

Test: flashed, booted, WiFi works
Change-Id: I7bbd7eb563432a290358d16652c0ae69e9772002

5 years agoMerge "add NonNull and Nullable annotation to APIs"
Chen Xu [Fri, 1 Mar 2019 02:17:33 +0000 (02:17 +0000)]
Merge "add NonNull and Nullable annotation to APIs"

5 years agoMerge "Add a Constant for CellInfo#UNAVAILABLE_LONG"
Nathan Harold [Fri, 1 Mar 2019 01:15:47 +0000 (01:15 +0000)]
Merge "Add a Constant for CellInfo#UNAVAILABLE_LONG"

5 years agoMake Uri.toSafeString() also handle 'rtsp'
eunyoung.moon [Thu, 14 Feb 2019 06:02:59 +0000 (15:02 +0900)]
Make Uri.toSafeString() also handle 'rtsp'

Bug: 123669012
Test: atest CtsNetTestCases:android.net.cts.UriTest
Change-Id: I082bdbd55589f6b99a8cf5fc68c897477f2fa792
Signed-off-by: Eunyoung Moon <eunyoung.moon@lge.com>
5 years agoMerge "Fix to hide phone number printed in the log"
Treehugger Robot [Fri, 1 Mar 2019 00:45:51 +0000 (00:45 +0000)]
Merge "Fix to hide phone number printed in the log"

5 years agoRevert "Revert "Enable static overlay for SettingsLib resources""
Takamasa Kuramitsu [Fri, 1 Mar 2019 00:23:58 +0000 (00:23 +0000)]
Revert "Revert "Enable static overlay for SettingsLib resources""

This reverts commit 086c189e20b27209c07af08264050f6c7b60cf48.

Fixes: 116821732

Reason for revert: blocking issue in b/124370422 is resolved

Change-Id: I9ce03ce19b36f08640142c52d759386b83a2c55e

5 years agoMerge "revert "HLS seeking: call readAt() on new thread""
Treehugger Robot [Fri, 1 Mar 2019 00:19:01 +0000 (00:19 +0000)]
Merge "revert "HLS seeking: call readAt() on new thread""

5 years agoRemove ConnectivityManager and its usages from NetworkStatsService.
Varun Anand [Thu, 7 Feb 2019 22:13:13 +0000 (14:13 -0800)]
Remove ConnectivityManager and its usages from NetworkStatsService.

NSS needed it for getting VpnInfo[], NetworkState[] and
activeLinkProperties which it used to query via ConnectivityManager.

For VpnInfo[], this was racy as NSS may ignore intermediate changes to a
VPN's underlying networks. See http://b/123961098 for more context.

It may also lead to deadlocks b/w ConnectivityService and
NetworkStatsService. See http://b/126245192 for more info.

This change will ensure that NSS is never contending on any of
ConnectivityService locks.

Bug: 123961098
Bug: 126245192
Bug: 120145746
Test: atest FrameworksNetTests
Change-Id: Id1da446b54d95ee68ed14079107b1a10318bcf8b
Merged-In: I57e117bb4e9efe491b19d6b5a479f2d58d1c58e6

5 years agoUpdate ImsSsData/ImsSsInfo API based on API council feedback.
Brad Ebinger [Thu, 28 Feb 2019 22:31:56 +0000 (14:31 -0800)]
Update ImsSsData/ImsSsInfo API based on API council feedback.

Bug: 126699932
Bug: 126702587
Bug: 126701185
Bug: 126702997
Test: atest FrameworksTelephonyTests
Change-Id: I8500c2905bbc34d9033e2869b51d38b8d9b4727f

5 years agoMerge "Show mobile icons with left-to-right in order of slot index"
Evan Laird [Thu, 28 Feb 2019 23:03:13 +0000 (23:03 +0000)]
Merge "Show mobile icons with left-to-right in order of slot index"