OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "PackageManager: Avoid null access"
Andreas Gampe [Fri, 9 Mar 2018 21:58:43 +0000 (21:58 +0000)]
Merge "PackageManager: Avoid null access"
am: 9b8008e9e8

Change-Id: Iabb496c276c250ed8edde6da0fe419925f5426e3

6 years agoMerge "PackageManager: Avoid null access"
Treehugger Robot [Fri, 9 Mar 2018 20:06:24 +0000 (20:06 +0000)]
Merge "PackageManager: Avoid null access"

6 years agoMerge "Zygote: Set libbase default tag on fork"
Andreas Gampe [Fri, 9 Mar 2018 19:38:54 +0000 (19:38 +0000)]
Merge "Zygote: Set libbase default tag on fork"
am: cb114c54a4

Change-Id: I7e7cb2d0b4b237a1f0314d4c236f080df796df23

6 years agoMerge "SystemUI: Customize wifi indicator for China carriers"
Minming Qi [Fri, 9 Mar 2018 19:32:08 +0000 (19:32 +0000)]
Merge "SystemUI: Customize wifi indicator for China carriers"
am: 439286d185

Change-Id: I3d4c32e47d232c92209968cd73659bb33ef8f93c

6 years agoMerge "Fix reference to header file in art."
Mathew Inwood [Fri, 9 Mar 2018 19:25:34 +0000 (19:25 +0000)]
Merge "Fix reference to header file in art."
am: 16416f0e10

Change-Id: If2fc63471245490df2fabaa9c257db20ba182fe6

6 years agoMerge "Zygote: Set libbase default tag on fork"
Treehugger Robot [Fri, 9 Mar 2018 17:52:50 +0000 (17:52 +0000)]
Merge "Zygote: Set libbase default tag on fork"

6 years agoMerge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command"
Jordan Liu [Fri, 9 Mar 2018 17:48:46 +0000 (17:48 +0000)]
Merge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command"
am: f5b680c82a

Change-Id: I7a481dbbf35f0a21e6b2268d1293a614d589e992

6 years agoMerge "SystemUI: Customize wifi indicator for China carriers"
Treehugger Robot [Fri, 9 Mar 2018 17:35:53 +0000 (17:35 +0000)]
Merge "SystemUI: Customize wifi indicator for China carriers"

6 years agoMerge "Fix reference to header file in art."
Treehugger Robot [Fri, 9 Mar 2018 16:58:58 +0000 (16:58 +0000)]
Merge "Fix reference to header file in art."

6 years agoMerge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command"
Jordan Liu [Fri, 9 Mar 2018 16:20:09 +0000 (16:20 +0000)]
Merge "Support ENVELOPE (EVENT DOWNLOAD - User activity) command"

6 years agoFix reference to header file in art.
Mathew Inwood [Fri, 9 Mar 2018 14:06:08 +0000 (14:06 +0000)]
Fix reference to header file in art.

The definition of the flags has moved at some point, update this comment to
point to the correct location.

Test: make
Change-Id: I2d7caa857e0061115b57a325db18cae605b464ee

6 years agoMerge "Check if mSurface is valid before create SurfaceSession"
Shibin George [Fri, 9 Mar 2018 14:46:25 +0000 (14:46 +0000)]
Merge "Check if mSurface is valid before create SurfaceSession"
am: fe118cfd10

Change-Id: I774c323f87ff9dba3dd6831b8a33e2b7161162cb

6 years agoMerge "Check if mSurface is valid before create SurfaceSession"
Treehugger Robot [Fri, 9 Mar 2018 12:58:26 +0000 (12:58 +0000)]
Merge "Check if mSurface is valid before create SurfaceSession"

6 years agoMerge "Deprecate most of NetworkInfo."
Chalard Jean [Fri, 9 Mar 2018 12:57:15 +0000 (12:57 +0000)]
Merge "Deprecate most of NetworkInfo."
am: 92a9847de9

Change-Id: I1d12c161f7e388451059a92b68a1511fbf8006a1

6 years agoMerge "Deprecate most of NetworkInfo."
Chalard Jean [Fri, 9 Mar 2018 09:46:11 +0000 (09:46 +0000)]
Merge "Deprecate most of NetworkInfo."

6 years agoMerge "Add BaseNetdEventCallback class that provides no-op implementations for INetdE...
Erik Kline [Fri, 9 Mar 2018 07:01:21 +0000 (07:01 +0000)]
Merge "Add BaseNetdEventCallback class that provides no-op implementations for INetdEventCallback."
am: 59787b4247

Change-Id: I63d8b36ec1594134bce8c60eb653e9b53a1b1963

6 years agoDeprecate most of NetworkInfo.
Chalard Jean [Thu, 8 Mar 2018 04:54:53 +0000 (13:54 +0900)]
Deprecate most of NetworkInfo.

getType, getTypeName, isConnectedOrConnecting, isConnected,
isAvaisable, isFailover, isRoaming, getState, getDetailedState,
getReason, and the TYPE_* constants in ConnectivityManager
along with methods that use them are now stacked on a boat
bound for the other side of the Styx.

Test: no code changes
Bug: 62844794
Change-Id: Idd70763de5b1af5580b4734cd443ac4b570069cc

6 years agoMerge "Add BaseNetdEventCallback class that provides no-op implementations for INetdE...
Erik Kline [Fri, 9 Mar 2018 04:49:51 +0000 (04:49 +0000)]
Merge "Add BaseNetdEventCallback class that provides no-op implementations for INetdEventCallback."

6 years agoMerge "Bluetooth: Separate enable and disable Reasons from package name"
Jack He [Fri, 9 Mar 2018 02:25:38 +0000 (02:25 +0000)]
Merge "Bluetooth: Separate enable and disable Reasons from package name"
am: 1844f1cb43

Change-Id: I86d6304d01685c24c301c6ba440657ee58024840

6 years agoMerge "Clean up comment"
Mathieu Chartier [Fri, 9 Mar 2018 01:23:06 +0000 (01:23 +0000)]
Merge "Clean up comment"
am: 8cdc0da9ad

Change-Id: I8fde53a8d460309a2efb69a7d15e2665dd75e432

6 years agoPackageManager: Avoid null access
Andreas Gampe [Tue, 6 Mar 2018 01:46:25 +0000 (17:46 -0800)]
PackageManager: Avoid null access

In case cache creation fails, mCacheDir may be null. Avoid an
access.

Bug: 74087079
Test: m
Test: boot under low-space condition
Change-Id: I55836c820ef2c3431e8f06224d6f9edf0e9881ef

6 years agoSupport ENVELOPE (EVENT DOWNLOAD - User activity) command
Yoshiaki Naka [Fri, 15 Sep 2017 06:24:34 +0000 (15:24 +0900)]
Support ENVELOPE (EVENT DOWNLOAD - User activity) command

The terminal shall send the ENVELOPE (EVENT DOWNLOAD - User activity)
command to the UICC when some user activity like a key-press or touch is
detected if the user activity event is a part of the current event list.
This change allows the SIM Toolkit application to support that event.
Please refer to the specification of SET UP EVENT LIST command described
in ETSI TS 102.223.

Bug: 65884891
Test: Confirmed the expected seq 1.1 of ETSI TS 102.384 TC 27.22.4.16
Change-Id: I7d3faa09cd4625db53bcfe21f90570389a4ea037
Merged-In: I7d3faa09cd4625db53bcfe21f90570389a4ea037

6 years agoMerge "Bluetooth: Separate enable and disable Reasons from package name"
Treehugger Robot [Fri, 9 Mar 2018 00:57:53 +0000 (00:57 +0000)]
Merge "Bluetooth: Separate enable and disable Reasons from package name"

6 years agoMerge "New intent for microphone mute change notification"
Tyler Gunn [Fri, 9 Mar 2018 00:46:56 +0000 (00:46 +0000)]
Merge "New intent for microphone mute change notification"
am: d34cd5eb0a

Change-Id: I6435148922148d340e8a4b8bd7cf431661202d42

6 years agoMerge "Support enhanced call blocking function"
Tyler Gunn [Fri, 9 Mar 2018 00:41:31 +0000 (00:41 +0000)]
Merge "Support enhanced call blocking function"
am: fdcdaee2d1

Change-Id: I26c38a7cca8a92011395da5e7ff758d482edbcab

6 years agoMerge "Clean up comment"
Mathieu Chartier [Thu, 8 Mar 2018 23:38:47 +0000 (23:38 +0000)]
Merge "Clean up comment"

6 years agoMerge "New intent for microphone mute change notification"
Tyler Gunn [Thu, 8 Mar 2018 23:26:57 +0000 (23:26 +0000)]
Merge "New intent for microphone mute change notification"

6 years agoMerge "Support enhanced call blocking function"
Tyler Gunn [Thu, 8 Mar 2018 23:21:16 +0000 (23:21 +0000)]
Merge "Support enhanced call blocking function"

6 years agoNew intent for microphone mute change notification
Jean-Michel Trivi [Fri, 22 Dec 2017 02:09:21 +0000 (18:09 -0800)]
New intent for microphone mute change notification

AudioManager: define ACTION_MICROPHONE_MUTE_CHANGED.
AudioService:
 - broadcast intent when setMicrophoneMute() is called
   with FLAG_RECEIVER_REGISTERED_ONLY.
 - remove outdated (invalid) comments.

Bug: 70857126
Test: m -j ; make -j offline-sdk-docs ; make -j cts ; \
      cts-tradefed run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testMicrophoneMuteIntent

Change-Id: I7391522f0195d06592e4f853e9b672fdec66d37a
Merged-In: I7391522f0195d06592e4f853e9b672fdec66d37a

6 years agoAdd BaseNetdEventCallback class that provides no-op implementations for INetdEventCal...
dalyk [Thu, 8 Mar 2018 21:33:25 +0000 (16:33 -0500)]
Add BaseNetdEventCallback class that provides no-op implementations for INetdEventCallback.

Test: None
Bug: 71828272
Change-Id: I75e0620f82195f18befe9dc079492a8c69bb764b

6 years agoMerge "Do not throw RuntimeException from stopScan()."
yinxu [Thu, 8 Mar 2018 21:31:49 +0000 (21:31 +0000)]
Merge "Do not throw RuntimeException from stopScan()."
am: 7ac5deaf38

Change-Id: I64e0486f26d6bc9e468cf0c69ec6ada50889940b

6 years agoClean up comment
Mathieu Chartier [Thu, 8 Mar 2018 21:11:40 +0000 (13:11 -0800)]
Clean up comment

Bug: 63756964
Bug: 74245837
Test: untested
Change-Id: I47a0fbab7da9cd87ec9e7dc03b2bc00e5668eae3

6 years agoZygote: Set libbase default tag on fork
Andreas Gampe [Mon, 5 Mar 2018 21:00:42 +0000 (13:00 -0800)]
Zygote: Set libbase default tag on fork

When forking, set the default tag to the process name, so that
non-tagged logging (like ART's) get tagged accordingly.

Bug: 34867873
Test: m
Change-Id: I81d526c8f5af0fde488cdf8efd1835298ff501fc

6 years agoMerge "Do not throw RuntimeException from stopScan()."
Treehugger Robot [Thu, 8 Mar 2018 19:41:20 +0000 (19:41 +0000)]
Merge "Do not throw RuntimeException from stopScan()."

6 years agoMerge "Telephony(MSIM): Default NW mode property for each slot"
Pengquan Meng [Thu, 8 Mar 2018 19:12:13 +0000 (19:12 +0000)]
Merge "Telephony(MSIM): Default NW mode property for each slot"
am: 27c64aaf3c

Change-Id: Iabd4ed14da42f5fb141606d63be5ed73f3df642a

6 years agoMerge "Bump version for OtaDexoptService"
Mathieu Chartier [Thu, 8 Mar 2018 18:12:54 +0000 (18:12 +0000)]
Merge "Bump version for OtaDexoptService"
am: de1a963e52

Change-Id: I49beb8aabbae6a4a06d1a9c360bdcefd47a5b187

6 years agoMerge "Telephony(MSIM): Default NW mode property for each slot"
Pengquan Meng [Thu, 8 Mar 2018 17:56:28 +0000 (17:56 +0000)]
Merge "Telephony(MSIM): Default NW mode property for each slot"

6 years agoCheck if mSurface is valid before create SurfaceSession
Shibin George [Mon, 26 Feb 2018 14:59:44 +0000 (20:29 +0530)]
Check if mSurface is valid before create SurfaceSession

If mSurface has already been released in another thread,
this would result in a null-pointer dereference in
SurfaceSession contructor i.e. in nativeCreateScoped().

7757  7757 F DEBUG   : pid: 1402, tid: 1583, name: android.anim  >>> system_server <<<
7757  7757 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd0
7757  7757 F DEBUG   : Cause: null pointer dereference
... <trimmed>
7757  7757 F DEBUG   : backtrace:
7757  7757 F DEBUG   :     #00 pc 000000000007fe58  /system/lib64/libgui.so (android::Surface::getIGraphicBufferProducer() const)
7757  7757 F DEBUG   :     #01 pc 00000000000ff000  /system/lib64/libandroid_runtime.so (android::nativeCreateScoped(_JNIEnv*, _jclass*, long)+52)
7757  7757 F DEBUG   :     #02 pc 0000000000ac8968  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.content.res.XmlBlock.nativeCreateParseState [DEDUPED]+152)
7757  7757 F DEBUG   :     #03 pc 0000000001327d24  /system/framework/arm64/boot-framework.oat (offset 0x614000) (android.view.SurfaceSession.<init>+52)
7757  7757 F DEBUG   :     #04 pc 00000000014b7320  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSizeMismatchSnapshot+128)
7757  7757 F DEBUG   :     #05 pc 00000000014b784c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.drawSnapshot+188)
7757  7757 F DEBUG   :     #06 pc 00000000014b6f2c  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotSurface.create+2684)
7757  7757 F DEBUG   :     #07 pc 00000000014b0158  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.TaskSnapshotController.createStartingSurface+72)
7757  7757 F DEBUG   :     #08 pc 00000000014a5ca0  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.SnapshotStartingData.createStartingSurface+96)
7757  7757 F DEBUG   :     #09 pc 000000000144b030  /system/framework/oat/arm64/services.odex (offset 0x5be000) (com.android.server.wm.AppWindowContainerController.lambda$-com_android_server_wm_AppWindowContainerController_4735+496)
... <trimmed>

Bug: 74129970

Change-Id: I41268c7680d3885c85fc3b682d0eba7415674062

6 years agoMerge "Bump version for OtaDexoptService"
Mathieu Chartier [Thu, 8 Mar 2018 17:07:15 +0000 (17:07 +0000)]
Merge "Bump version for OtaDexoptService"

6 years agoSupport enhanced call blocking function
Ruijie Bai [Mon, 25 Dec 2017 03:00:23 +0000 (11:00 +0800)]
Support enhanced call blocking function

- Add new carrier config to determine whether to enable
enhanced call blocking feature.
- Add new I/F to get/set the call blocking enabled status.
- Add new API to support checking whether a number is
block number with specific extras.

Bug: 28189985
Test: Manual
Change-Id: I7e2fdaecf4c93f3513d756e65bab8e2c2c0b7440

6 years agoMerge "Add new 'explicit GC' policy to StrictMode."
Pete Gillin [Thu, 8 Mar 2018 12:51:56 +0000 (12:51 +0000)]
Merge "Add new 'explicit GC' policy to StrictMode."
am: 121eb58ab4

Change-Id: Ice5b3c97fb7a791b2623df8e2de6c2669b920b19

6 years agoMerge "Add new 'explicit GC' policy to StrictMode."
Pete Gillin [Thu, 8 Mar 2018 10:55:00 +0000 (10:55 +0000)]
Merge "Add new 'explicit GC' policy to StrictMode."

6 years agoBluetooth: Separate enable and disable Reasons from package name
Jack He [Fri, 2 Mar 2018 21:08:36 +0000 (13:08 -0800)]
Bluetooth: Separate enable and disable Reasons from package name

* Reasons to enable or disable Bluetooth should be in a separate
  namespace away from package names that initiated the enable or disable
* Delcare reason code in android/bluetooth/enums.proto as
  EnableDisableReasonEnum and use these reason code together with
  package names to log Bluetooth enable and disable events
* When reason is ENABLE_DISABLE_REASON_APPLICATION_REQUEST, the external
  package name is the real reason why Bluetooth is enabled or disabled
* Change START_CRASH to START_ERROR since it represents a disable event
  when Bluetooth failed to start
* Change UNEXPECTED_CRASH to CRASH since no crash is expected
* Add getEnableDisableReasonString() method to covert reason code to
  human readable strings in dumpsys output

Bug: 74090881
Test: Toggle Bluetooth, airplane mode, BLE scanning
Change-Id: I06aa413e2a0a5f016c87759a1b694ef643c9cdee

6 years agoMerge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
Jordan Liu [Thu, 8 Mar 2018 01:04:53 +0000 (01:04 +0000)]
Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
am: 36886b6f15

Change-Id: Ie5bf6391fc967283cd705cb9437ba302649a48c8

6 years agoMerge "Initialize mWcdmaRscpAsu and fix invalid value for asu"
Jordan Liu [Wed, 7 Mar 2018 23:41:41 +0000 (23:41 +0000)]
Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu"

6 years agoMerge "Minor clean-up in NetworkCapabilities"
Pavel Maltsev [Wed, 7 Mar 2018 23:00:53 +0000 (23:00 +0000)]
Merge "Minor clean-up in NetworkCapabilities"
am: 539f85a18d

Change-Id: Ic70f545a4886461f38f1af934600f4e1afe0179f

6 years agoDo not throw RuntimeException from stopScan().
yinxu [Wed, 7 Mar 2018 21:49:51 +0000 (13:49 -0800)]
Do not throw RuntimeException from stopScan().

Bug:73750871
Test: Unit Test
Change-Id: I640093627c103fe1d2fe5707e6854ba748789919

6 years agoMerge "Add logic for passing down CompactDex generation flag"
Mathieu Chartier [Wed, 7 Mar 2018 21:23:27 +0000 (21:23 +0000)]
Merge "Add logic for passing down CompactDex generation flag"
am: b5fb7e91d8

Change-Id: Ia2f2e6b97c19a20c57a98c4191df0e631b342ae6

6 years agoMerge "Minor clean-up in NetworkCapabilities"
Treehugger Robot [Wed, 7 Mar 2018 21:06:59 +0000 (21:06 +0000)]
Merge "Minor clean-up in NetworkCapabilities"

6 years agoMerge "API Documentation and Constant cleanup."
Tyler Gunn [Wed, 7 Mar 2018 20:43:04 +0000 (20:43 +0000)]
Merge "API Documentation and Constant cleanup."
am: 8882c55b21

Change-Id: I9b29ba9beb91005dfd0df267d9ca21b0e858abad

6 years agoMerge "Add logic for passing down CompactDex generation flag"
Mathieu Chartier [Wed, 7 Mar 2018 19:53:18 +0000 (19:53 +0000)]
Merge "Add logic for passing down CompactDex generation flag"

6 years agoMerge "Store package restriction settings at shutdown"
Tetsutoki Shiozawa [Wed, 7 Mar 2018 19:51:26 +0000 (19:51 +0000)]
Merge "Store package restriction settings at shutdown"
am: 888c45b484

Change-Id: I97ad69e56c6a3c32f9d530aed933b98a61d6daa4

6 years agoMerge "API Documentation and Constant cleanup."
Treehugger Robot [Wed, 7 Mar 2018 19:33:52 +0000 (19:33 +0000)]
Merge "API Documentation and Constant cleanup."

6 years agoMerge "Address the API review comments."
yinxu [Wed, 7 Mar 2018 19:02:46 +0000 (19:02 +0000)]
Merge "Address the API review comments."
am: 322ff16301

Change-Id: I4892b391672b0f125d47d9ddec02c1645d7cb2d3

6 years agoMerge "Store package restriction settings at shutdown"
Treehugger Robot [Wed, 7 Mar 2018 18:46:18 +0000 (18:46 +0000)]
Merge "Store package restriction settings at shutdown"

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Wed, 7 Mar 2018 18:37:54 +0000 (18:37 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
am: 13310fef6e

Change-Id: Idbd6c7575b15c68a34c75ae6e5a5dd5418cfab82

6 years agoMerge "Ensure start of call properties are propagated to RemoteConnection."
Tyler Gunn [Wed, 7 Mar 2018 17:54:30 +0000 (17:54 +0000)]
Merge "Ensure start of call properties are propagated to RemoteConnection."
am: ecb46b610c

Change-Id: I9e7e28c7197d8d002bb5d8956ef4624ac70cb24b

6 years agoMerge "Address the API review comments."
Treehugger Robot [Wed, 7 Mar 2018 17:40:20 +0000 (17:40 +0000)]
Merge "Address the API review comments."

6 years agoBump version for OtaDexoptService
Mathieu Chartier [Wed, 7 Mar 2018 17:29:21 +0000 (09:29 -0800)]
Bump version for OtaDexoptService

Bug: 63756964
Bug: 74245837
Test: manual
Change-Id: I750e38a02710347a03783b820816eda6958ba0c6

6 years agoAdd logic for passing down CompactDex generation flag
Mathieu Chartier [Wed, 7 Mar 2018 02:28:22 +0000 (18:28 -0800)]
Add logic for passing down CompactDex generation flag

In the cases where we are not install, boot, or first boot, pass down
the flag to generate CompactDex.

Bug: 63756964
Bug: 74245837
Test: manual
Change-Id: I4a2ff9383251e67b260cff5ec8a326c7a4f7faca

6 years agoMerge "frameworks/base: Set LOCAL_SDK_VERSION where possible."
Anton Hansson [Wed, 7 Mar 2018 16:46:58 +0000 (16:46 +0000)]
Merge "frameworks/base: Set LOCAL_SDK_VERSION where possible."

6 years agoMerge "Ensure start of call properties are propagated to RemoteConnection."
Tyler Gunn [Wed, 7 Mar 2018 15:22:58 +0000 (15:22 +0000)]
Merge "Ensure start of call properties are propagated to RemoteConnection."

6 years agoframeworks/base: Set LOCAL_SDK_VERSION where possible.
Anton Hansson [Fri, 23 Feb 2018 12:57:51 +0000 (12:57 +0000)]
frameworks/base: Set LOCAL_SDK_VERSION where possible.

This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Exempt-From-Owner-Approval: Global cleanup
Change-Id: I66b515d98d03264dbb893b7c55ba7bdddfb447a1
Merged-In: I26458e41ecb84de91ac9a356a5d4bafb44f463c1
Merged-In: I938efe7a2359302cbf4d5d6f786f963044e1bbbd
Merged-In: I72ce7f1c6242ddf9a5b36075761f3f1f1138cea1

6 years agoMerge "Remove com.android.internal{.util} from generated documentation."
Tobias Thierer [Wed, 7 Mar 2018 14:39:05 +0000 (14:39 +0000)]
Merge "Remove com.android.internal{.util} from generated documentation."
am: 29da54462d

Change-Id: Ibdd68ab3b14e7c0280e2474248398e375e806088

6 years agoMerge "Remove com.android.internal{.util} from generated documentation."
Treehugger Robot [Wed, 7 Mar 2018 11:43:35 +0000 (11:43 +0000)]
Merge "Remove com.android.internal{.util} from generated documentation."

6 years agoStore package restriction settings at shutdown
Tetsutoki Shiozawa [Wed, 25 Nov 2015 14:02:36 +0000 (23:02 +0900)]
Store package restriction settings at shutdown

Symptom:
Disabled package was re-enabled by restarting a device.

Root cause:
PMS postpones storing the package restriction settings in 10
seconds by design. When a package gets disabled right before
shutdown, PMS fails to store the last changes.

Solution:
Store package restriction settings at shutdown.

BUG: 73447744
Change-Id: I4fe76c1f003e51653304cfaeaa5129d84803ce1e

6 years agoInitialize mWcdmaRscpAsu and fix invalid value for asu
takeshi tanigawa [Wed, 7 Mar 2018 07:54:12 +0000 (16:54 +0900)]
Initialize mWcdmaRscpAsu and fix invalid value for asu

Initialize mWcdmaRscpAsu in the constructor.
Update an invalid value of asu from -1 to 255.

Test: auto - Passed SignalStrengthTest
Bug: 71329173
Change-Id: Ic6c03fa3c405377b23159038a1e23a45ba87239c

6 years agoMerge "Update SignalStrength to use ASU for TD-SDCMA"
nharold [Wed, 7 Mar 2018 03:12:01 +0000 (03:12 +0000)]
Merge "Update SignalStrength to use ASU for TD-SDCMA"
am: 4068e8e6ae

Change-Id: Iac579d6eb416b6aca260b0f4e79f311b059d8466

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
Pavlin Radoslavov [Wed, 7 Mar 2018 02:41:19 +0000 (02:41 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"
am: 5b2fe53ab7

Change-Id: I5928ddaea907e0beca598cdb4f1507a0930ea592

6 years agoMerge "Update SignalStrength to use ASU for TD-SDCMA"
nharold [Wed, 7 Mar 2018 02:05:34 +0000 (02:05 +0000)]
Merge "Update SignalStrength to use ASU for TD-SDCMA"

6 years agoMerge "Fix Telecom dumpsys timestamps"
Hall Liu [Wed, 7 Mar 2018 01:52:15 +0000 (01:52 +0000)]
Merge "Fix Telecom dumpsys timestamps"
am: c364ff38cb

Change-Id: Ife3272aa55bdbdc01971221017962b150106bdba

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
Treehugger Robot [Wed, 7 Mar 2018 01:02:50 +0000 (01:02 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"

6 years agoMerge "Fix Telecom dumpsys timestamps"
Hall Liu [Wed, 7 Mar 2018 00:46:19 +0000 (00:46 +0000)]
Merge "Fix Telecom dumpsys timestamps"

6 years agoMerge "Remove toString() for CarrierIdentifier."
Holly Jiuyu Sun [Wed, 7 Mar 2018 00:39:56 +0000 (00:39 +0000)]
Merge "Remove toString() for CarrierIdentifier."
am: e33b9f6234

Change-Id: I6cbae2674c56f5cd99a6c7814f22dc9e8563d974

6 years agoUpdate the Bluetooth Active Device state in the Device Manager
Pavlin Radoslavov [Wed, 7 Feb 2018 00:14:00 +0000 (16:14 -0800)]
Update the Bluetooth Active Device state in the Device Manager

The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Also:
 * Added a new CachedBluetoothDeviceManagerTest.java unit test
 * Added a new method CachedBluetoothDevice.isActiveDevice()
   for testing.

Bug: 72316092
Test: Manual - two headsets and switching the active device
      Unit tests - "make RunSettingsLibRoboTests -j 40"
Change-Id: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf
Merged-In: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf
(cherry picked from commit c285d559fa8f0d597e8d5f1c8176dbb187e2d6ac)

6 years agoMerge "Remove toString() for CarrierIdentifier."
Holly Jiuyu Sun [Tue, 6 Mar 2018 23:16:54 +0000 (23:16 +0000)]
Merge "Remove toString() for CarrierIdentifier."

6 years agoFix Telecom dumpsys timestamps
Hall Liu [Tue, 6 Mar 2018 22:20:37 +0000 (14:20 -0800)]
Fix Telecom dumpsys timestamps

Change the dumpsys timestamps to use java.time for processing and always
log events with local timezone that was in effect at the time the event
happened.

Bug: 74250969
Test: manual, run dumpsys
Change-Id: Ie53cff4400be1528b3224bd556536a689ef22c8c

6 years agoMerge "Customize the WCDMA signal strength based on RSCP"
Jordan Liu [Tue, 6 Mar 2018 20:31:20 +0000 (20:31 +0000)]
Merge "Customize the WCDMA signal strength based on RSCP"
am: c2925aff38

Change-Id: I226f147316121a982526e4aa4111e9ed41215757

6 years agoMerge "Obtain cellular related battery statistics"
Siddharth Ray [Tue, 6 Mar 2018 20:08:15 +0000 (20:08 +0000)]
Merge "Obtain cellular related battery statistics"
am: 4b0172bcb6

Change-Id: I364d329e92a6bd92ce601d34c94a92c91f09eb38

6 years agoMerge "Accounts: Fix TokenCache maps access"
Andreas Gampe [Tue, 6 Mar 2018 20:03:33 +0000 (20:03 +0000)]
Merge "Accounts: Fix TokenCache maps access"
am: b06de7892a

Change-Id: Idb4409a7ac83326f178a176364c4a08b3716b64c

6 years agoMerge "Update the RTT features constant."
Eric Erfanian [Tue, 6 Mar 2018 19:58:14 +0000 (19:58 +0000)]
Merge "Update the RTT features constant."
am: c18b175d87

Change-Id: Ic4419be53f3390336a5b95abe34a03944b3437e4

6 years agoMerge "Camera: Fix map access"
Andreas Gampe [Tue, 6 Mar 2018 19:45:39 +0000 (19:45 +0000)]
Merge "Camera: Fix map access"
am: 8796d95475

Change-Id: Ife74759ff109b1b885420db408e6a6e0c3bb1388

6 years agoMerge "Allow null subscriberId in NetworkStatsManager."
Remi NGUYEN VAN [Tue, 6 Mar 2018 19:37:13 +0000 (19:37 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager."
am: 6bd13af46a

Change-Id: I900ac14224284fc3a1422e8791bc54d6a9ee77ba

6 years agoMerge "Connectivity: Fix map access"
Andreas Gampe [Tue, 6 Mar 2018 19:20:32 +0000 (19:20 +0000)]
Merge "Connectivity: Fix map access"
am: be04ebd707

Change-Id: I3c1fea926fda1d70e38746378191100bb825758f

6 years agoUpdate SignalStrength to use ASU for TD-SDCMA
Nathan Harold [Sat, 3 Mar 2018 04:02:41 +0000 (20:02 -0800)]
Update SignalStrength to use ASU for TD-SDCMA

The HAL for Radio 1.2 uses -TD-SDCMA rather than
ASU RSCP for the signal strength for TD-SCDMA. This
change updates the HAL to use the new ASU-range
input.

Bug: 74202653
Test: runtest frameworks-telephony
Change-Id: Iab37ca19daf12179933cef580f248c3ef8258b98

6 years agoMerge "Customize the WCDMA signal strength based on RSCP"
Jordan Liu [Tue, 6 Mar 2018 18:54:56 +0000 (18:54 +0000)]
Merge "Customize the WCDMA signal strength based on RSCP"

6 years agoMerge "Obtain cellular related battery statistics"
Treehugger Robot [Tue, 6 Mar 2018 18:19:20 +0000 (18:19 +0000)]
Merge "Obtain cellular related battery statistics"

6 years agoMerge "Accounts: Fix TokenCache maps access"
Treehugger Robot [Tue, 6 Mar 2018 17:45:25 +0000 (17:45 +0000)]
Merge "Accounts: Fix TokenCache maps access"

6 years agoMerge "Update the RTT features constant."
Treehugger Robot [Tue, 6 Mar 2018 16:07:16 +0000 (16:07 +0000)]
Merge "Update the RTT features constant."

6 years agoMerge "Camera: Fix map access"
Treehugger Robot [Tue, 6 Mar 2018 16:04:24 +0000 (16:04 +0000)]
Merge "Camera: Fix map access"

6 years agoRemove com.android.internal{.util} from generated documentation.
Tobias Thierer [Mon, 5 Mar 2018 22:55:32 +0000 (22:55 +0000)]
Remove com.android.internal{.util} from generated documentation.

com.android.internal.* is meant to be hidden from documentation,
but most of it is erroneously not hidden via @hide or -hidePackage
directives; why documentation is currently generated for Predicate
but not other classes from com.android.internal.util, and why some
but not all classes from that package show up in package-level
documentation (package-summary.html), is not currently understood.

There appears to be a behavior difference between OpenJDK 8 and
OpenJDK 9's javadoc that results in additional classes showing up
in package-summary.html. This CL fixes this by adding -hidePackage
directives for com.android.internal{.util}; other sub-packages of
com.android.internal do not currently show up in documentation and
are not touched by this CL.

Test: Patched this CL into the internal-master branch and ran:
      USE_R8=true EXPERIMENTAL_USE_OPENJDK9=true make offline-sdk-docs
      Checked that this removes all documentation for com.*
      (com.android.internal.util was the only com.* package for which
      documentation was previously generated).
      In other words: Before this CL, [1] existed, but after
      this CL, the entire directory subtree [2] does not exist.
Test: Checked that Predicate was already missing from stubs before this
      CL. In other words, [3] already did not exist before this CL.

[1] out/target/common/docs/offline-sdk/reference/com/android/internal/util/Predicate.html
[2] out/target/common/docs/offline-sdk/reference/com
[3] out/target/common/obj/JAVA_LIBRARIES/android_system_stubs_current_intermediates/classes/com

Bug: 69736344
Bug: 69736236

Change-Id: I3243e2820348c338a54e42c72d29bed71389a6c4

6 years agoAdd new 'explicit GC' policy to StrictMode.
Pete Gillin [Thu, 15 Feb 2018 17:17:27 +0000 (17:17 +0000)]
Add new 'explicit GC' policy to StrictMode.

This change adds the policy but offers no public way to enable it. A
follow-up change will expose the detect/permit methods in the API and
change detectAll to enable it.

This new policy can only be triggered through the libcore BlockGuard API.

Bug: 3400644
Test: cts-tradefed run cts-dev -m CtsLibcoreTestCases
Test: cts-tradefed run cts-dev -m CtsOsTestCases
Change-Id: I2e7f34ce010c78d6a5a7ac85512c045bfb13d204
Merged-In: Ieebe4db747902246968d6382bbc9cee0e539af85

6 years agoMerge "Minor cleanups to NetworkStats interface tracking."
Lorenzo Colitti [Tue, 6 Mar 2018 07:28:20 +0000 (07:28 +0000)]
Merge "Minor cleanups to NetworkStats interface tracking."
am: 6455e31b76

Change-Id: I84aad4b9815196e0362d6adba34359a260853f46

6 years agoMerge "Add an app-ops check when registering for location"
Hall Liu [Tue, 6 Mar 2018 07:17:02 +0000 (07:17 +0000)]
Merge "Add an app-ops check when registering for location"
am: b376f02260

Change-Id: I5a41e4080088ac1a62d67f18649ca44ddf0eed9c

6 years agoMerge "Allow null subscriberId in NetworkStatsManager."
Remi NGUYEN VAN [Tue, 6 Mar 2018 06:52:35 +0000 (06:52 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager."

6 years agoCamera: Fix map access
Andreas Gampe [Tue, 6 Mar 2018 01:30:50 +0000 (17:30 -0800)]
Camera: Fix map access

Found by Errorprone.

Bug: 73288226
Test: m javac-check-SmartCamera RUN_ERROR_PRONE
Change-Id: I6f6105f5d4a6ed5d28262bcdcd83764e6e8d5544

6 years agoMerge "Connectivity: Fix map access"
Treehugger Robot [Tue, 6 Mar 2018 05:39:39 +0000 (05:39 +0000)]
Merge "Connectivity: Fix map access"

6 years agoAllow null subscriberId in NetworkStatsManager.
Remi NGUYEN VAN [Mon, 5 Mar 2018 09:14:56 +0000 (18:14 +0900)]
Allow null subscriberId in NetworkStatsManager.

Use a MATCH_MOBILE_WILDCARD template to avoid filtering by
subscriberId when querying statistics from NetworkStatsService.

Bug: 74038898
Change-Id: I4b39e7031416cb33b23d89aa36ff0f774eaa942f
Fixes: 74038898
Test: runtest frameworks-net, CTS tests pass

6 years agoAccounts: Fix TokenCache maps access
Andreas Gampe [Tue, 6 Mar 2018 02:25:18 +0000 (18:25 -0800)]
Accounts: Fix TokenCache maps access

Found by Errorprone.

Bug: 73288226
Test: mmma frameworks/base/services
Change-Id: I203745415cbad6fad6f72008fc5632086d2a4505

6 years agoMerge "Minor cleanups to NetworkStats interface tracking."
Treehugger Robot [Tue, 6 Mar 2018 02:18:39 +0000 (02:18 +0000)]
Merge "Minor cleanups to NetworkStats interface tracking."