374644 Commits

Author SHA1 Message Date
Roshan Pius
7e83b79010 Merge "NetworkAgent: Send primitive integer in score" 2018-08-10 14:33:07 +00:00
Mathew Inwood
3b358c7c6d Merge "Add @UnsupportedAppUsage annotations" 2018-08-10 13:04:02 +00:00
Mathew Inwood
eabac25941 Merge "Add @UnsupportedAppUsage annotations" 2018-08-10 13:04:00 +00:00
Mathew Inwood
3610ca221d Merge "Add @UnsupportedAppUsage annotations" 2018-08-10 13:03:57 +00:00
Mathew Inwood
d237a74ff4 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
2018-08-10 09:58:47 +01:00
Mathew Inwood
ba503117f4 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
2018-08-10 09:37:35 +01:00
Treehugger Robot
f7c2fd6a38 Merge "Do not clear data for WAPPushManager settings" 2018-08-10 08:17:22 +00:00
Martijn Coenen
2e9e624c76 Merge "BinderProxy dump: distinguish between empty descriptor and dead remote." 2018-08-10 07:01:37 +00:00
Nathan Harold
a23c70a402 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
2018-08-09 17:39:53 -07:00
Youming Ye
9b3eb9c9b5 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
2018-08-09 17:32:11 -07:00
Hall Liu
01f0135ba4 Merge "Don't insert certain numbers into the call log" 2018-08-09 23:43:22 +00:00
Josh Gao
c81f53f7f1 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
2018-08-09 16:32:42 -07:00
Nathan Harold
65c4b15d42 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
2018-08-09 23:26:01 +00:00
Hall Liu
51c7daaa75 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
2018-08-09 21:57:57 +00:00
Nathan Harold
9257722c5c Merge "Construct NeighboringCellInfo from CellInfo" 2018-08-09 21:31:55 +00:00
Hall Liu
1a622a4215 Merge "IMS: Adding support for TIR/TIP permanent provisioning" 2018-08-09 20:24:18 +00:00
Yifan Hong
c4ee8133d1 Merge "VintfObject: DisabledChecks -> CheckFlags." 2018-08-09 18:32:05 +00:00
Mathew Inwood
e32855ad27 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
2018-08-09 18:03:24 +01:00
Mathew Inwood
6e80c54edc 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
2018-08-09 17:46:43 +01:00
Mathew Inwood
c97c5c04f1 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
2018-08-09 17:29:53 +01:00
Mathew Inwood
8eb07d9011 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
2018-08-09 16:52:22 +01:00
Mathew Inwood
464044f350 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
2018-08-09 15:35:32 +01:00
Treehugger Robot
e8465e8480 Merge "Fix: [SystemUI] icon_blacklist is not reset for sub users" 2018-08-09 14:30:17 +00:00
Martijn Coenen
3796b0d6a6 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
2018-08-09 16:19:45 +02:00
Mathew Inwood
b5962ae431 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
2018-08-09 15:15:57 +01:00
Roshan Pius
64e99ef26d 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
2018-08-09 07:10:27 -07:00
Treehugger Robot
78f8ffbffd Merge "Add @UnsupportedAppUsage annotations" 2018-08-09 13:58:15 +00:00
Cao Yachao
855ed13358 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
2018-08-09 15:14:49 +02:00
Mathew Inwood
196eb1d929 Merge "Add @UnsupportedAppUsage annotations" 2018-08-09 12:35:55 +00:00
Mathew Inwood
14dea1f70c Merge "Add @UnsupportedAppUsage annotations" 2018-08-09 11:40:30 +00:00
Chienyuan
87f90bc6b1 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
2018-08-09 17:08:36 +08:00
Treehugger Robot
4d98474f2a Merge "Fix NPE when starting advertising with null GATT" 2018-08-09 06:48:17 +00:00
Ashit Sood
51832a756a IMS: Adding support for TIR/TIP permanent provisioning
- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0
2018-08-08 21:27:38 -07:00
Tetsutoki Shiozawa
3689663ca7 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
2018-08-09 11:33:53 +09:00
Treehugger Robot
d5eff002eb Merge "Mark BluetoothClass#getClassOfDevice as TestApi" 2018-08-09 00:58:44 +00:00
Treehugger Robot
460b05ebee Merge "DO NOT MERGE: Fix mobile in/out activity indicator icons are not shown correctly" 2018-08-09 00:34:52 +00:00
Yifan Hong
65d1bd15fe VintfObject: DisabledChecks -> CheckFlags.
Reflects a name change.

Bug: 110711640
Test: boots
Change-Id: I1f0d2821e8f18444235fa94814ad893220f9833d
2018-08-08 16:35:30 -07:00
Yi Kong
288f355e1a 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)
2018-08-08 14:08:35 -07:00
Treehugger Robot
46331602ae Merge "Shuffle FD ownership? \noideadog" 2018-08-08 20:31:32 +00:00
Treehugger Robot
f06d3a9857 Merge "Work around b/70221552" 2018-08-08 19:15:19 +00:00
Jeff Sharkey
344960b4d2 Shuffle FD ownership? \noideadog
Test: manual
Bug: 111746860
Change-Id: I1d88bcf81efe71d622bcf3056a6d7c1a4c793383
(cherry picked from commit a651b7833743a22859635409d923729678ac40b1)
2018-08-08 11:25:24 -07:00
Nathan Harold
45fb10525e Construct NeighboringCellInfo from CellInfo
As part of removing neighboring cell info this
CL adds support for constructing a NeighboringCellInfo
object from a CellInfo object.

Bug: 62490173
Test: tested manually using SL4A with both O-MR1 and current
    target SDKs
Change-Id: I278487e506b07ab97589da85f69f1188c73b6eb9
2018-08-08 11:02:28 -07:00
Alex Light
159799d7c9 Work around b/70221552
If one sets a sufficiently long OUT_DIR to build into the
//frameworks/base:framework-javastream-protos generate target will
fail due to trying to run a too-long command. This works around that
problem by making the command being run much smaller.

Test: Build
Bug: 70221552
Change-Id: I0134ccfc83469826d3ea8679e1c52b9b52c6d2e0
2018-08-08 09:52:51 -07:00
Makoto Onuki
9b04b2fd0b Merge "Add a hidden API for fgetfilecon(3)" 2018-08-08 14:51:19 +00:00
Mathew Inwood
5132cc1c85 Add @UnsupportedAppUsage annotations
For packages:
  android.hardware.usb
  android.hardware.soundtrigger
  android.hardware.radio
  android.hardware.location
  android.hardware.input
  android.hardware.hdmi
  android.hardware.fingerprint
  android.hardware.display
  android.hardware.cas.V1_0
  android.hardware.camera2.utils
  android.hardware.camera2.params
  android.hardware.camera2.marshal.impl
  android.hardware.camera2.marshal
  android.hardware.camera2.legacy
  android.hardware.camera2.impl
  android.hardware.camera2.dispatch
  android.hardware.camera2
  android.hardware

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: I7bfe07144a4d581985aa9d4b525b7ca975a2127d
Merged-In: I046df307d1065a9692e4e7259c59a93ee8f458ef
2018-08-08 15:50:55 +01:00
Mathew Inwood
a44c098996 Code reformatting for upcoming automated code changes.
Adding annotations to individual fields cannot be easily done when there
are two fields defined in a single statement. Put each definition in a
statement of its own.

See go/UnsupportedAppUsage for more context.

Bug: 110868826
Test: m
Change-Id: I7c521973bd8856414b2d2e39573d887e426c69fc
2018-08-08 15:25:51 +01:00
Takamasa Kuramitsu
daf38b21b7 DO NOT MERGE: Fix mobile in/out activity indicator icons are not shown correctly
Mobile in/out indicator icons on status bar are not shown correctly.
- When only in indicator is requested, both in/out indicators are shown
- When only out indicator is requested, neither of in/out indicators are
shown

This CL fixes both of in/out indicators are shown properly.

Fixes: 112321399
Test: com.android.systemui.demo command
Change-Id: I803f21aecc444243c12ed75e2f148963742bce4a
2018-08-08 14:03:27 +00:00
Jakub Pawlowski
1f014f4010 Fix NPE when starting advertising with null GATT
Bug: 112164168
Change-Id: I82be0e06e990cc116d3ab48de80b5bb170d69892
2018-08-08 12:14:17 +00:00
Hugo Benichi
c874462c2d Merge "VPN: Implement toString for VpnConfig." 2018-08-08 08:07:47 +00:00
Remi NGUYEN VAN
76f081be5c Merge "Add codewiz@, reminv@ to OWNERS for connectivity" 2018-08-08 08:05:20 +00:00