OSDN Git Service

android-x86/frameworks-base.git
5 years ago[API Feedback] Rename DebugEventReporter
Nathan Harold [Fri, 8 Mar 2019 19:51:56 +0000 (11:51 -0800)]
[API Feedback] Rename DebugEventReporter

To address concerns that the DebugEventReporter would
be misconstrued as a generic logging mechanism, for
which use of system broadcasts is inappropriate, this
component and the accompanying broadcast are renamed
as AnomalyReporter and the event renamed from
ACTION_DEBUG_EVENT to ACTION_ANOMALY_REPORTED.

Bug: 126178766
Test: manual (fire event from PhoneGlobals at boot).
Change-Id: I13381d6c551db161d9858601df8be98f5c25976c

5 years agoMerge "Add TimeStamp Constructor for HAL 1.4 Support"
Nathan Harold [Fri, 8 Mar 2019 19:03:47 +0000 (19:03 +0000)]
Merge "Add TimeStamp Constructor for HAL 1.4 Support"

5 years agoMerge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE"
Nazanin Bakhshi [Fri, 8 Mar 2019 18:25:59 +0000 (18:25 +0000)]
Merge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE"

5 years agoMerge "Adding KEY_PERMANENTLY_INVALIDATED int"
Max Bires [Fri, 8 Mar 2019 17:53:05 +0000 (17:53 +0000)]
Merge "Adding KEY_PERMANENTLY_INVALIDATED int"

5 years agoMerge "Add carrier config key for TTY support."
Tyler Gunn [Fri, 8 Mar 2019 17:52:52 +0000 (17:52 +0000)]
Merge "Add carrier config key for TTY support."

5 years agoMerge "Update DynamicAndroidService for IGsiService AIDL changes."
David Anderson [Fri, 8 Mar 2019 17:39:44 +0000 (17:39 +0000)]
Merge "Update DynamicAndroidService for IGsiService AIDL changes."

5 years agoMerge "Add extra hidden api related tags"
Andrei-Valentin Onea [Fri, 8 Mar 2019 16:22:11 +0000 (16:22 +0000)]
Merge "Add extra hidden api related tags"

5 years agoMerge "Give Telephony the permissions to access the network stack."
Treehugger Robot [Fri, 8 Mar 2019 15:55:53 +0000 (15:55 +0000)]
Merge "Give Telephony the permissions to access the network stack."

5 years agoMerge "Add junyulai@ as owner of the core networking dirs"
Bernie Innocenti [Fri, 8 Mar 2019 15:21:01 +0000 (15:21 +0000)]
Merge "Add junyulai@ as owner of the core networking dirs"

5 years agoMerge "IPv6: enable IPv6 link local routing for local network"
Jimmy Chen [Fri, 8 Mar 2019 15:08:07 +0000 (15:08 +0000)]
Merge "IPv6: enable IPv6 link local routing for local network"

5 years agoAdd junyulai@ as owner of the core networking dirs
Bernie Innocenti [Fri, 8 Mar 2019 11:28:35 +0000 (20:28 +0900)]
Add junyulai@ as owner of the core networking dirs

Also removed emeritus accounts ek@ and silberst@ from various places.
A cleanup using 'include' would probably be in order...

Test: N/A
Change-Id: I575e60dd5e600e42d9571ce8e8d7661d30e99bfe

5 years agoGive Telephony the permissions to access the network stack.
Chalard Jean [Fri, 8 Mar 2019 10:46:00 +0000 (19:46 +0900)]
Give Telephony the permissions to access the network stack.

Test: manual
Change-Id: I28308f421aa955fe110b50452b115a0178b24745

5 years agoMerge "Change BluetoothCodecStatus.sameCapabilities() to public"
Treehugger Robot [Fri, 8 Mar 2019 10:38:47 +0000 (10:38 +0000)]
Merge "Change BluetoothCodecStatus.sameCapabilities() to public"

5 years agoMerge "Not to use any() to verify DataStallDetectionStats"
Treehugger Robot [Fri, 8 Mar 2019 09:26:05 +0000 (09:26 +0000)]
Merge "Not to use any() to verify DataStallDetectionStats"

5 years agoIPv6: enable IPv6 link local routing for local network
Jimmy Chen [Thu, 7 Mar 2019 06:15:36 +0000 (14:15 +0800)]
IPv6: enable IPv6 link local routing for local network

IPv6 link local is an automatically configured address. The routing should be
activated regardless of the DHCP service.

Bug: 126063997
Test: Unit tests - atest FrameworksNetTests
Test: Unit tests - atest FrameworksWifiTests
Test: * DUT1 enables hotspot
      * DUT2 associates to DUT1
      * use ping6 to verify the local link on both side
Test: * DUT1 creates a P2P group
      * DUT2 joins this group as a legacy client
      * use ping6 to verify the local link on both side

Change-Id: I102bf29e8da14808097e43c840d74d41b6b3758f

5 years agoNot to use any() to verify DataStallDetectionStats
Chiachang Wang [Fri, 8 Mar 2019 06:34:19 +0000 (14:34 +0800)]
Not to use any() to verify DataStallDetectionStats

Build a empty DataStallDetectionStats object instead of use
any() to do the verification to prevent NPE while trying to
write the metrics.

Bug: 120452078
Test: atest NetworkStackTests
Change-Id: Ib9f3e56195a539a5ca4826b4aad0e38945a9a3a7

5 years agoMerge "Minor changes to the async DNS query JAVA API"
Luke Huang [Fri, 8 Mar 2019 03:19:55 +0000 (03:19 +0000)]
Merge "Minor changes to the async DNS query JAVA API"

5 years agoMerge "Add more nullability annotations"
Treehugger Robot [Fri, 8 Mar 2019 03:16:43 +0000 (03:16 +0000)]
Merge "Add more nullability annotations"

5 years agoMerge "Support VPN Proxy(1/2)"
Chalard Jean [Fri, 8 Mar 2019 00:34:25 +0000 (00:34 +0000)]
Merge "Support VPN Proxy(1/2)"

5 years agoMerge "fix 'int android.view.View.getHeight()' on a null object reference"
Treehugger Robot [Fri, 8 Mar 2019 00:19:39 +0000 (00:19 +0000)]
Merge "fix 'int android.view.View.getHeight()' on a null object reference"

5 years agoMerge changes Ie66ba631,Ic42c09a3
Benedict Wong [Thu, 7 Mar 2019 23:32:55 +0000 (23:32 +0000)]
Merge changes Ie66ba631,Ic42c09a3

* changes:
  Implement TestNetworkService
  Add shell TestNetworkManager and Service

5 years agoMerge "Move Camera.EventHandler constructor to greylist"
Treehugger Robot [Thu, 7 Mar 2019 23:16:40 +0000 (23:16 +0000)]
Merge "Move Camera.EventHandler constructor to greylist"

5 years agoMerge "Add @NonNull annotations to Hearing Aids Profile APIs"
Treehugger Robot [Thu, 7 Mar 2019 22:59:06 +0000 (22:59 +0000)]
Merge "Add @NonNull annotations to Hearing Aids Profile APIs"

5 years agoMerge "Adding callback for setPreferredDataSubscriptionId."
Xiangyu/Malcolm Chen [Thu, 7 Mar 2019 22:47:31 +0000 (22:47 +0000)]
Merge "Adding callback for setPreferredDataSubscriptionId."

5 years agoMerge "Fix NPE in SmsManager and keep existing behavior"
Brad Ebinger [Thu, 7 Mar 2019 22:27:19 +0000 (22:27 +0000)]
Merge "Fix NPE in SmsManager and keep existing behavior"

5 years agoMerge "Add nullability annotations in accordance with the council"
Brad Ebinger [Thu, 7 Mar 2019 21:14:18 +0000 (21:14 +0000)]
Merge "Add nullability annotations in accordance with the council"

5 years agoMerge "Add CarrierConfig to use WFC home network mode in roaming network"
Brad Ebinger [Thu, 7 Mar 2019 21:11:51 +0000 (21:11 +0000)]
Merge "Add CarrierConfig to use WFC home network mode in roaming network"

5 years agoMerge "Add @NonNull annotations to (un)setOffHostForService()"
Treehugger Robot [Thu, 7 Mar 2019 20:07:16 +0000 (20:07 +0000)]
Merge "Add @NonNull annotations to (un)setOffHostForService()"

5 years agoRename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE
Malcolm Chen [Fri, 15 Feb 2019 03:50:19 +0000 (19:50 -0800)]
Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE

Redefine a PhoneStateListener event so that it reflects which
subscription is currently being used for Internet data. It could
be default user data subscription or currently active opportunistic
subscription.

Bug: 124260187
Test: unittest
Change-Id: Icb90b5bd93845c29157cafddcd53335728638ec2
Merged-In: Icb90b5bd93845c29157cafddcd53335728638ec2

5 years agoMove Camera.EventHandler constructor to greylist
David Brazdil [Thu, 7 Mar 2019 17:41:03 +0000 (17:41 +0000)]
Move Camera.EventHandler constructor to greylist

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 122331906
Test: m appcompat
Change-Id: I3abc8221706bd69668c90aa61b8ca5f137a88bb9

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 17:26:15 +0000 (17:26 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 17:26:09 +0000 (17:26 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add a null check for getWindow()"
Treehugger Robot [Thu, 7 Mar 2019 17:02:00 +0000 (17:02 +0000)]
Merge "Add a null check for getWindow()"

5 years agoMerge "Add target for generating aidl mappings"
Andrei-Valentin Onea [Thu, 7 Mar 2019 16:31:14 +0000 (16:31 +0000)]
Merge "Add target for generating aidl mappings"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 16:30:32 +0000 (16:30 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Exclude Emergency Dialer from recent app list."
Treehugger Robot [Thu, 7 Mar 2019 13:43:36 +0000 (13:43 +0000)]
Merge "Exclude Emergency Dialer from recent app list."

5 years agoMerge "Fix TetheringEntitlementValueListener related API"
Mark Chien [Thu, 7 Mar 2019 13:21:53 +0000 (13:21 +0000)]
Merge "Fix TetheringEntitlementValueListener related API"

5 years agoExclude Emergency Dialer from recent app list.
Leo Hsu [Wed, 6 Mar 2019 07:25:28 +0000 (15:25 +0800)]
Exclude Emergency Dialer from recent app list.

Emergency Dialer should not show up in recent app list.

Bug: 112168722
Bug: 127585929
Test: Long press power key, tap Emergency, quit Emergency Dialer, and
check recent app list.
Change-Id: I2fe917d16ab23de6e82f9cad7b064e2837ec6490
Merged-In: I2fe917d16ab23de6e82f9cad7b064e2837ec6490

5 years agoAdd extra hidden api related tags
Andrei Onea [Fri, 1 Mar 2019 18:49:15 +0000 (18:49 +0000)]
Add extra hidden api related tags

@SystemApi and @TestApi entries in the whitelist can now be
differentiated from the rest of the apis. @TestApi methods
are implicitly greylisted.

Test: m test-art-host-gtest-hiddenapi_test
Change-Id: Id739f04550842f7b3160685e1635ba20efb223cc

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Thu, 7 Mar 2019 10:20:28 +0000 (10:20 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Do not call noteOp if checkPermission fails"
Treehugger Robot [Thu, 7 Mar 2019 08:56:39 +0000 (08:56 +0000)]
Merge "Do not call noteOp if checkPermission fails"

5 years agoMinor changes to the async DNS query JAVA API
Luke Huang [Wed, 23 Jan 2019 13:53:13 +0000 (21:53 +0800)]
Minor changes to the async DNS query JAVA API

1. refine the naming in DnsPacket and add more comment
2. add comment in DnsResolver

Test: built, flashed, booted
      atest DnsResolverTest DnsPacketTest

Change-Id: Ib482d079d6823fd1d9bff163427b7aad38374199

5 years agoMerge "Migrate frameworks/base/tests/net/ to androidx.test"
Treehugger Robot [Thu, 7 Mar 2019 05:42:07 +0000 (05:42 +0000)]
Merge "Migrate frameworks/base/tests/net/ to androidx.test"

5 years agoFix TetheringEntitlementValueListener related API
markchien [Wed, 6 Mar 2019 08:25:00 +0000 (16:25 +0800)]
Fix TetheringEntitlementValueListener related API

Test: -build, flash, boot
      -atest FrameworksNetTests
bug: 126701557
bug: 126392011

Change-Id: I6dda10fbfe8ffaef71269617750a22563396f5ea

5 years agoMerge "Fix SocketUtils API"
Remi NGUYEN VAN [Thu, 7 Mar 2019 03:54:22 +0000 (03:54 +0000)]
Merge "Fix SocketUtils API"

5 years agoMerge "add NonNull annotation to API"
Treehugger Robot [Thu, 7 Mar 2019 01:07:34 +0000 (01:07 +0000)]
Merge "add NonNull annotation to API"

5 years agoMerge "API tweaks"
Hall Liu [Thu, 7 Mar 2019 00:11:31 +0000 (00:11 +0000)]
Merge "API tweaks"

5 years agoImplement TestNetworkService
Benedict Wong [Thu, 15 Nov 2018 01:53:19 +0000 (17:53 -0800)]
Implement TestNetworkService

This change adds the relevant JNI implementations, as well as the
implementations and NetworkAgent tracking code in the TestNetworkService.

TestNetworkService (And Manager) is designed for use exclusively in
testing code, allowing for the creation of TUN and IPsec backed networks
in test code. Specifically, this allows for testing of components such
as IP, DHCP, or DNS clients, as well as kernel features such as IPsec.

Access to the TestNetworkService will be conditioned upon the
MANAGE_TEST_NETWORKS permission that will be granted only to the Shell.
CTS will use UiAutomation.adoptShellPermissionIdentity() to gain the
ability to use this service.

Bug: 72950854
Test: CTS tests passing
Change-Id: Ie66ba631a548b5f9c6b5ed0797582f86688debe5

5 years agoAdd CarrierConfig to use WFC home network mode in roaming network
Hiroto Tarui [Thu, 14 Feb 2019 05:37:09 +0000 (14:37 +0900)]
Add CarrierConfig to use WFC home network mode in roaming network

Add a config whether the carrier will use the WFC home network mode in
roaming netork.

Test: manual - Checked that use the WFC mode according to CarrierConfig
value.
Bug: 79666081

Merged-In: I19fd3818c97db2565e13c5272c5307deef1331d1
Change-Id: I19fd3818c97db2565e13c5272c5307deef1331d1

5 years agoFix NPE in SmsManager and keep existing behavior
Brad Ebinger [Wed, 6 Mar 2019 22:32:28 +0000 (14:32 -0800)]
Fix NPE in SmsManager and keep existing behavior

The behavior of SmsManager#sendTextMessage changed,
we are blocking the sending of the SMS if there were no
subscriptions (i.e. no SIM scenario). This change
accidently introduced a NPE scenario in some cases.

Fixed NPE and removed SMS blocking code in SmsManager
to keep existing functionality the same.

Bug: 127338050
Test: atest GtsTelephonyTestCases
Change-Id: I71eefbc8e1619701e1b1d7b12c3c080c4ef376ef

5 years agoMerge "Reset callNetworkType and CallQuality after calls"
Treehugger Robot [Wed, 6 Mar 2019 23:28:33 +0000 (23:28 +0000)]
Merge "Reset callNetworkType and CallQuality after calls"

5 years agoAdding callback for setPreferredDataSubscriptionId.
Malcolm Chen [Wed, 6 Feb 2019 01:19:48 +0000 (17:19 -0800)]
Adding callback for setPreferredDataSubscriptionId.

The purpose is to provide a way to return success or failure upon
switching data to CBRS subscription.
The same callback is used for ONS to call internal API. Later it
will also be used by Carrier apps to call TelephonyManager#
setPreferredOpportunisticDataSubscription.

Bug: 122255288
Test: manual

Change-Id: Id3f43e024c902d6785017e7866f9e804a486b04f
Merged-In: Id3f43e024c902d6785017e7866f9e804a486b04f

5 years agoMerge "Add Nullable/NonNull Annotations where appropriate."
Brad Ebinger [Wed, 6 Mar 2019 22:47:58 +0000 (22:47 +0000)]
Merge "Add Nullable/NonNull Annotations where appropriate."

5 years agoUpdate DynamicAndroidService for IGsiService AIDL changes.
David Anderson [Wed, 27 Feb 2019 21:45:34 +0000 (13:45 -0800)]
Update DynamicAndroidService for IGsiService AIDL changes.

Bug: 125540538
Test: framework builds
Change-Id: I7c7f5053d02b231c4d987a145034683ff325e276

5 years agoAdd TimeStamp Constructor for HAL 1.4 Support
Nathan Harold [Mon, 4 Mar 2019 23:15:24 +0000 (15:15 -0800)]
Add TimeStamp Constructor for HAL 1.4 Support

Becuase the Timestamp is no longer passed by the
radio, CellInfo objects are stamped when received
by the RIL. Since the structure passed to these
constructors is a HAL structure, we have to pass the
timestamp all the way through to have it supported
for constructors invoked on a 1.4 HAL object.

Bug: 126911026
Test: atest RILTest#testCellInfoTimestamp_1_4;
      atest RILTest#testCellInfoTimestamp_1_2
Change-Id: I2b0833a0a8b6eeb75bff9cbe956ad36656a46208

5 years agoMerge "[API Feedback] Rename getChannelNumber to getNrarfcn"
Pengquan Meng [Wed, 6 Mar 2019 21:52:32 +0000 (21:52 +0000)]
Merge "[API Feedback] Rename getChannelNumber to getNrarfcn"

5 years agoDo not call noteOp if checkPermission fails
Chad Brubaker [Wed, 6 Mar 2019 00:40:33 +0000 (16:40 -0800)]
Do not call noteOp if checkPermission fails

This causes an access to be logged for runtime permissions even if the
permission is denied, which is incorrect.

Fixes: 127297477
Bug: 116258458
Test: Verified using steps in b/127297477
Change-Id: I8306aa273b7d4dfab40a2a6d8d1ef6f4d8cc2c54

5 years agoMerge "Move Annotations for getCellSignalStrengths"
Nathan Harold [Wed, 6 Mar 2019 21:41:18 +0000 (21:41 +0000)]
Merge "Move Annotations for getCellSignalStrengths"

5 years agoMerge "Add carrier config for 5G Icon"
Pengquan Meng [Wed, 6 Mar 2019 21:36:46 +0000 (21:36 +0000)]
Merge "Add carrier config for 5G Icon"

5 years agoAdd nullability annotations in accordance with the council
Brad Ebinger [Wed, 6 Mar 2019 19:32:42 +0000 (11:32 -0800)]
Add nullability annotations in accordance with the council

Bug: 126702532
Test: atest FrameworksTelephonyTests
Change-Id: I7c3707d7599ec0e2a1d1ec2e70588765aea5d069

5 years agoMerge "Added secondary owners on per-file entries."
Treehugger Robot [Wed, 6 Mar 2019 20:51:42 +0000 (20:51 +0000)]
Merge "Added secondary owners on per-file entries."

5 years agoMerge "NativeHandle.java: set Nullable/NonNull"
Steven Moreland [Wed, 6 Mar 2019 20:02:57 +0000 (20:02 +0000)]
Merge "NativeHandle.java: set Nullable/NonNull"

5 years agoAPI tweaks
Hall Liu [Wed, 27 Feb 2019 01:58:53 +0000 (17:58 -0800)]
API tweaks

* Make the PhoneAccountSuggestion ctor public
* Change protection level of the bind-suggestion-service permission to
signature-only.

Fixes: 126442573
Fixes: 126442403
Test: CTS
Change-Id: Ic6d44989efd28420a5e9e7e9c365318538d140bb

5 years agoMove Annotations for getCellSignalStrengths
Nathan Harold [Wed, 6 Mar 2019 19:10:40 +0000 (11:10 -0800)]
Move Annotations for getCellSignalStrengths

As per API council script's feedback, the scripts
do not support having nullable annotations preceding
the return tupe. Moving the @NonNull annotations to a
script friendly location.

Bug: 126700393
Test: make update-api && make
      && make offline-sdk-docs (no functional change)
Change-Id: Ie063ffa2e311f4eb7d9e07cd5ee212af97d9d45d

5 years agoAdd carrier config for 5G Icon
Pengquan Meng [Thu, 6 Dec 2018 00:26:42 +0000 (16:26 -0800)]
Add carrier config for 5G Icon

Bug: 111453000
Test: build
Merged-In: Ie4b331aaec3981dea0eeada436a2123fe9287b74
Change-Id: Ie4b331aaec3981dea0eeada436a2123fe9287b74

5 years agoMerge "disallow changing from multi-sim to single-sim for carrier apps"
Nazanin Bakhshi [Wed, 6 Mar 2019 19:10:58 +0000 (19:10 +0000)]
Merge "disallow changing from multi-sim to single-sim for carrier apps"

5 years agoAdd a null check for getWindow()
Siarhei Vishniakou [Tue, 5 Mar 2019 18:05:01 +0000 (10:05 -0800)]
Add a null check for getWindow()

Protect against crash surfaced by monkey, where it seems that the window
of the dialog is no longer present. If not present, don't need to post
dismiss runnable.

Bug: 124327419
Test: adb shell monkey -p com.google.android.GoogleCamera -s 999 -v 20000
Change-Id: Ic03b8501bb73725e04544fcb2397532be531988e

5 years agoAdd carrier config key for TTY support.
Tyler Gunn [Mon, 25 Feb 2019 18:42:45 +0000 (10:42 -0800)]
Add carrier config key for TTY support.

Add carrier config key to determine if a carrier supports TTY.

Bug: 116764319
Test: Manual; turned off key and observed settings doesn't show TTY.
Test: Manual; turned on key (default) and observed settings does show TTY.
Change-Id: I9dff154740213ff9627c0cc07452f0b22b59e8f6

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Wed, 6 Mar 2019 18:01:47 +0000 (18:01 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Wed, 6 Mar 2019 17:19:05 +0000 (17:19 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Wed, 6 Mar 2019 17:18:05 +0000 (17:18 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoAdd @NonNull annotations to Hearing Aids Profile APIs
Stanley Tng [Thu, 28 Feb 2019 20:22:45 +0000 (12:22 -0800)]
Add @NonNull annotations to Hearing Aids Profile APIs

Bug: 126699327
Bug: 119617521
Test: Ran with CTS tests for Hearing Aids Profile, android.bluetooth.cts.HearingAidProfileTest
Change-Id: If83052a68c867d839e263f490592b80bef513a01

5 years agoNativeHandle.java: set Nullable/NonNull
Steven Moreland [Tue, 5 Mar 2019 01:56:30 +0000 (17:56 -0800)]
NativeHandle.java: set Nullable/NonNull

Fixes: 126700972
Test: hidl_test_java
Test: atest android.os.cts.HwBinderTest
Change-Id: Id45c6d0757913014028f7629db78b64f27cad084

5 years agoMerge "Add @UnsupportedAppUsage annotations"
Andrei-Valentin Onea [Wed, 6 Mar 2019 17:17:27 +0000 (17:17 +0000)]
Merge "Add @UnsupportedAppUsage annotations"

5 years agoAdded secondary owners on per-file entries.
Felipe Leme [Wed, 6 Mar 2019 17:10:27 +0000 (09:10 -0800)]
Added secondary owners on per-file entries.

Test: none
Bug: 126945732

Change-Id: I4b9786c9b01993f230f962a54e08127684b3289e

5 years agoAdd @UnsupportedAppUsage annotations
Andrei Onea [Wed, 6 Mar 2019 15:17:47 +0000 (15:17 +0000)]
Add @UnsupportedAppUsage annotations

For packages:
  android.accounts
  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
Merged-In: I65c961e3f59b9868156b3ee6a3b1cab81b0e9d25
Change-Id: I47b5f45ced1c6e385ed24424e442c76fc0487af7

5 years agoAdd @UnsupportedAppUsage annotations
Andrei Onea [Wed, 6 Mar 2019 15:41:14 +0000 (15:41 +0000)]
Add @UnsupportedAppUsage annotations

For packages:
  android.speech
  android.telephony.mbms.vendor
  android.view
  android.webkit

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
Merged-In: Iefe25091fa0fcc0adfe4ff85fe5e3ab3ac9c5f10
Change-Id: I04104cf3852a0a7440676ccc55dd96c1eec730c4

5 years agoAdd @UnsupportedAppUsage annotations
Andrei Onea [Wed, 6 Mar 2019 15:33:03 +0000 (15:33 +0000)]
Add @UnsupportedAppUsage annotations

For packages:
  android.database
  android.hardware.display
  android.hardware.input
  android.hardware.location
  android.location
  android.media
  android.media.projection
  android.media.tv

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
Merged-In: I570c08292f8a9f512c96f9dce13f5337718f112c
Change-Id: I1d6c60fcb53f404d5775163bf6929395921f5a45

5 years agoMerge "apilint: Lint unhidden @IntDef and @LongDef"
Adrian Roos [Wed, 6 Mar 2019 12:43:55 +0000 (12:43 +0000)]
Merge "apilint: Lint unhidden @IntDef and @LongDef"

5 years agoapilint: Lint unhidden @IntDef and @LongDef
Adrian Roos [Wed, 6 Mar 2019 12:38:10 +0000 (13:38 +0100)]
apilint: Lint unhidden @IntDef and @LongDef

@IntDefs and @LongDefs cannot be stored in a .class file, because the constant
names are lost. Instead, they are packaged out-of-band.

Therefore, they should never be in the API.

Test: python tools/apilint/apilint.py api/current.txt
Change-Id: If22e0cf7db0bb90dae6174bf546f2ec8be4e5458

5 years agoMerge "Add permission and permission.xsd"
Treehugger Robot [Wed, 6 Mar 2019 11:49:03 +0000 (11:49 +0000)]
Merge "Add permission and permission.xsd"

5 years agoMerge "Add default-permissions"
Sundong Ahn [Wed, 6 Mar 2019 10:04:12 +0000 (10:04 +0000)]
Merge "Add default-permissions"

5 years agoMerge "Revert "API tweaks""
Wei Sheng Shih [Wed, 6 Mar 2019 09:32:11 +0000 (09:32 +0000)]
Merge "Revert "API tweaks""

5 years agoRevert "API tweaks"
Wei Sheng Shih [Wed, 6 Mar 2019 09:15:17 +0000 (09:15 +0000)]
Revert "API tweaks"

This reverts commit f3e0eb8b0c9e334138b0e663dfb498e34144877b.

Reason for revert: Droid Cop revert this CL due to it cause Cts fail on PermissionPolicyTest.testPlatformPermissionPolicyUnaltered

Change-Id: I062b2b9f25dbf388940930a81fd8e036b82b7f45

5 years agoFix SocketUtils API
Remi NGUYEN VAN [Wed, 6 Mar 2019 09:02:34 +0000 (18:02 +0900)]
Fix SocketUtils API

 - connect, sendTo, bind were added as public API, so do not need to be
   maintained as SystemApi in SocketUtils. These APIs were added in Q
   timeframe.
 - Add @Nullable/@NonNull annotations.

Bug: 126699304
Bug: 126477266
Test: booted, WiFi works
Change-Id: I3f086ac8952cfd6a4d8f861d2e1c7aa1ca8be999

5 years agoAdd permission and permission.xsd
Sundong Ahn [Thu, 3 Jan 2019 02:52:04 +0000 (11:52 +0900)]
Add permission and permission.xsd

This module is for API check of java file generated from
permission.xsd

Bug: 80453829
Test: m -j
Change-Id: Ie70693400a6c9b261c8b1ca6197206ac3d17a271

5 years agoAdd default-permissions
Sundong Ahn [Thu, 3 Jan 2019 08:37:10 +0000 (17:37 +0900)]
Add default-permissions

This module is for API check of java file generated from
default-permissions.xsd

Bug: 80453829
Test: m -j
Change-Id: Ic2d6b9a64ceb19711ce6f3fb2da0f1f01d17ebc5

5 years agoMerge "migrate cdma home eri from resource overlay to carrierconfig"
Chen Xu [Wed, 6 Mar 2019 04:58:36 +0000 (04:58 +0000)]
Merge "migrate cdma home eri from resource overlay to carrierconfig"

5 years agoMerge "migrate cdma home eri from resource overlay to carrierconfig"
Chen Xu [Wed, 6 Mar 2019 02:50:20 +0000 (02:50 +0000)]
Merge "migrate cdma home eri from resource overlay to carrierconfig"

5 years agomigrate cdma home eri from resource overlay to carrierconfig
chen xu [Sat, 9 Feb 2019 01:40:33 +0000 (17:40 -0800)]
migrate cdma home eri from resource overlay to carrierconfig

Bug: 121145488
Test: Build
Change-Id: I1ec160883282c8819727d3d56c909d9a1c7fd5d2
(cherry picked from commit eb07e4ebff8c53f1e183b3de8499c5b0bf92c1f9)
Merged-in: I1ec160883282c8819727d3d56c909d9a1c7fd5d2

5 years agoMerge "Update description based on API feedback"
Chiachang Wang [Wed, 6 Mar 2019 00:49:20 +0000 (00:49 +0000)]
Merge "Update description based on API feedback"

5 years agoAdd Nullable/NonNull Annotations where appropriate.
Brad Ebinger [Thu, 28 Feb 2019 21:10:32 +0000 (13:10 -0800)]
Add Nullable/NonNull Annotations where appropriate.

Bug: 126701249
Bug: 126701136
Bug: 126701236
Bug: 126700627
Bug: 126702224
Test: atest FrameworksTelephonyTests
Merged-In: I4cfba9dee766fa9d34f578db4143919c3f203a20
Change-Id: I4cfba9dee766fa9d34f578db4143919c3f203a20

5 years agomigrate cdma home eri from resource overlay to carrierconfig
chen xu [Thu, 28 Feb 2019 21:50:23 +0000 (13:50 -0800)]
migrate cdma home eri from resource overlay to carrierconfig

remove config from resource overlay

Bug: 121145488
Test: Manual
Change-Id: Idd11441e1a6d79954aa1bdb0f93a3567aaf2ecc1
(cherry picked from commit 4933ef2310a45a5d24b1f1cd2533382c5e96487f)
Merged-in: Idd11441e1a6d79954aa1bdb0f93a3567aaf2ecc1

5 years agodisallow changing from multi-sim to single-sim for carrier apps
Nazanin Bakhshi [Fri, 1 Mar 2019 19:54:41 +0000 (11:54 -0800)]
disallow changing from multi-sim to single-sim for carrier apps

Bug: 125122645
Test: build
Change-Id: Ie422577e1f710b033ed85caed9a3e864aadff061
Merged-In: Ie422577e1f710b033ed85caed9a3e864aadff061
(cherry picked from commit 36ede9a2e66a83464590e8998ebdd4bc6feaf240)

5 years agoMerge "create getModemEnabled function in PhoneConfigurationManager"
Nazanin Bakhshi [Tue, 5 Mar 2019 22:07:17 +0000 (22:07 +0000)]
Merge "create getModemEnabled function in PhoneConfigurationManager"

5 years agoMerge "Fix that the update to v1 signed version fails if apk verity is enabled"
Treehugger Robot [Tue, 5 Mar 2019 21:33:25 +0000 (21:33 +0000)]
Merge "Fix that the update to v1 signed version fails if apk verity is enabled"

5 years agoMerge changes from topic "iwlan_api"
Jack Yu [Tue, 5 Mar 2019 21:26:30 +0000 (21:26 +0000)]
Merge changes from topic "iwlan_api"

* changes:
  Added annotations to the APIs
  Fixed IWLAN related APIs issue

5 years agoMerge "API tweaks"
Hall Liu [Tue, 5 Mar 2019 21:18:40 +0000 (21:18 +0000)]
Merge "API tweaks"

5 years agoMerge "fix the issue that sending wrong preferred networktype to RIL"
Chen Xu [Tue, 5 Mar 2019 21:10:41 +0000 (21:10 +0000)]
Merge "fix the issue that sending wrong preferred networktype to RIL"

5 years agofix the issue that sending wrong preferred networktype to RIL
chen xu [Tue, 5 Mar 2019 01:19:48 +0000 (17:19 -0800)]
fix the issue that sending wrong preferred networktype to RIL

Bug: 126805258
Test: Manual
Change-Id: Ifb1fc21423a09f0d000553d4d06bafa023adc9d6
Merged-in: Ifb1fc21423a09f0d000553d4d06bafa023adc9d6