OSDN Git Service

android-x86/frameworks-base.git
5 years agonew system API getRadioAccessFamily
chen xu [Thu, 25 Oct 2018 00:12:28 +0000 (17:12 -0700)]
new system API getRadioAccessFamily

1. new API in telephonyManager to getRadioAccessFamily
2. define bitmask for radioAccessFamily based on NetworkType because
we don't want to expose two sets of definition RIL_RADIO and Network
type together in public API surface
3. convert definition to NetworkType

Bug: 118351153
Test: telehony unit test
Change-Id: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
Merged-in: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c

5 years agoMerge "Revert "Revert "Telephony light grey list clean up for Q"""
Chen Xu [Mon, 29 Oct 2018 17:20:48 +0000 (17:20 +0000)]
Merge "Revert "Revert "Telephony light grey list clean up for Q"""

5 years agoMerge "Add statsdprotolite in Android.bp"
Gopinath Elanchezhian [Mon, 29 Oct 2018 17:14:46 +0000 (17:14 +0000)]
Merge "Add statsdprotolite in Android.bp"

5 years agoMerge "Refactor UidRange by using stable aidl structure"
Treehugger Robot [Mon, 29 Oct 2018 00:17:34 +0000 (00:17 +0000)]
Merge "Refactor UidRange by using stable aidl structure"

5 years agoMerge "Refine firewall-related commands"
Luke Huang [Mon, 29 Oct 2018 00:16:30 +0000 (00:16 +0000)]
Merge "Refine firewall-related commands"

5 years agoMerge "allow statsd pull based on event trigger."
Treehugger Robot [Sat, 27 Oct 2018 03:51:31 +0000 (03:51 +0000)]
Merge "allow statsd pull based on event trigger."

5 years agoRevert "Revert "Telephony light grey list clean up for Q""
Chen Xu [Mon, 22 Oct 2018 16:54:39 +0000 (16:54 +0000)]
Revert "Revert "Telephony light grey list clean up for Q""

This reverts commit bab59cb9db0fe98550d12f03e210e3bc0efc775d.

Reason for revert: Put maxTargetSdk=P now will move APIs onto light greylist
because per-SDK versioned dark greylist is not yet supported by ART. We can
keep doing annotation work without breaking existing apps targeting on P.

Bug:117934933
Bug:112477300

Change-Id: I5e0e693dde49fac3044cd73fd6360c4485f312ec
Merged-in: I5e0e693dde49fac3044cd73fd6360c4485f312ec

5 years agoAdd statsdprotolite in Android.bp
gopinath [Fri, 26 Oct 2018 23:00:34 +0000 (16:00 -0700)]
Add statsdprotolite in Android.bp

Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5c27f3017be043b6809699158a94b32155163535
Merged-In: I857957e816506162496192fe0ad1da4dbdfd4efd

5 years agoallow statsd pull based on event trigger.
gopinath [Fri, 26 Oct 2018 22:20:18 +0000 (15:20 -0700)]
allow statsd pull based on event trigger.

Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5a40d5e6a409b65ca1639029d5da83c327ed1798
Merged-In: Ia15b1f209945f022edffb9ec5d673317d55d9e4f

5 years agoMerge "ConnectivityService: make log configurable"
Chalard Jean [Fri, 26 Oct 2018 06:06:19 +0000 (06:06 +0000)]
Merge "ConnectivityService: make log configurable"

5 years agoMerge "No-op refactoring of VPN lockdown status check."
Junyu Lai [Fri, 26 Oct 2018 05:35:28 +0000 (05:35 +0000)]
Merge "No-op refactoring of VPN lockdown status check."

5 years agoMerge "Update test cases for HarfBuzz 2.0.2"
Treehugger Robot [Fri, 26 Oct 2018 05:19:41 +0000 (05:19 +0000)]
Merge "Update test cases for HarfBuzz 2.0.2"

5 years agoMerge "Move Binder.clearCallingIdentity"
Hall Liu [Fri, 26 Oct 2018 01:35:24 +0000 (01:35 +0000)]
Merge "Move Binder.clearCallingIdentity"

5 years agoMerge "Add @NonNull in SubMgr#getOpportunisticSubscriptions return value."
Xiangyu/Malcolm Chen [Fri, 26 Oct 2018 01:30:21 +0000 (01:30 +0000)]
Merge "Add @NonNull in SubMgr#getOpportunisticSubscriptions return value."

5 years agoUpdate test cases for HarfBuzz 2.0.2
Seigo Nonaka [Thu, 25 Oct 2018 21:55:12 +0000 (21:55 +0000)]
Update test cases for HarfBuzz 2.0.2

Now HarfBuzz combines chars with ZWJ into single cluster

This is 2nd attempt of Ic642c469aab90a2ecd3874cf0dec82625ea21c1b

Bug: 117953171
Test: TreeHugger
Change-Id: I7e731500e71c1973c254ede0f316fc36e3c22576
Merged-In: I531b7a5f5727540d6d11db619eeba6eb23fb113d

5 years agoMerge "Set default value to false for show4GForLte"
Pengquan Meng [Thu, 25 Oct 2018 20:47:41 +0000 (20:47 +0000)]
Merge "Set default value to false for show4GForLte"

5 years agoMerge "Revert "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE""
Seigo Nonaka [Thu, 25 Oct 2018 18:26:33 +0000 (18:26 +0000)]
Merge "Revert "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE""

5 years agoRevert "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE"
Seigo Nonaka [Thu, 25 Oct 2018 18:23:32 +0000 (18:23 +0000)]
Revert "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE"

This reverts commit 155951f2f6080d87e6cca6698e63ecb58641442d.

Reason for revert: broke test in pi-dev/stage-aosp-master

Change-Id: I917e170b570b89ba2e8a26cec0bf0a8adf577b80

5 years agoMerge "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE"
Treehugger Robot [Thu, 25 Oct 2018 16:42:11 +0000 (16:42 +0000)]
Merge "Update test cases for HarfBuzz 2.0.2 DO NOT MERGE"

5 years agoMerge "Import translations. DO NOT MERGE"
Treehugger Robot [Thu, 25 Oct 2018 10:36:36 +0000 (10:36 +0000)]
Merge "Import translations. DO NOT MERGE"

5 years agoMerge "Add more debug log when onBlockedStatusChanged was called."
Junyu Lai [Thu, 25 Oct 2018 08:57:56 +0000 (08:57 +0000)]
Merge "Add more debug log when onBlockedStatusChanged was called."

5 years agoNo-op refactoring of VPN lockdown status check.
junyulai [Thu, 25 Oct 2018 02:56:17 +0000 (10:56 +0800)]
No-op refactoring of VPN lockdown status check.

Currently, if VPN lockdown is disabled, the blocking judgement
inside VPN will return false immediately. It will make
ConnectivityService hard to check blocked status by a given
VPN lockdown status.

Thus, move this check into ConnectivityService and check it
externally.

Bug: 117814902
Test: 1. manual test with 3rd-party vpn app
      2. runtest frameworks-net

Change-Id: Ia8319b1a1a12f1058c24badf2431f2ec69bc78e7

5 years agoAdd more debug log when onBlockedStatusChanged was called.
junyulai [Wed, 24 Oct 2018 14:38:06 +0000 (22:38 +0800)]
Add more debug log when onBlockedStatusChanged was called.

Bug: 118355916
Test: 1. runtest frameworks-net
      2. enable/disable battery saver

Change-Id: I6d5f9b49be0defd531fc7ea824668bec7863c4b7

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Oct 2018 06:18:42 +0000 (23:18 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ie2e07cbd6d038a83b2f05b315b647a35872f6daf
Auto-generated-cl: translation import

5 years agoRefine firewall-related commands
Luke Huang [Thu, 25 Oct 2018 02:54:05 +0000 (11:54 +0900)]
Refine firewall-related commands

Test: runtest frameworks-net passes
Test: manual testing of firewall works
Change-Id: I272bb54ffcde72d04cbcf550e31dafeeb00f1ce2

5 years agoMerge "Add keys to retrieve color aspects from metadata"
Chong Zhang [Thu, 25 Oct 2018 02:04:48 +0000 (02:04 +0000)]
Merge "Add keys to retrieve color aspects from metadata"

5 years agoMerge "Color aspects keys information stored database"
Chong Zhang [Thu, 25 Oct 2018 02:04:48 +0000 (02:04 +0000)]
Merge "Color aspects keys information stored database"

5 years agoMerge "Define RIL_REQUEST_SET_PREFERRED_DATA_MODEM."
Xiangyu/Malcolm Chen [Thu, 25 Oct 2018 01:37:34 +0000 (01:37 +0000)]
Merge "Define RIL_REQUEST_SET_PREFERRED_DATA_MODEM."

5 years agoMerge "Firewall-related commands porting"
Luke Huang [Thu, 25 Oct 2018 00:20:12 +0000 (00:20 +0000)]
Merge "Firewall-related commands porting"

5 years agoSet default value to false for show4GForLte
Pengquan Meng [Wed, 24 Oct 2018 22:43:44 +0000 (15:43 -0700)]
Set default value to false for show4GForLte

Bug: 118375031
Test: build
Change-Id: I542bfcbf5e88748321f75bdf3bdd5faa214360ea

5 years agoDefine RIL_REQUEST_SET_PREFERRED_DATA_MODEM.
Malcolm Chen [Mon, 8 Oct 2018 21:18:30 +0000 (14:18 -0700)]
Define RIL_REQUEST_SET_PREFERRED_DATA_MODEM.

Bug: 80268699
Test: unittest
Change-Id: Ifda606784f97c1bfa03fb424fd488bb0b5e6ebec
Merged-In: Ifda606784f97c1bfa03fb424fd488bb0b5e6ebec

5 years agoMerge pie-platform-release to aosp-master - DO NOT MERGE
Bill Yi [Wed, 24 Oct 2018 21:48:44 +0000 (14:48 -0700)]
Merge pie-platform-release to aosp-master - DO NOT MERGE

Change-Id: I695db52f5e22509401258e8b083e7650d401d993

5 years agoMerge "Remove obsolete @VisibleForTesting Annotation"
Brad Ebinger [Wed, 24 Oct 2018 20:15:35 +0000 (20:15 +0000)]
Merge "Remove obsolete @VisibleForTesting Annotation"

5 years agoMerge "ImsSsData needs a public constructor for vendors to use"
Brad Ebinger [Wed, 24 Oct 2018 17:08:39 +0000 (17:08 +0000)]
Merge "ImsSsData needs a public constructor for vendors to use"

5 years agoMerge "Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting""
Youming Ye [Wed, 24 Oct 2018 16:26:21 +0000 (16:26 +0000)]
Merge "Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting""

5 years agoMerge "[Call Screening]Support for carrier call screening app"
Tony Zhu [Wed, 24 Oct 2018 15:51:48 +0000 (15:51 +0000)]
Merge "[Call Screening]Support for carrier call screening app"

5 years agoRefactor UidRange by using stable aidl structure
Luke Huang [Fri, 19 Oct 2018 06:57:05 +0000 (15:57 +0900)]
Refactor UidRange by using stable aidl structure

Use stable aidl generated structure instead of UidRange

Test: runtest frameworks-net passes
Test: manual testing of UidRange related function works
Change-Id: Iaf1c10777dc1e71df2be2a57533a10257b12626b

5 years agoMerge "To support skip464xlat per Network"
Chalard Jean [Wed, 24 Oct 2018 07:15:20 +0000 (07:15 +0000)]
Merge "To support skip464xlat per Network"

5 years agoUpdate test cases for HarfBuzz 2.0.2 DO NOT MERGE
Seigo Nonaka [Wed, 24 Oct 2018 00:39:53 +0000 (17:39 -0700)]
Update test cases for HarfBuzz 2.0.2 DO NOT MERGE

Now HarfBuzz combines chars with ZWJ into single cluster

Bug: 117953171
Test: TreeHugger
Change-Id: Ic642c469aab90a2ecd3874cf0dec82625ea21c1b
Merged-In: I531b7a5f5727540d6d11db619eeba6eb23fb113d

5 years agoFirewall-related commands porting
Luke Huang [Tue, 31 Jul 2018 12:15:24 +0000 (20:15 +0800)]
Firewall-related commands porting

Test: runtest frameworks-net passes
Test: manual testing of firewall works
Change-Id: Ic19c3872988a2b5dd315feb57e0757797d00a6ac

5 years agoMerge "Refine network-related commands porting"
Treehugger Robot [Wed, 24 Oct 2018 03:15:41 +0000 (03:15 +0000)]
Merge "Refine network-related commands porting"

5 years agoMerge "Move captive portal detection to another thread"
Chiachang Wang [Wed, 24 Oct 2018 03:02:58 +0000 (03:02 +0000)]
Merge "Move captive portal detection to another thread"

5 years agoMerge "Add test API to override carrier config"
Hall Liu [Wed, 24 Oct 2018 00:00:22 +0000 (00:00 +0000)]
Merge "Add test API to override carrier config"

5 years agoAdd keys to retrieve color aspects from metadata
Toshikazu Saito [Wed, 29 Aug 2018 06:00:22 +0000 (15:00 +0900)]
Add keys to retrieve color aspects from metadata

Add keys to retrieve color standard, color transfer and color range from
MediaMetadataRetriever.

Bug: 114329709
Test: put hdr/non-hdr contents and check media db

Change-Id: Ifa90f12a572b330f87acd6ef06e1e83ddceb8483

5 years agoMerge "Add getMobileNetworkOperator to CellIdentityTdscdma"
Nathan Harold [Tue, 23 Oct 2018 23:34:26 +0000 (23:34 +0000)]
Merge "Add getMobileNetworkOperator to CellIdentityTdscdma"

5 years agoRemove obsolete @VisibleForTesting Annotation
Brad Ebinger [Tue, 23 Oct 2018 22:46:59 +0000 (15:46 -0700)]
Remove obsolete @VisibleForTesting Annotation

Bug: 118296374
Test: atest FrameworksTelephonyTests
Change-Id: I5156db7d199f89307ca7c602bfc855dbc6ae236e

5 years agoMerge "Fix for android.hardware.radio.Utils.createIntSet"
Treehugger Robot [Tue, 23 Oct 2018 22:18:55 +0000 (22:18 +0000)]
Merge "Fix for android.hardware.radio.Utils.createIntSet"

5 years agoColor aspects keys information stored database
nobuhiko saitou [Mon, 3 Sep 2018 08:26:54 +0000 (17:26 +0900)]
Color aspects keys information stored database

Add keys for color aspects to VideoColumns in MediaStore.
And standard, transfer and range is stored to database.

Bug: 114329709
Test: put hdr/non-hdr contents and check media db

Change-Id: Id4bf27a35720f5cf5a60f08eb3f30314e1a1a167

5 years agoMerge "Remove Hidden TimestampType From CellInfo"
Nathan Harold [Tue, 23 Oct 2018 22:02:15 +0000 (22:02 +0000)]
Merge "Remove Hidden TimestampType From CellInfo"

5 years agoImsSsData needs a public constructor for vendors to use
Brad Ebinger [Thu, 11 Oct 2018 23:21:22 +0000 (16:21 -0700)]
ImsSsData needs a public constructor for vendors to use

Expose Builder for IMS Supp Service APIs as well as clean
up some of the ambiguous int[] usage.

Bug: 117555643
Test: Manual
Change-Id: I5cad08e0a032f4e38a62ac033c01111319cf9fd5

5 years agoMerge "Move some members to the "Q blacklist"."
Nathan Harold [Tue, 23 Oct 2018 21:53:51 +0000 (21:53 +0000)]
Merge "Move some members to the "Q blacklist"."

5 years agoMerge "Re-add removed APIs per API council feedback."
Tyler Gunn [Tue, 23 Oct 2018 20:49:43 +0000 (20:49 +0000)]
Merge "Re-add removed APIs per API council feedback."

5 years agoFix for android.hardware.radio.Utils.createIntSet
Jan Kowal [Thu, 27 Sep 2018 07:54:39 +0000 (09:54 +0200)]
Fix for android.hardware.radio.Utils.createIntSet

Previous solution was assymetric: writeInt vs readTypedObject.

Also, specify the initial capacity to avoid unnecessary reallocations.

Bug: 117113131
Test: atest BroadcastRadioTests
Change-Id: Ib33b97d482422b1acac8e9420a0c974bcd59355b

5 years agoAdd test API to override carrier config
Hall Liu [Tue, 23 Oct 2018 01:17:44 +0000 (18:17 -0700)]
Add test API to override carrier config

Add API surface and AIDL to enable override functionality for CTS

Change-Id: I55328a75f16fe91280530dd348d4a034694be6e9
Fixes: 118184943
Test: manually call api through shell cmd

5 years agoMerge "Fix data source for HEIF exif extractor"
Treehugger Robot [Tue, 23 Oct 2018 17:36:33 +0000 (17:36 +0000)]
Merge "Fix data source for HEIF exif extractor"

5 years agoMerge "Change caught exception in MediaScanner when ExifInterface is created"
Treehugger Robot [Tue, 23 Oct 2018 17:36:33 +0000 (17:36 +0000)]
Merge "Change caught exception in MediaScanner when ExifInterface is created"

5 years agoMerge "Add PhoneStateListener#onPreferredDataSubIdChanged"
Xiangyu/Malcolm Chen [Tue, 23 Oct 2018 17:03:22 +0000 (17:03 +0000)]
Merge "Add PhoneStateListener#onPreferredDataSubIdChanged"

5 years agoMerge "Adds new Public ImsManager API"
Brad Ebinger [Tue, 23 Oct 2018 16:50:04 +0000 (16:50 +0000)]
Merge "Adds new Public ImsManager API"

5 years agoMove captive portal detection to another thread
Chiachang Wang [Tue, 23 Oct 2018 13:10:57 +0000 (21:10 +0800)]
Move captive portal detection to another thread

isCaptivePortal() could take up to a minute. Resolving the
server's IP addresses could hit the DNS timeout, and attempting
connections to each of the server's several IP addresses
(currently one IPv4 and IPv6) could each take SOCKET_TIMEOUT_MS.
During this time this StateMachine will be unresponsive. Thus,
move detection to another thread.

Test: - runtest frameworks-net
      - run cts -m CtsNetTestCases
        -t android.net.cts.ConnectivityManagerTest
      - manual test(VALIDATION_SUCCESS, VALIDATION_FAILED,
        NETWORK_CAPTIVE_PORTAL_FOUND, bad network reported)
Bug: 113916551

Change-Id: I5ac39dc826acd26c64adaaa0b27a76cd7c7fd843

5 years agoRemove Hidden TimestampType From CellInfo
Nathan Harold [Sat, 6 Oct 2018 01:59:18 +0000 (18:59 -0700)]
Remove Hidden TimestampType From CellInfo

The timestamp type in CellInfo was added as an
experiment when CellInfo was first created. There
was optimism that highly precise timestamps would
be useful and available; however, in practice no
vendors are known to support precise timestamps
from the modem. Having a consistent timestap that
has a reference source available to apps is more
valuable than this flexibility. Thus, the reference
will always be nanotime since Android system boot,
and the timestamps will always be stamped by the
Android framework when the records are retrieved
from the modem.

Bug: 36971551
Test: atest FrameworksTelephonyTests

Change-Id: Ic5340b6c03ddc36aa00e7694c85b3af27128652e

5 years agoMove some members to the "Q blacklist".
Mathew Inwood [Fri, 14 Sep 2018 11:35:36 +0000 (12:35 +0100)]
Move some members to the "Q blacklist".

Based on some analysis, these fields/methods are likely false positives.
Set maxTargetSdk=P so that any apps using them are required to migrate off
them in future. See the bug for more details.

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

Bug: 115609023
Test: m
Merged-In: I719b5c94e5b1f4fa562dd5d655953422958ad37e
Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
(cherry picked from commit 8c854f86a477fbbee38092f449333e1425e5cd7e)

5 years agoMerge "Clarify createScaledBitmap's 'filter' docs"
Treehugger Robot [Mon, 22 Oct 2018 23:13:34 +0000 (23:13 +0000)]
Merge "Clarify createScaledBitmap's 'filter' docs"

5 years agoMerge "Move startop/tools/view_compiler to startop/view_compiler"
Treehugger Robot [Mon, 22 Oct 2018 22:38:20 +0000 (22:38 +0000)]
Merge "Move startop/tools/view_compiler to startop/view_compiler"

5 years agoAdd getMobileNetworkOperator to CellIdentityTdscdma
Nathan Harold [Mon, 22 Oct 2018 22:07:06 +0000 (15:07 -0700)]
Add getMobileNetworkOperator to CellIdentityTdscdma

For consistency with CellIdentityLte, Wcdma, and Gsm
adding this function. It will aid in future refactors
to possibly create a common interface for these classes.

Bug: 111808089
Test: compilation
Change-Id: Ia6b21bcc368089d8346951ae9476e7eb12a05130

5 years agoRe-add removed APIs per API council feedback.
Tyler Gunn [Mon, 22 Oct 2018 21:26:19 +0000 (14:26 -0700)]
Re-add removed APIs per API council feedback.

Some APIs were removed erroneously in the Q release; these methods were
just deprecated in Q,

Test: Make API, build
Bug: 116801893
Change-Id: I38ddf8bcd9fe39f4ba50bc892ac2f6d20209f7a9

5 years agoMerge "Add @Nullable for getSubscriptionIds"
Treehugger Robot [Mon, 22 Oct 2018 21:12:56 +0000 (21:12 +0000)]
Merge "Add @Nullable for getSubscriptionIds"

5 years agoAdd PhoneStateListener#onPreferredDataSubIdChanged
Malcolm Chen [Tue, 25 Sep 2018 03:01:32 +0000 (20:01 -0700)]
Add PhoneStateListener#onPreferredDataSubIdChanged

When SubscriptionManager#SetPreferredData changes preferredDataSub,
SubscriptionController notifies TelephonyRegistry and then notifies
all PhoneStateListeners that listen to the event.

Bug: 115550764
Test: unittest
Change-Id: Icb0b349b9f07a52d7d9c5e8512f731986f1a1fa3
Merged-In: Icb0b349b9f07a52d7d9c5e8512f731986f1a1fa3

5 years agoAdd @NonNull in SubMgr#getOpportunisticSubscriptions return value.
Malcolm Chen [Wed, 10 Oct 2018 01:15:21 +0000 (18:15 -0700)]
Add @NonNull in SubMgr#getOpportunisticSubscriptions return value.

Bug: 116117273
Test: build
Change-Id: I1b831ea7fc1eff78c262ae6f3b6ee91a72e1f5a9
Merged-In: I1b831ea7fc1eff78c262ae6f3b6ee91a72e1f5a9

5 years agoMerge "Allow implicit-fallthrough warnings locally."
Chih-hung Hsieh [Mon, 22 Oct 2018 20:37:32 +0000 (20:37 +0000)]
Merge "Allow implicit-fallthrough warnings locally."

5 years agoClarify createScaledBitmap's 'filter' docs
John Reck [Mon, 22 Oct 2018 20:23:12 +0000 (13:23 -0700)]
Clarify createScaledBitmap's 'filter' docs

Reddit complained the docs were bad, so make the docs less bad.

Test: none
Change-Id: I61928ea859af4ce0a63a9b545ea1b6dd965cc3df

5 years agoMerge "Remove NotificationVisibility storage pool"
Hans Boehm [Mon, 22 Oct 2018 20:20:38 +0000 (20:20 +0000)]
Merge "Remove NotificationVisibility storage pool"

5 years agoAdds new Public ImsManager API
Brad Ebinger [Mon, 24 Sep 2018 20:13:55 +0000 (13:13 -0700)]
Adds new Public ImsManager API

Exposes IMS functionality using new ImsManager API.

Bug: 116493310
Bug: 112538960
Bug: 112866475
Test: Telephony Unit Tests
Merged-In: I856fd7edd7a8b6085567ae6de12340f9086a4903
Change-Id: I856fd7edd7a8b6085567ae6de12340f9086a4903

5 years agoMerge "Fixed unsafe lock upon safe media volume"
Eric Laurent [Mon, 22 Oct 2018 18:42:18 +0000 (18:42 +0000)]
Merge "Fixed unsafe lock upon safe media volume"

5 years agoMove startop/tools/view_compiler to startop/view_compiler
Eric Holk [Thu, 11 Oct 2018 21:20:39 +0000 (14:20 -0700)]
Move startop/tools/view_compiler to startop/view_compiler

This is planned to ship on device, so by convention the view_compiler should not
be in a tools directory.

Change-Id: I0eb03812d77ec38edc3908725acb40bacb345ecd

5 years agoMerge "NWRegState.getAccessNetworkTechnology in sync with SS.getNetworkType"
Chen Xu [Mon, 22 Oct 2018 17:30:16 +0000 (17:30 +0000)]
Merge "NWRegState.getAccessNetworkTechnology in sync with SS.getNetworkType"

5 years agoAllow implicit-fallthrough warnings locally.
Chih-Hung Hsieh [Mon, 22 Oct 2018 16:56:12 +0000 (09:56 -0700)]
Allow implicit-fallthrough warnings locally.

It will be a global error by default.

Test: make checkbuild
Bug: 112564944
Change-Id: I26616fd50ccf3639fa7c01d850a14d079273ede7
Exempt-From-Owner-Approval: do not block on new warnings

5 years agoMerge "Need to check empty not null for String"
Chen Xu [Mon, 22 Oct 2018 16:53:18 +0000 (16:53 +0000)]
Merge "Need to check empty not null for String"

5 years agoMerge changes from topic "carrier_id_aosp_cp"
Chen Xu [Mon, 22 Oct 2018 16:36:25 +0000 (16:36 +0000)]
Merge changes from topic "carrier_id_aosp_cp"

* changes:
  support mno carrier id
  support privilege access rule for carrier identification

5 years agoFix data source for HEIF exif extractor
Chong Zhang [Thu, 26 Jul 2018 22:54:18 +0000 (15:54 -0700)]
Fix data source for HEIF exif extractor

Do not allow the source to read past available bytes, since
the underlying input stream may not be able to seek after that.

For input streams from files, the available bytes is usually the
file size, and we usually don't have problem when the file is
of decent size. But when the file is very small, some of the
extractors (other than mp4) would request bytes past the end
of the file, which goes over the available range. Once that
condition is hit, we can't reset to the offet needed for
mp4 extractor and heif parsing would fail.

bug: 111897855
bug: 117625929
test: open heic files of various sizes in Files (Downloads) app,
check that ExifInterface shouldn't encounter any exceptions.

Change-Id: I668ff900f4155dc310cb7ea8977bbe091791c5d7

5 years agoMerge "Remove more libcore classes from light grey/vendor lists"
Paul Duffin [Mon, 22 Oct 2018 14:47:33 +0000 (14:47 +0000)]
Merge "Remove more libcore classes from light grey/vendor lists"

5 years agoRemove more libcore classes from light grey/vendor lists
Paul Duffin [Wed, 17 Oct 2018 10:37:57 +0000 (11:37 +0100)]
Remove more libcore classes from light grey/vendor lists

Removes more libcore classes from the light grey/vendor lists as they
are now using UnsupportedAppUsage annotation.

Test: ensured that generated light grey list did not change
Bug: 117818301
Merged-In: I2e12bad6dcf648ae9dfed2cd5a3d2c7f2a01a506
Change-Id: I1361408eacae9b7320babec8ddc2afb10d08feaf

5 years agoChange caught exception in MediaScanner when ExifInterface is created
Toshikazu Saito [Fri, 13 Jul 2018 01:37:59 +0000 (10:37 +0900)]
Change caught exception in MediaScanner when ExifInterface is created

Some HEIF content happens RuntimeException in ExifInterface because
sniff is failed and MediaExtractor is not found. If exception happens,
scanning is aborted. So all contents may not be registered to database
correctly. To avoid that, this fix changes caught exception from
IOException to Exception for creating ExifInterface.

Bug: 117625929
Test: put some HEIF contents and check on photos

Change-Id: I6d32dec27c3be13993ec08f92d567b772d03ace9

5 years agoMerge "Reduce excess local prefix computations"
Treehugger Robot [Mon, 22 Oct 2018 08:04:41 +0000 (08:04 +0000)]
Merge "Reduce excess local prefix computations"

5 years agoMerge "pm: Disallow HIDL libs from boot jars >= Q."
Treehugger Robot [Mon, 22 Oct 2018 07:08:10 +0000 (07:08 +0000)]
Merge "pm: Disallow HIDL libs from boot jars >= Q."

5 years agoConnectivityService: make log configurable
hiroaki.yokoyama [Tue, 16 Oct 2018 03:50:33 +0000 (12:50 +0900)]
ConnectivityService: make log configurable

Make log of ConnectivityService configurable by system property.

Two levels:
VERBOSE: whole VDBG log.
DEBUG: selected necessary log for debug purpose.

Relevant log can be enbled in either way:
1. use adb command at run time.
2. config init.xx.rc file at compile time by adding.
on boot && property:ro.build.type=userdebug
    setprop log.tag.ConnectivityService DEBUG

Bug: 117632924
Change-Id: I43cc84878c64c5b448853c7393393a02262afd15

5 years agoReduce excess local prefix computations
markchien [Mon, 1 Oct 2018 13:18:15 +0000 (21:18 +0800)]
Reduce excess local prefix computations

only recomputing on the LISTEN_ALL callback

Test: - build, flash, booted
      - runtest frameworks-net

bug: 110335330

Change-Id: I606574f1a8a2899ed4688d7d5ec2cbe0f2638a94

5 years agoNWRegState.getAccessNetworkTechnology in sync with SS.getNetworkType
chen xu [Thu, 18 Oct 2018 23:52:40 +0000 (16:52 -0700)]
NWRegState.getAccessNetworkTechnology in sync with SS.getNetworkType

Bug: 117954963
Test: telephony unit test
Change-Id: I3e31955992de63f7002cbfd7b91ec408b2ff7b75

5 years agoMerge "Remove explicit dependencies on core library"
Neil Fuller [Sun, 21 Oct 2018 18:10:48 +0000 (18:10 +0000)]
Merge "Remove explicit dependencies on core library"

5 years agosupport mno carrier id
chen xu [Tue, 16 Oct 2018 18:55:26 +0000 (11:55 -0700)]
support mno carrier id

Bug: 110559381
Test: CarrierResolverTest.testMnoCarrierId
Change-Id: Ifa1f69fc98b5a7034f28fb5690981087cd6c135a
Merged-in: Ifa1f69fc98b5a7034f28fb5690981087cd6c135a

5 years agosupport privilege access rule for carrier identification
fionaxu [Fri, 8 Jun 2018 23:55:25 +0000 (16:55 -0700)]
support privilege access rule for carrier identification

Bug: 69807697
Bug: 72665237
Test: Manual
Change-Id: I5e00302684b2be93ee956d43b04ca9a12d043158
Merged-in: I5e00302684b2be93ee956d43b04ca9a12d043158

5 years agoRemove explicit dependencies on core library
Neil Fuller [Thu, 18 Oct 2018 14:03:50 +0000 (15:03 +0100)]
Remove explicit dependencies on core library

These dependencies appear not to be necessary.

Test: make api-stubs-docs-update-current-api and inspect api/current.txt
Test: make docs and compare offline_sdk output
Bug: 113148576
Change-Id: If363aa99c8e230c0d63db6677241eb152a5b8fec

5 years agoMerge "Fix FD leak during ADB shell install."
Treehugger Robot [Sat, 20 Oct 2018 07:25:24 +0000 (07:25 +0000)]
Merge "Fix FD leak during ADB shell install."

5 years agoAdd @Nullable for getSubscriptionIds
sqian [Sat, 20 Oct 2018 02:01:42 +0000 (19:01 -0700)]
Add @Nullable for getSubscriptionIds

Bug: 117930253
Test: Treehugger
Change-Id: Ia24bd84bb93380473b9b5a2153b52538e86229db

5 years agoRemove NotificationVisibility storage pool
Hans Boehm [Sat, 13 Oct 2018 00:16:27 +0000 (17:16 -0700)]
Remove NotificationVisibility storage pool

Based on recent measurements, storage pools of small objects are
generally not useful.

We ran into this because growing ArrayDeques are potentially very
unfriendly towards a generational GC, and racing recycle calls
can cause it it grow beyond MAX_POOL_SIZE. This isn't a big deal,
but there's no reason we should even be thinking about it.

Test: Build and boot AOSP

Change-Id: Icbda95e472e206c54f141129cc36ddc6d163b095

5 years agoMerge "Fix implicit-fallthrough warnings. DO NOT MERGE."
Treehugger Robot [Sat, 20 Oct 2018 01:08:55 +0000 (01:08 +0000)]
Merge "Fix implicit-fallthrough warnings. DO NOT MERGE."

5 years agoMerge "Allow implicit-fallthrough warnings locally."
Chih-hung Hsieh [Sat, 20 Oct 2018 00:44:34 +0000 (00:44 +0000)]
Merge "Allow implicit-fallthrough warnings locally."

5 years agoMerge "Fix implicit-fallthrough warnings."
Treehugger Robot [Sat, 20 Oct 2018 00:15:20 +0000 (00:15 +0000)]
Merge "Fix implicit-fallthrough warnings."

5 years agoFix implicit-fallthrough warnings. DO NOT MERGE.
Chih-Hung Hsieh [Fri, 19 Oct 2018 22:32:26 +0000 (15:32 -0700)]
Fix implicit-fallthrough warnings. DO NOT MERGE.

These changes are not needed in goog/master.

Test: make checkbuild
Bug: 112564944
Change-Id: I75972e680c9502e1b83845f08e79b99a8084cc4c

5 years agoMerge "Mark 4 tests as FlakyTest"
Dan Shi [Fri, 19 Oct 2018 22:13:34 +0000 (22:13 +0000)]
Merge "Mark 4 tests as FlakyTest"

5 years agoRevert "Add CarrierConfig to hide "Network default" option in Caller ID setting"
Youming Ye [Fri, 19 Oct 2018 21:34:27 +0000 (21:34 +0000)]
Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting"

This reverts commit 187c9943ff68dd30aac90ec322622eb67813d7ff.

Reason for revert: Slipped off master. Revert and try put it back.

Change-Id: I5823566523346c943c14e91848e7d5de9c14d68d