OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Thu, 16 Aug 2018 16:16:48 +0000 (16:16 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers."
Treehugger Robot [Thu, 16 Aug 2018 15:22:23 +0000 (15:22 +0000)]
Merge "Update docs and ensure PHONE_STATE is more predictable for unknown numbers."

6 years agoUpdate docs and ensure PHONE_STATE is more predictable for unknown numbers.
Tyler Gunn [Tue, 19 Jun 2018 16:55:43 +0000 (09:55 -0700)]
Update docs and ensure PHONE_STATE is more predictable for unknown numbers.

In P the PHONE_STATE broadcast behavior changed due to new permission
requirements.  Updating the API docs for this broadcast to make it more
clear to developers how the broadcast will work given different permission
scenarios.

Also, made a minor change to how the "EXTRA_INCOMING_NUMBER" is populated
on the phone state broadcast.  Originally we opted to remove
EXTRA_INCOMING_NUMBER when the number is empty.  Developer feedback reveals
it is difficult to know for an unknown caller (where numer is empty)
whether the broadcast they're receiving is the one associated with the
broadcast for receivers with READ_CALL_LOG, or the one for receivers
without it.  This minor change eliminates the need to count broadcasts and
instead allows the developer to just focus on whether the extra is present
or not.

Test: make docs and verify the javadoc appears as expected.
Test: Used test app to confirm functionality.
Bug: 110190165
Merged-In: I55e3519fcbad4dcb7da041d0194bf4e1c7d38949
Change-Id: I35967d53274b99d66b63f4ff5acb60a689745f9d

6 years agoMerge "Add APIs in SubscriptionManager for opportunistic subscriptions"
Treehugger Robot [Thu, 16 Aug 2018 14:04:45 +0000 (14:04 +0000)]
Merge "Add APIs in SubscriptionManager for opportunistic subscriptions"

6 years agoMerge "Code reformatting for upcoming automated code changes."
Treehugger Robot [Thu, 16 Aug 2018 07:45:35 +0000 (07:45 +0000)]
Merge "Code reformatting for upcoming automated code changes."

6 years agoMerge "Remove A2DP connect logic from settingslib"
Treehugger Robot [Thu, 16 Aug 2018 06:00:27 +0000 (06:00 +0000)]
Merge "Remove A2DP connect logic from settingslib"

6 years agoMerge "Separated emergency option final UI"
Treehugger Robot [Thu, 16 Aug 2018 03:10:59 +0000 (03:10 +0000)]
Merge "Separated emergency option final UI"

6 years agoMerge changes I7122ff52,I1140fa41,If359662a
Treehugger Robot [Thu, 16 Aug 2018 03:10:54 +0000 (03:10 +0000)]
Merge changes I7122ff52,I1140fa41,If359662a

* changes:
  Fix Power menu background vanish
  Add separated emergency option on power menu
  Add emergency dialer option on power menu

6 years agoMerge "Abstract set APIs in SubscriptionManager"
Treehugger Robot [Thu, 16 Aug 2018 00:41:41 +0000 (00:41 +0000)]
Merge "Abstract set APIs in SubscriptionManager"

6 years agoAdd APIs in SubscriptionManager for opportunistic subscriptions
Malcolm Chen [Tue, 7 Aug 2018 22:03:32 +0000 (15:03 -0700)]
Add APIs in SubscriptionManager for opportunistic subscriptions

Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
Merged-In: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33

6 years agoAbstract set APIs in SubscriptionManager
Malcolm Chen [Sat, 4 Aug 2018 00:24:07 +0000 (17:24 -0700)]
Abstract set APIs in SubscriptionManager

Put common codes of set APIs in Subscription into an unified method.
So that later it's easier to add APIs.

Bug: 112167869
Test: unittest
Change-Id: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
Merged-In: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a

6 years agoMerge "Simplify IWeaver mocking code."
Treehugger Robot [Wed, 15 Aug 2018 17:31:57 +0000 (17:31 +0000)]
Merge "Simplify IWeaver mocking code."

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 15:41:26 +0000 (15:41 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 14:40:24 +0000 (14:40 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 13:32:44 +0000 (13:32 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 13:32:04 +0000 (13:32 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Treehugger Robot [Wed, 15 Aug 2018 12:32:09 +0000 (12:32 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Tue, 14 Aug 2018 14:31:03 +0000 (15:31 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.text.util
  android.text.style
  android.text.method
  android.text.format
  android.text

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I5be178ad05f2ff98bcf31e24cd4eb33961887c38
Merged-In: I9afbd4ca8826c37cb70db43252e39b9a674e5ae0

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 11:37:37 +0000 (11:37 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 11:36:01 +0000 (11:36 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Treehugger Robot [Wed, 15 Aug 2018 10:11:01 +0000 (10:11 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Wed, 15 Aug 2018 10:10:35 +0000 (10:10 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Treehugger Robot [Wed, 15 Aug 2018 07:36:26 +0000 (07:36 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Clatd-related commands porting"
Luke Huang [Wed, 15 Aug 2018 03:38:50 +0000 (03:38 +0000)]
Merge "Clatd-related commands porting"

6 years agoMerge "Add Nullable to MediaHTTPService's mCookies."
Gerry Fan [Wed, 15 Aug 2018 00:13:59 +0000 (00:13 +0000)]
Merge "Add Nullable to MediaHTTPService's mCookies."

6 years agoAdd Nullable to MediaHTTPService's mCookies.
gfan [Tue, 14 Aug 2018 17:20:35 +0000 (10:20 -0700)]
Add Nullable to MediaHTTPService's mCookies.

Bug: 29321867
Test: manually tested with ndk sample native-audio
Change-Id: Ic30fe7c28db0111ee5bcb91b037b7c4536dcfd06

6 years agoMerge "Use seInfo to label secondary dex files"
Treehugger Robot [Tue, 14 Aug 2018 20:43:00 +0000 (20:43 +0000)]
Merge "Use seInfo to label secondary dex files"

6 years agoMerge "Convert com.android.media.remotedisplay.stubs-gen docs"
Treehugger Robot [Tue, 14 Aug 2018 20:07:33 +0000 (20:07 +0000)]
Merge "Convert com.android.media.remotedisplay.stubs-gen docs"

6 years agoMerge "Remove old SubscriptionInfo constructors."
Xiangyu/Malcolm Chen [Tue, 14 Aug 2018 18:58:25 +0000 (18:58 +0000)]
Merge "Remove old SubscriptionInfo constructors."

6 years agoMerge "MemoryIntArray: don't double close."
Treehugger Robot [Tue, 14 Aug 2018 18:51:40 +0000 (18:51 +0000)]
Merge "MemoryIntArray: don't double close."

6 years agoUse seInfo to label secondary dex files
Nick Kralevich [Tue, 14 Aug 2018 18:11:02 +0000 (11:11 -0700)]
Use seInfo to label secondary dex files

There are, confusingly, two seInfo strings used to determine how
processes and files are labeled. "seInfo" was the original string, and
https://android.googlesource.com/platform/frameworks/base/+/be0b8896d1bc%5E%21/#F3
added "seInfoUser" to support instant apps (with a TODO to merge the two
fields).

"seInfoUser" is only intended to label instant app processes, not files.
So, when we need to label files, we should be using "seInfo", not
"seInfoUser". Otherwise, files will get labeled incorrectly.

Steps to reproduce:

  1) Revert system/sepolicy commit cdc6649acc43d3a38753e22790f372290c1189c1
  2) Rebuild and factory reset the device ("fastboot -w flashall")
  3) Wait for the device to boot.
  4) "adb root"
  5) "adb shell"
  6) "cmd package compile -r bg-dexopt --secondary-dex com.google.android.gms"
  7) Examine the files in /data/user_de/0/com.google.android.gms using
     "ls -laZR /data/user_de/0/com.google.android.gms"

Expected:

  All files in /data/user_de/0/com.google.android.gms should have the
  SELinux label "privapp_data_file"

Actual:

  Secondary dex files produced by installd have the incorrect label
  "app_data_file"

Bug: 112357170
Test: Verified labels of files in /data/user_de/0/com.google.android.gms
      are correct

Change-Id: If028dcb4742731acab2855d4eec8f314964bb09a

6 years agoSimplify IWeaver mocking code.
Steven Moreland [Mon, 13 Aug 2018 17:59:30 +0000 (10:59 -0700)]
Simplify IWeaver mocking code.

Implementations of HIDL interfaces are intended to extend
from the Stub class, not the core interface class.

Test: m FrameworksServicesTests
Test: frameworks/base/services/tests/runtests.py -e package "com.android.server.locksettings"
OK (454 tests)

Bug: 112334405

Change-Id: Ib060560fd74f0092544096210f52e1f7fcba6c06

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Tue, 14 Aug 2018 18:04:16 +0000 (19:04 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  org.apache.http.params
  org.apache.http.conn.ssl
  org.apache.http.conn.scheme
  org.apache.http.conn

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ia97cd8d932845e1f4c5454764efff206777d2e02
Merged-In: I4f19d319716b92da095b2b1d08f7c225f7ec027c

6 years agoMerge "Clarify NativeHandle.java dup documentation."
Steven Moreland [Tue, 14 Aug 2018 17:47:58 +0000 (17:47 +0000)]
Merge "Clarify NativeHandle.java dup documentation."

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Tue, 14 Aug 2018 16:32:44 +0000 (17:32 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.util.proto
  android.util.jar
  android.util.apk
  android.util

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I18848448a81132399f6878812acf5031ed8cec9f
Merged-In: Ia0f48c244b0fbe33d40d797702a82303648196ed

6 years agoMerge "Implementing support for HIDL native handles in Java"
Steven Moreland [Tue, 14 Aug 2018 15:39:33 +0000 (15:39 +0000)]
Merge "Implementing support for HIDL native handles in Java"

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Wed, 8 Aug 2018 13:52:47 +0000 (14:52 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.net.wimax
  android.net.wifi.p2p.nsd
  android.net.wifi.p2p
  android.net.wifi.hotspot2.pps
  android.net.wifi.hotspot2.omadm
  android.net.wifi.hotspot2
  android.net.wifi.aware
  android.net.wifi
  android.net.util
  android.net.sip
  android.net.rtp
  android.net.nsd
  android.net.metrics
  android.net.lowpan
  android.net.http
  android.net.captiveportal
  android.net

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Ie25423113ee1a8071cd5039382c00de6ce0af7fd
Merged-In: I520be7a4c79e68310c12e4f55bf66acaa94145a1

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Tue, 14 Aug 2018 13:25:44 +0000 (14:25 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.app.usage
  android.app.trust
  android.app.timezonedetector
  android.app.timezone
  android.app.timedetector
  android.app.job
  android.app.backup
  android.app.assist
  android.app.admin
  android.app

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I5d15d50344d7178617418846917f693cfabf006b
Merged-In: I618c5dc4462ae990d9df45c3e9ed3f092cc5138c

6 years agoMemoryIntArray: don't double close.
Josh Gao [Mon, 13 Aug 2018 17:58:56 +0000 (10:58 -0700)]
MemoryIntArray: don't double close.

Oops, in the process of trying to track down a double close, I
introduced one...

This was caught by fdsan immediately when running the tests, but a
tombstone wasn't generated, due to a race with ActivityManager killing
crash_dump before it finished generating a tombstone. (b/112564871)

Bug: http://b/112405224
Test: atest MemoryIntArrayTest (looking at logcat this time...)
Change-Id: Iac154b92a945ce9ac8d0721e7bf200e73e6fb484

6 years agoMerge "Modernize codebase by replacing NULL with nullptr"
Treehugger Robot [Tue, 14 Aug 2018 08:14:51 +0000 (08:14 +0000)]
Merge "Modernize codebase by replacing NULL with nullptr"

6 years agoRemove old SubscriptionInfo constructors.
Malcolm Chen [Fri, 10 Aug 2018 00:01:35 +0000 (17:01 -0700)]
Remove old SubscriptionInfo constructors.

Bug: 92796390
Test: build
Change-Id: Id5ce174b43934e690f6c1682e502b3b7e344a865
Merged-In: Id5ce174b43934e690f6c1682e502b3b7e344a865

6 years agoClarify NativeHandle.java dup documentation.
Steven Moreland [Mon, 13 Aug 2018 20:53:39 +0000 (13:53 -0700)]
Clarify NativeHandle.java dup documentation.

close must also be called.

Bug: 35098567
Test: N/A
Change-Id: I4d03effc82d7f6de7ca785ae4d12868ccc4ceddd

6 years agoImplementing support for HIDL native handles in Java
Nirav Atre [Wed, 25 Jul 2018 00:03:44 +0000 (17:03 -0700)]
Implementing support for HIDL native handles in Java

This change implements the equivalent of the C++ native_handle_t type in
Java. Similar to the C++ type, the NativeHandle class wraps an arraylist
of FileDescriptor objects, along with a raw data stream (integer array).

Bug: 35098567
Test: Ran m, hidl_test (C++ and Java). Functionality tests are included
in a separate CL.

Change-Id: Ic53f9a49ae17ce5708577a586230126ab0e222c7

6 years agoMerge "NetworkAgent: Send primitive integer in explicitlySelected"
Treehugger Robot [Mon, 13 Aug 2018 17:09:51 +0000 (17:09 +0000)]
Merge "NetworkAgent: Send primitive integer in explicitlySelected"

6 years agoMerge "Update current.txt to fix inconsistencies"
Neil Fuller [Mon, 13 Aug 2018 15:39:17 +0000 (15:39 +0000)]
Merge "Update current.txt to fix inconsistencies"

6 years agoMerge "Add libcore/ojluni/annotations as a source for metalava."
Treehugger Robot [Mon, 13 Aug 2018 12:22:29 +0000 (12:22 +0000)]
Merge "Add libcore/ojluni/annotations as a source for metalava."

6 years agoMerge "Parcel: Handle NULL return from Parcel::readInPlace."
Narayan Kamath [Mon, 13 Aug 2018 09:03:43 +0000 (09:03 +0000)]
Merge "Parcel: Handle NULL return from Parcel::readInPlace."

6 years agoMerge "Strict-related commands porting"
Luke Huang [Mon, 13 Aug 2018 05:39:02 +0000 (05:39 +0000)]
Merge "Strict-related commands porting"

6 years agoSeparated emergency option final UI
Wesley.CW Wang [Fri, 6 Jul 2018 07:26:21 +0000 (15:26 +0800)]
Separated emergency option final UI

 - Refine faster emergency icon.
 - Add ic_faster_emergency.xml to framework/core/res/drawable.
 - Remove faster_emergency_icon.xml from SystemUI/res/drawable.
 - Change emergency_icon.xml color to colorError.
 - Emergency option(India case) will follow separated option design if
 separated option feature is enabled.

Test: Manually,
use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show separated emergency option(default case),
use "adb shell settings put global emergency_affordance_needed 1" to show India emergency option(India case),
India emergency option will be separated button if feature is enabled,
otherwise it will be default design.
Change wallpaper to enable light/dark theme & check separated emergency option color.
(light theme color : D93025    dark theme color : E25142)

Bug: 110658988
Change-Id: I2a3c5ce053aab05381806eedf108cec54af808b1
Merged-In: Id13bcb5b5242ded92b309667c5e2beb8694b9977

6 years agoFix Power menu background vanish
Wesley.CW Wang [Wed, 4 Jul 2018 09:35:00 +0000 (17:35 +0800)]
Fix Power menu background vanish

 - Separated button & origin button use same HardwareBgDrawable caused
power menu background vanish when keyboard showing.
 - Let separated button use mSeparatedViewBackground & origin button use
 mListBackground to fix this bug.
 - Rename View mChild to mList.

Test: Manually, long press power key to launch power menu when keyboard
showing, power menu background should display normally.
Bug: 111101759

Change-Id: I7122ff52fd14021ac01b1ab9d64e7dde71fa7ab1
Merged-In: Ic08cabc63daebc4001c8eda751857d11cb0e6352

6 years agoAdd separated emergency option on power menu
Wesley.CW Wang [Fri, 15 Jun 2018 08:24:57 +0000 (16:24 +0800)]
Add separated emergency option on power menu

 - Add a separated button on power menu to launch emergency dialer.
 - Change HardwareUiLayout.java FrameLayout to LinearLayout, let it can
display separated button.
 - Add a flag to recognize separated button should show/hide, if
EmergencyAffordance(India) enabled, separated button will hide,
otherwise power menu will display separated button & power
menu last item won't get white background.

Test: Manually, use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show/hide separated emergency option, press emergency option will go to emergency dialer.
Change-Id: I1140fa412b655c16f3052cbabd118df278fd7f23
Merged-In: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
Bug: 80376488

6 years agoAdd emergency dialer option on power menu
Wesley.CW Wang [Mon, 28 May 2018 08:39:27 +0000 (16:39 +0800)]
Add emergency dialer option on power menu

Add a button on power menu to launch emergency dialer.
Add FASTER_EMERGENCY_PHONE_CALL_ENABLED to SettingsBackupTest blacklist.

Test: Manually
Bug: 80376488
Change-Id: If359662a4d60dbe0ded89c3afe35db91dca4c445
Merged-In: I9c920e31433c0ac23165f917d8dd2befaaa4938d

6 years agoConvert com.android.media.remotedisplay.stubs-gen docs
Nan Zhang [Sun, 12 Aug 2018 19:51:48 +0000 (12:51 -0700)]
Convert com.android.media.remotedisplay.stubs-gen docs

Checked AOSP master, and found that this module haven't been migrated
yet after pi-dev codebase been merged back to AOSP.

Test: m -j RemoteDisplayProviderTest is successful and does not show any
link-type check warning.
Bug: b/70351683

Change-Id: I227fe8c0a19582cf3f095a8e773ca0bdd81b0a0a

6 years agoMerge "Merge CellInfo TYPE Enums"
Nathan Harold [Fri, 10 Aug 2018 23:56:54 +0000 (23:56 +0000)]
Merge "Merge CellInfo TYPE Enums"

6 years agoMerge "MemoryIntArray: track the owned file descriptor in a PFD."
Treehugger Robot [Fri, 10 Aug 2018 19:42:51 +0000 (19:42 +0000)]
Merge "MemoryIntArray: track the owned file descriptor in a PFD."

6 years agoMerge "Fix permission check for TelephonyManager#isTtyModeSupported."
Youming Ye [Fri, 10 Aug 2018 18:21:25 +0000 (18:21 +0000)]
Merge "Fix permission check for TelephonyManager#isTtyModeSupported."

6 years agoParcel: Handle NULL return from Parcel::readInPlace.
Narayan Kamath [Wed, 8 Aug 2018 12:46:29 +0000 (13:46 +0100)]
Parcel: Handle NULL return from Parcel::readInPlace.

This can happen because Parcel checks that there are enough
bytes to consume taking padding into account, whereas the JNI
wrapper only considers the unpadded length of the array.

Test: atest ParcelTest
Bug: 35384981

Change-Id: I76c01ec50391144985f56dcae016d46487f74591

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Fri, 10 Aug 2018 15:10:20 +0000 (16:10 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.database.sqlite
  android.database

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I0da613d00611e89e49bf73c9ffe35700818efc6b
Merged-In: I2bcc7f0eee31a1775dd7a5dd0f291d0d37bc1292

6 years agoNetworkAgent: Send primitive integer in explicitlySelected
Roshan Pius [Fri, 10 Aug 2018 14:36:39 +0000 (07:36 -0700)]
NetworkAgent: Send primitive integer in explicitlySelected

|Boolean| object is not parcelable and hences crashes when the binder call
crosses a process boundary. Using a primitive integer instead to
represent the boolean value.

Bug: 112358948
Test: Device boots up and able to make wifi connection.
Change-Id: Iac69fd302e1f1338ed0da1446105ffc5855451cc

6 years agoMerge "NetworkAgent: Send primitive integer in score"
Roshan Pius [Fri, 10 Aug 2018 14:33:07 +0000 (14:33 +0000)]
Merge "NetworkAgent: Send primitive integer in score"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Fri, 10 Aug 2018 13:04:02 +0000 (13:04 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Fri, 10 Aug 2018 13:04:00 +0000 (13:04 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Fri, 10 Aug 2018 13:03:57 +0000 (13:03 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Fri, 10 Aug 2018 08:58:47 +0000 (09:58 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.service.wallpaper
  android.service.vr
  android.service.voice
  android.service.trust
  android.service.textservice
  android.service.restrictions
  android.service.resolver
  android.service.quicksettings
  android.service.power
  android.service.pm
  android.service.persistentdata
  android.service.oemlock
  android.service.notification
  android.service.media
  android.service.gatekeeper
  android.service.fingerprint
  android.service.euicc
  android.service.dreams
  android.service.diskstats
  android.service.chooser
  android.service.carrier
  android.service.battery
  android.service.autofill
  android.service.appwidget
  android.service

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I50fb66b55bbc82cc505b483c98f8bd09ae0b5020
Merged-In: I51645d8a8cdce3015749fc27e34830e822ef41ae

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Fri, 10 Aug 2018 08:37:35 +0000 (09:37 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.providers.settings
  android.provider

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I993adf36dc31a5e224e88217c9e8dc140b6ba880
Merged-In: I3865ac184fcb6f52c6bfab9729611b065b27722e

6 years agoMerge "Do not clear data for WAPPushManager settings"
Treehugger Robot [Fri, 10 Aug 2018 08:17:22 +0000 (08:17 +0000)]
Merge "Do not clear data for WAPPushManager settings"

6 years agoMerge "BinderProxy dump: distinguish between empty descriptor and dead remote."
Martijn Coenen [Fri, 10 Aug 2018 07:01:37 +0000 (07:01 +0000)]
Merge "BinderProxy dump: distinguish between empty descriptor and dead remote."

6 years agoUpdate current.txt to fix inconsistencies
Nathan Harold [Fri, 10 Aug 2018 00:34:18 +0000 (17:34 -0700)]
Update current.txt to fix inconsistencies

A couple minor signature changes seem to have
been missed, causing cruft to appear in API
changes by others. This is a little cleanup
to ensure that API updates are clean in
current.txt

Bug: 112441667
Test: compilation
Change-Id: I1d24ec53d180eb6451fef6d76cd22f1956bd7f7d

6 years agoFix permission check for TelephonyManager#isTtyModeSupported.
Youming Ye [Thu, 9 Aug 2018 23:32:11 +0000 (16:32 -0700)]
Fix permission check for TelephonyManager#isTtyModeSupported.

TelephonyManager now calls TelecomManager#isTtySupported directly, instead of calling from its implementation PhoneInterfaceManager.

Bug: 79502396
Test: Manual
Change-Id: I686b93d31850103f1cfb7003fe0506d08a424f27

6 years agoMerge "Don't insert certain numbers into the call log"
Hall Liu [Thu, 9 Aug 2018 23:43:22 +0000 (23:43 +0000)]
Merge "Don't insert certain numbers into the call log"

6 years agoMemoryIntArray: track the owned file descriptor in a PFD.
Josh Gao [Thu, 9 Aug 2018 22:09:02 +0000 (15:09 -0700)]
MemoryIntArray: track the owned file descriptor in a PFD.

AUPT is triggering an fdsan diagnostic when creating a temporary
ParcelFileDescriptor to write to a Parcel. This code seems correct at
first glance, so under the assumption that some other code is closing
the file descriptor out from under us, keep our owned file descriptor
around as a ParcelFileDescriptor to catch the perpetrator in the act.

Bug: http://b/112405224
Test: atest MemoryIntArrayTest
      (testAshmemSizeMatchesMemoryIntArraySize failed/crashed before, fails now)
Change-Id: Ie8ff7562c78ecde4cf1757d572ecb733213cc975

6 years agoMerge CellInfo TYPE Enums
Nathan Harold [Mon, 30 Jul 2018 23:10:50 +0000 (16:10 -0700)]
Merge CellInfo TYPE Enums

CellIdentity and CellInfo had redundant enums to
designate the structure type. This CL merges the
better-formatted enums from CellIdentity to
CellInfo, removing the set from CellIdentity.
For cases where the structure type must be determined
at runtime based on a CellInfo record, (where
polymorphic behavior isn't/shouldn't be supported),
this provides a consistent mechanism for determining
the type without using RTTI.
In addition, this CL fixes two other minor issues:
1) The constructor for CellInfoWcdma() provided the
   wrong parcel type to the parent class.
2) The TYPE_TDSCDMA had a typo in CellInfo and was
   written as TYPE_TDCDMA.

Bug: 112003199
Bug: 67711865
Test: runtest frameworks-telephony
Change-Id: I5ca3c2de1433dfcef264e1273a658d1a0fe864b6

6 years agoDon't insert certain numbers into the call log
Hall Liu [Sat, 4 Aug 2018 01:25:24 +0000 (18:25 -0700)]
Don't insert certain numbers into the call log

For regulatory requirements, prevent certain sensitive numbers from
being logged in the call log. The numbers can either be specified in the
carrier config or in the mcc config for the device.

Bug: 111470439
Test: unit, manual
Change-Id: Icc4db12def802c2ce5485422a0ec199e3e7452fa
Merged-In: Icc4db12def802c2ce5485422a0ec199e3e7452fa

6 years agoMerge "Construct NeighboringCellInfo from CellInfo"
Nathan Harold [Thu, 9 Aug 2018 21:31:55 +0000 (21:31 +0000)]
Merge "Construct NeighboringCellInfo from CellInfo"

6 years agoMerge "IMS: Adding support for TIR/TIP permanent provisioning"
Hall Liu [Thu, 9 Aug 2018 20:24:18 +0000 (20:24 +0000)]
Merge "IMS: Adding support for TIR/TIP permanent provisioning"

6 years agoMerge "VintfObject: DisabledChecks -> CheckFlags."
Yifan Hong [Thu, 9 Aug 2018 18:32:05 +0000 (18:32 +0000)]
Merge "VintfObject: DisabledChecks -> CheckFlags."

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 17:03:24 +0000 (18:03 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.permissionpresenterservice

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I9815ccef9f479c6fcb10ae2670202bf9d39e3978
Merged-In: If94e49a237e553f62af888cc01282b5152f26b2d

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 16:46:43 +0000 (17:46 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.opengl

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: Iac5bb97445d3f0e3383df0223e2d18fbdc336839
Merged-In: I747cf5d5e6e211dc368545472fee65fd20cdae74

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 16:29:53 +0000 (17:29 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.mtp

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I6af7c9405b0ac3c2d30307dd04d6d330cd22bda4
Merged-In: Id97d70dc1003cd7c6ed585d647bf0df0fd7a946a

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 15:52:22 +0000 (16:52 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.location

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I74c0dba2a25f1a4c3991e19221a277efe9230f3b
Merged-In: I2e49951f49072866906ecb8fba133ff16293e65a

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 14:35:32 +0000 (15:35 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.companion

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I10d15bf0f4f0aa4be4f60273bc15d2c075f140e0
Merged-In: Iae49e94fe8cffc1922b5e9cbd0cb9deaeae09b57

6 years agoMerge "Fix: [SystemUI] icon_blacklist is not reset for sub users"
Treehugger Robot [Thu, 9 Aug 2018 14:30:17 +0000 (14:30 +0000)]
Merge "Fix: [SystemUI] icon_blacklist is not reset for sub users"

6 years agoBinderProxy dump: distinguish between empty descriptor and dead remote.
Martijn Coenen [Thu, 9 Aug 2018 14:11:04 +0000 (16:11 +0200)]
BinderProxy dump: distinguish between empty descriptor and dead remote.

getInterfaceDescriptor() will return an empty string when the call
to retrieve it into the remote process fails. Proxies to a dead binder
process then show up as having an empty descriptor in the proxy dumps,
and can't be distinguished from live proxies with an empty descriptor.

Instead, if we get an empty string, check if the proxy is still alive,
so we can more accurately dump. This will make it much easier to find
proxy leaks to dead binder nodes.

Bug: 109888955
Test: adb shell dumpsys activity binder-proxies
Change-Id: Ib37ec004f38c99743ffb4a62101c12626b649e5d

6 years agoAdd @UnsupportedAppUsage annotations
Mathew Inwood [Thu, 9 Aug 2018 14:15:57 +0000 (15:15 +0100)]
Add @UnsupportedAppUsage annotations

For packages:
  android.appwidget

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I738f99248aaabe0ef29533e339ae7c5721384d52
Merged-In: Idbddc50320e7df92e0f260c1e309e5390b502d28

6 years agoNetworkAgent: Send primitive integer in score
Roshan Pius [Thu, 2 Aug 2018 17:25:02 +0000 (10:25 -0700)]
NetworkAgent: Send primitive integer in score

|Integer| is not parcelable and hences crashes when the binder call
crosses a process boundary. Using a primitive integer should suffice
for sending the value to the server. There are no other usage of
|EVENT_NETWORK_SCORE_CHANGED| in the codebase.

Bug: 112358948
Test: Device boots up and able to make wifi connection.
Change-Id: I4c8fc17f4b803f69a4d882c71a8ce014a194d1ba

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Treehugger Robot [Thu, 9 Aug 2018 13:58:15 +0000 (13:58 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoDo not clear data for WAPPushManager settings
Cao Yachao [Mon, 19 Aug 2013 12:43:27 +0000 (14:43 +0200)]
Do not clear data for WAPPushManager settings

Turn off user data clear in manifest. The data is used
and filled by carrier and end-user doesn't necessarily know the
consequences of deleting the data.

Bug: 32788589
Test: manual - check that data can't be deleted from Settings app
Change-Id: I5db28f8e127f670a8b0b4ef0d32185bb4bcd7aaf

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Thu, 9 Aug 2018 12:35:55 +0000 (12:35 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoMerge "Add @UnsupportedAppUsage annotations"
Mathew Inwood [Thu, 9 Aug 2018 11:40:30 +0000 (11:40 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

6 years agoRemove A2DP connect logic from settingslib
Chienyuan [Thu, 9 Aug 2018 09:06:52 +0000 (17:06 +0800)]
Remove A2DP connect logic from settingslib

A2dpProfile will disconnect current device when receive connect event
and max connectable device is one. Ideally we shouldn't have any
bluetooth code in settingslib. The corresponding logic is moved to
the Bluetooth A2dpService.

Bug: 111812003
Test: 1. Developer options > Maxium connected Bluetooth device > 1.
      2. Connected 2 BT Headset respectively

Change-Id: I298c39942756523b8a2b34a4104bcd247d2455eb

6 years agoMerge "Fix NPE when starting advertising with null GATT"
Treehugger Robot [Thu, 9 Aug 2018 06:48:17 +0000 (06:48 +0000)]
Merge "Fix NPE when starting advertising with null GATT"

6 years agoIMS: Adding support for TIR/TIP permanent provisioning
Ashit Sood [Wed, 2 May 2018 18:25:22 +0000 (11:25 -0700)]
IMS: Adding support for TIR/TIP permanent provisioning

- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0

6 years agoFix: [SystemUI] icon_blacklist is not reset for sub users
Tetsutoki Shiozawa [Tue, 17 Jul 2018 06:22:49 +0000 (15:22 +0900)]
Fix: [SystemUI] icon_blacklist is not reset for sub users

Symptom:
System icon tuner preference is removed at P-osv but icon_blacklist
setting remains for sub users. There is no way to reveal the hidden
icons.

Bug: 111575893
Change-Id: I5174657048c24e5f85bbf2bb936a97a51262eee5

6 years agoMerge "Mark BluetoothClass#getClassOfDevice as TestApi"
Treehugger Robot [Thu, 9 Aug 2018 00:58:44 +0000 (00:58 +0000)]
Merge "Mark BluetoothClass#getClassOfDevice as TestApi"

6 years agoMerge "DO NOT MERGE: Fix mobile in/out activity indicator icons are not shown correctly"
Treehugger Robot [Thu, 9 Aug 2018 00:34:52 +0000 (00:34 +0000)]
Merge "DO NOT MERGE: Fix mobile in/out activity indicator icons are not shown correctly"

6 years agoVintfObject: DisabledChecks -> CheckFlags.
Yifan Hong [Wed, 8 Aug 2018 20:15:18 +0000 (13:15 -0700)]
VintfObject: DisabledChecks -> CheckFlags.

Reflects a name change.

Bug: 110711640
Test: boots
Change-Id: I1f0d2821e8f18444235fa94814ad893220f9833d

6 years agoModernize codebase by replacing NULL with nullptr
Yi Kong [Mon, 6 Aug 2018 21:48:58 +0000 (14:48 -0700)]
Modernize codebase by replacing NULL with nullptr

Fixes -Wzero-as-null-pointer-constant warning.

Test: m
Bug: 68236239
Change-Id: Ic440b9fcb9be97c316448b764f7110ef1f7eb525
Merged-In: Ic440b9fcb9be97c316448b764f7110ef1f7eb525
(cherry picked from commit 08a8d728dbe379cd70974ba98d59017f5506e0e5)

6 years agoMerge "Shuffle FD ownership? \noideadog"
Treehugger Robot [Wed, 8 Aug 2018 20:31:32 +0000 (20:31 +0000)]
Merge "Shuffle FD ownership?  \noideadog"

6 years agoMerge "Work around b/70221552"
Treehugger Robot [Wed, 8 Aug 2018 19:15:19 +0000 (19:15 +0000)]
Merge "Work around b/70221552"

6 years agoShuffle FD ownership? \noideadog
Jeff Sharkey [Mon, 23 Jul 2018 19:45:28 +0000 (13:45 -0600)]
Shuffle FD ownership?  \noideadog

Test: manual
Bug: 111746860
Change-Id: I1d88bcf81efe71d622bcf3056a6d7c1a4c793383
(cherry picked from commit a651b7833743a22859635409d923729678ac40b1)