OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Expose SmsMessage#FORMAT_ constants as public APIs."
TreeHugger Robot [Tue, 24 Oct 2017 20:42:36 +0000 (20:42 +0000)]
Merge "Expose SmsMessage#FORMAT_ constants as public APIs."

6 years agoMerge "Add OWNERS for settingslib"
TreeHugger Robot [Tue, 24 Oct 2017 20:05:52 +0000 (20:05 +0000)]
Merge "Add OWNERS for settingslib"

6 years agoMerge "Change cleartext traffic permitted default for P apps"
Chad Brubaker [Tue, 24 Oct 2017 19:28:37 +0000 (19:28 +0000)]
Merge "Change cleartext traffic permitted default for P apps"

6 years agoMerge "Move mGlobalGids and mSystemPermissions"
TreeHugger Robot [Tue, 24 Oct 2017 18:41:27 +0000 (18:41 +0000)]
Merge "Move mGlobalGids and mSystemPermissions"

6 years agoMerge "GnssLocationProvider: modify "=" restriction to support URL with "=" inside"
TreeHugger Robot [Tue, 24 Oct 2017 18:33:35 +0000 (18:33 +0000)]
Merge "GnssLocationProvider: modify "=" restriction to support URL with "=" inside"

6 years agoExpose SmsMessage#FORMAT_ constants as public APIs.
Jeff Davidson [Fri, 13 Oct 2017 18:23:28 +0000 (11:23 -0700)]
Expose SmsMessage#FORMAT_ constants as public APIs.

These constants are intended to be arguments for
SmsManager#injectSmsPdu which is already public, and they are
referenced from CTS as well. Therefore, they should also be public.

Also add a @StringDef for these values and clean up the Javadoc while
we're here to use properly-linked references to other APIs.

Change-Id: I4e513f49f18350b93cccdc0d8a5847d31eefe7e2
Fixes: 67751433
Test: TreeHugger (no functional changes)

6 years agoMerge "Move mPermissionGroups"
TreeHugger Robot [Tue, 24 Oct 2017 18:22:13 +0000 (18:22 +0000)]
Merge "Move mPermissionGroups"

6 years agoFix SliceProvider threading
Lucas Dupin [Mon, 23 Oct 2017 21:31:45 +0000 (14:31 -0700)]
Fix SliceProvider threading

Binding a slice that lives in the same process would lead to a
deadlock since we'd sleep the main thread while waiting for it
to decrease the CountdownLatch. Now we're checking if we're
already in the main looper and only posting when necessary.

Test: run code in ag/3082570
Change-Id: Id7c4f9dd8d84bf0e513606cbe07bf87750c567e4

6 years agoMerge "Fix several nits"
Yi Jin [Tue, 24 Oct 2017 17:26:51 +0000 (17:26 +0000)]
Merge "Fix several nits"

6 years agoAdd OWNERS for settingslib
jackqdyulei [Wed, 18 Oct 2017 21:00:56 +0000 (14:00 -0700)]
Add OWNERS for settingslib

Bug: 67953936
Test: Manual
Change-Id: Ic1689755060ae3514b7c44f3c3518d511c12d7a4

6 years agoMerge "Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am...
Android Build Merger (Role) [Tue, 24 Oct 2017 17:11:15 +0000 (17:11 +0000)]
Merge "Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c am: a18f840082"

6 years agoMerge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c
Benedict Wong [Tue, 24 Oct 2017 17:09:28 +0000 (17:09 +0000)]
Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1 am: d6ab173f6c
am: a18f840082

Change-Id: I0d1c17c3740983ab0cbc24c2cd0d3a530b56ca99

6 years agoMerge "Add OWNERS for folder inputmethod"
Lei Yu [Tue, 24 Oct 2017 17:07:24 +0000 (17:07 +0000)]
Merge "Add OWNERS for folder inputmethod"

6 years agoMerge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1
Benedict Wong [Tue, 24 Oct 2017 16:54:57 +0000 (16:54 +0000)]
Merge "Return a port from bindToPort() in IpSecService" am: 9305fb7ea1
am: d6ab173f6c

Change-Id: Ie59d496a38bf9775c1f40a543a24cb3fec5719bf

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev am: 81831f89ce
Tenghui Zhu [Tue, 24 Oct 2017 16:50:06 +0000 (16:50 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev am: 81831f89ce
am: fa1d67a6f8

Change-Id: I967e540cd9f40db3f957f188bcf557bc6a95cb9b

6 years agoMerge "Return a port from bindToPort() in IpSecService"
Benedict Wong [Tue, 24 Oct 2017 16:44:59 +0000 (16:44 +0000)]
Merge "Return a port from bindToPort() in IpSecService"
am: 9305fb7ea1

Change-Id: I51705d5db6af560f2423ef7861bfde6734632ec9

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
Tenghui Zhu [Tue, 24 Oct 2017 16:36:28 +0000 (16:36 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
am: 81831f89ce

Change-Id: I0ee4801c31a63b8e617adb053a773456814b65ff

6 years agoMerge "Return a port from bindToPort() in IpSecService"
Benedict Wong [Tue, 24 Oct 2017 16:31:21 +0000 (16:31 +0000)]
Merge "Return a port from bindToPort() in IpSecService"

6 years agoMerge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev
Tenghui Zhu [Tue, 24 Oct 2017 16:22:49 +0000 (16:22 +0000)]
Merge "AAPT leave <gradient> alone for VDC" into oc-mr1-dev

6 years agoMerge changes from topic "delete_setWifiApEnabled"
Rebecca Silberstein [Tue, 24 Oct 2017 16:10:41 +0000 (16:10 +0000)]
Merge changes from topic "delete_setWifiApEnabled"

* changes:
  WifiManager: delete the setWifiApEnabled method
  WifiManager: remove last remnants of setWifiApEnabled

6 years agoMerge "Refactor some WebView loading logic into WebViewLibraryLoader."
TreeHugger Robot [Tue, 24 Oct 2017 15:37:56 +0000 (15:37 +0000)]
Merge "Refactor some WebView loading logic into WebViewLibraryLoader."

6 years agoMerge "Make Session package private."
Bryce Lee [Tue, 24 Oct 2017 14:50:27 +0000 (14:50 +0000)]
Merge "Make Session package private."

6 years agoMake Session package private.
Bryce Lee [Mon, 23 Oct 2017 19:57:37 +0000 (12:57 -0700)]
Make Session package private.

This change requires moving initialization of the mock session until
after the dex flags and mock infrastructure has been set up.

Test: bit FrameworksServicesTests:com.android.server.wm.WindowLayersControllerTests
Change-Id: Icb469d09d8f591da6bb6a81a3741e508a3a03bd5

6 years agoMerge "[Magnifier - 6] Simplify API and configuration"
TreeHugger Robot [Tue, 24 Oct 2017 14:37:53 +0000 (14:37 +0000)]
Merge "[Magnifier - 6] Simplify API and configuration"

6 years agoRefactor some WebView loading logic into WebViewLibraryLoader.
Gustav Sennton [Tue, 24 Oct 2017 13:28:26 +0000 (14:28 +0100)]
Refactor some WebView loading logic into WebViewLibraryLoader.

This is in preparation for a patch which with bigger changes for
WebViewLibraryLoader (including tests).

Bug: 28736099
Test: ensure relro loaded into app process on 32-bit device.
Change-Id: Ic1aef697c1010380d8bce466ee14627d9cdff9e7

6 years agoMove mGlobalGids and mSystemPermissions
Todd Kennedy [Tue, 10 Oct 2017 16:55:53 +0000 (09:55 -0700)]
Move mGlobalGids and mSystemPermissions

This is the last tiny move before moving methods to grant/update
permissions.

Bug: 63539144
Test: Manual. Builds and runs
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermissionTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermission2TestCases
Test: bit FrameworksServicesTests:com.android.server.pm.PackageManagerSettingsTests
Change-Id: Ic2138cf1e442d9d10e8a3ad6dfa24c403aaeca67

6 years agoMove mPermissionGroups
Todd Kennedy [Fri, 6 Oct 2017 20:46:22 +0000 (13:46 -0700)]
Move mPermissionGroups

Bug: 63539144
Test: Manual. Builds and runs
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermissionTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsPermission2TestCases
Test: bit FrameworksServicesTests:com.android.server.pm.PackageManagerSettingsTests
Change-Id: I3b019babc81997d1d70c14675a34b6a8bec5387d

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
Donald Chai [Tue, 24 Oct 2017 11:40:55 +0000 (11:40 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev am: 72b3d46794
am: b08aa082a4

Change-Id: If635231da8db6658ba1e016c4c84292e73972066

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
Donald Chai [Tue, 24 Oct 2017 11:31:04 +0000 (11:31 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev
am: 72b3d46794

Change-Id: I1f87fce18c665433ad916ac47cd3f78ae007c776

6 years agoMerge "AAPT2: Sanitize resource qualifiers before using in split names." into oc...
TreeHugger Robot [Tue, 24 Oct 2017 11:16:03 +0000 (11:16 +0000)]
Merge "AAPT2: Sanitize resource qualifiers before using in split names." into oc-mr1-dev

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58...
Benoit Lamarche [Tue, 24 Oct 2017 10:31:11 +0000 (10:31 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58 am: 4927808d39
am: bbb2eb3f59

Change-Id: Ic33dffeeac6445773de09ec9c1cb4bc3b79ae5ea

6 years agoMerge "Preserve order of shared library files" am: 596bb64796 am: e74db7c7e2 -s...
Paul Duffin [Tue, 24 Oct 2017 10:20:16 +0000 (10:20 +0000)]
Merge "Preserve order of shared library files" am: 596bb64796 am: e74db7c7e2  -s ours
am: 46080df911  -s ours

Change-Id: I7ebb756b46dd5d35c20af6179b43ad126cb7bf0b

6 years ago[Magnifier - 6] Simplify API and configuration
Andrei Stingaceanu [Tue, 24 Oct 2017 10:17:35 +0000 (11:17 +0100)]
[Magnifier - 6] Simplify API and configuration

* removed "scale" from the show(...) API
* made the zoom scale a dimension => the widget is
  fully self-configured
* fixed the magnifier not always scaling the content
  to the full pop-up window size

Bug: 63531115
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: Ibf5c571970c8f6bd3cdbc6d46fbe57d08291783c

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58
Benoit Lamarche [Tue, 24 Oct 2017 10:13:58 +0000 (10:13 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection" am: 5aa4dafa58
am: 4927808d39

Change-Id: I718efd7536331508531bb7c30dfab3638ef60d0e

6 years agoMerge "Preserve order of shared library files" am: 596bb64796
Paul Duffin [Tue, 24 Oct 2017 10:07:37 +0000 (10:07 +0000)]
Merge "Preserve order of shared library files" am: 596bb64796
am: e74db7c7e2  -s ours

Change-Id: I52c45674dc6ddf972694d4e4dc71856453e68a96

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
Benoit Lamarche [Tue, 24 Oct 2017 08:54:09 +0000 (08:54 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
am: 5aa4dafa58

Change-Id: Ic8f892399cdfa746a2fab4a841469f41f0fe98f5

6 years agoMerge "Use ASM6 Opcodes everywhere in locked_region_code_injection"
Benoit Lamarche [Tue, 24 Oct 2017 08:42:10 +0000 (08:42 +0000)]
Merge "Use ASM6 Opcodes everywhere in locked_region_code_injection"

6 years agoMerge "Preserve order of shared library files"
Paul Duffin [Tue, 24 Oct 2017 07:59:35 +0000 (07:59 +0000)]
Merge "Preserve order of shared library files"
am: 596bb64796

Change-Id: I95c1cd65ded3b3d14b7f916c8a10825399e7b8ec

6 years agoMerge "Preserve order of shared library files"
Paul Duffin [Tue, 24 Oct 2017 07:48:13 +0000 (07:48 +0000)]
Merge "Preserve order of shared library files"

6 years agoMerge changes from topic "bt_get_cod" am: 35dc02004c am: 178e5873b0
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:47:51 +0000 (06:47 +0000)]
Merge changes from topic "bt_get_cod" am: 35dc02004c am: 178e5873b0
am: f7e25297ae

Change-Id: Ic6d8ff403f54e54d9b353f67f76851bd46b0aff6

6 years agoMerge changes from topic "bt_get_cod" am: 35dc02004c
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:36:52 +0000 (06:36 +0000)]
Merge changes from topic "bt_get_cod" am: 35dc02004c
am: 178e5873b0

Change-Id: I3fef3c3a196af47518affea2ecac04ccadf4de4e

6 years agoMerge "Persist Bluetooth CoD config value across reboot" am: ba45409c92 am: b977674b17
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:32:30 +0000 (06:32 +0000)]
Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92 am: b977674b17
am: 7cc5e10c2f

Change-Id: I4a0d1e8cc4f879896c3029a8f871d794362e0bca

6 years agoMerge changes from topic "bt_get_cod"
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:27:23 +0000 (06:27 +0000)]
Merge changes from topic "bt_get_cod"
am: 35dc02004c

Change-Id: Iec67ef3cc9c990b4d5285b23b51972915cbbd335

6 years agoMerge "Persist Bluetooth CoD config value across reboot" am: ba45409c92
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:22:08 +0000 (06:22 +0000)]
Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92
am: b977674b17

Change-Id: I6b6745eb558d664e1f17d5e808c66990cd0038eb

6 years agoMerge changes from topic "bt_get_cod"
Treehugger Robot [Tue, 24 Oct 2017 06:14:37 +0000 (06:14 +0000)]
Merge changes from topic "bt_get_cod"

* changes:
  Add missing intents to protected broadcasts
  Get Bluetooth Class of Device

6 years agoMerge "Persist Bluetooth CoD config value across reboot"
Pulkit Bhuwalka [Tue, 24 Oct 2017 06:13:48 +0000 (06:13 +0000)]
Merge "Persist Bluetooth CoD config value across reboot"
am: ba45409c92

Change-Id: I4d28d0b1b52e587285d3b92b66fdc4b6c1b38720

6 years agoAdd missing intents to protected broadcasts
Pulkit Bhuwalka [Tue, 26 Sep 2017 02:19:46 +0000 (19:19 -0700)]
Add missing intents to protected broadcasts

Intents broadcasted by the Bluetooth stack need to be added to protected
broadcasts else they complain with errors in the log since Bluetooth is
considered a system process. A few of these intents, especially AVRCP
intents were missing in the list.

Bug: None
Test: Verified errors don't show up after introducing the intents while
playing on a sink device.

Change-Id: Ie283c50243d9a1bac3fd937f58bc1ddc20867d2f

6 years agoGet Bluetooth Class of Device
Pulkit Bhuwalka [Wed, 20 Sep 2017 22:10:45 +0000 (15:10 -0700)]
Get Bluetooth Class of Device

Adds API to fetch Bluetooth CoD value of the stack. The API is hidden to
only be used by System code.

Bug: 36015415
Test: Verified fetching of COD from test app on flashed device, after modification
and after after reboot.

Change-Id: Ie35ecf141704c2aac46678da7cabdc7203a088f2

6 years agoMerge "Persist Bluetooth CoD config value across reboot"
Treehugger Robot [Tue, 24 Oct 2017 06:05:45 +0000 (06:05 +0000)]
Merge "Persist Bluetooth CoD config value across reboot"

6 years agoMerge "Prevent restoring task when updating task"
TreeHugger Robot [Tue, 24 Oct 2017 01:50:51 +0000 (01:50 +0000)]
Merge "Prevent restoring task when updating task"

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28...
Hugo Benichi [Tue, 24 Oct 2017 00:35:31 +0000 (00:35 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28 am: a3e7c1a3db
am: 47fb2aa929

Change-Id: I2a46f705a2a28c1e09d50a853f11edef13ad6821

6 years agoMerge "Move SimStatus and ImeiInfo Pref Controllers to SettingsLib"
TreeHugger Robot [Tue, 24 Oct 2017 00:28:00 +0000 (00:28 +0000)]
Merge "Move SimStatus and ImeiInfo Pref Controllers to SettingsLib"

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28
Hugo Benichi [Tue, 24 Oct 2017 00:25:11 +0000 (00:25 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats" am: 64ef2a4d28
am: a3e7c1a3db

Change-Id: Iaad5f5b142209ce36f70249a438b3dd66fb92f07

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats"
Hugo Benichi [Tue, 24 Oct 2017 00:14:48 +0000 (00:14 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats"
am: 64ef2a4d28

Change-Id: I7f25f4ed42f0aecea7a1bb09b8c65a5d2e4a84cd

6 years agoMerge "NetdEventListener: add rolling log of connect and dns stats"
Hugo Benichi [Mon, 23 Oct 2017 23:54:53 +0000 (23:54 +0000)]
Merge "NetdEventListener: add rolling log of connect and dns stats"

6 years agoMerge "Export AIDL for keystore Android.bp."
Jeff Sharkey [Mon, 23 Oct 2017 23:50:52 +0000 (23:50 +0000)]
Merge "Export AIDL for keystore Android.bp."

6 years agoFix several nits
Yi Jin [Mon, 23 Oct 2017 22:42:44 +0000 (15:42 -0700)]
Fix several nits

1. Change the APIs of ProtoOutputStream to be able to write bytes
2. Fix the tests in incidentd, stdout is closed so can't capture the
value, use temporaryFile instead.

Test: N/A
Change-Id: Ibc31f2efd068afc6c06188d92f57ca5a754c3683

6 years agoPrevent restoring task when updating task
Winson Chung [Mon, 23 Oct 2017 18:10:58 +0000 (11:10 -0700)]
Prevent restoring task when updating task

Cherry-pick from: Ie501add4b72a63be0b8514136f10a09fbdd0c6c3

Symptom: App activity shown between launcher & wallpaper.

RootCause:
Some AM public Apis (getTaskInfo(), setExcluteFromRecent()) will calling
AM.anyTaskForIdLocked with MATCH_TASK_IN_STACKS_OR_RECENT_TASKS_AND_RESTORE
parameter to get task record & add task into stack bottom,
that will affect wm side also create task & bring task stack to bottom
due to task.createWindowContainer() in restoreRecentTaskLocked().

Solution:
using MATCH_TASK_IN_STACKS_OR_RECENT_TASKS to get task record without
restore record into stack.

Bug: 67634904
Test: As below issue described sample app flows. b/68038609

Change-Id: I8241c0956a3323a70e754c794dd562540ff4eaf4
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoMerge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3 am: c8a370aeba
Hansong Zhang [Mon, 23 Oct 2017 22:59:33 +0000 (22:59 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3 am: c8a370aeba
am: 5140894a5d  -s ours

Change-Id: I2a9e23646d21bc97b02e9648704e5f766432d3cd

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3
Hansong Zhang [Mon, 23 Oct 2017 22:46:31 +0000 (22:46 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3
am: c8a370aeba

Change-Id: I2c5da84f5b57496e2a0ef45fb17085670f7465a9

6 years agoMerge "Anomaly detection for count reads from config"
TreeHugger Robot [Mon, 23 Oct 2017 22:36:01 +0000 (22:36 +0000)]
Merge "Anomaly detection for count reads from config"

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)"
Hansong Zhang [Mon, 23 Oct 2017 22:33:50 +0000 (22:33 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)"
am: 8218b219f3

Change-Id: Ic085deaa070b4008b34d03b507f81a5df220764a

6 years agoMerge "Change Bluetooth HID Profile Name (1/6)"
Treehugger Robot [Mon, 23 Oct 2017 22:22:41 +0000 (22:22 +0000)]
Merge "Change Bluetooth HID Profile Name (1/6)"

6 years agoMerge "Stop octopus animation when paused"
TreeHugger Robot [Mon, 23 Oct 2017 22:21:43 +0000 (22:21 +0000)]
Merge "Stop octopus animation when paused"

6 years agoChange Bluetooth HID Profile Name (1/6)
Hansong Zhang [Fri, 20 Oct 2017 22:55:59 +0000 (15:55 -0700)]
Change Bluetooth HID Profile Name (1/6)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

(Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71)
Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f

6 years agoMerge "Skip blocking InputConnection APIs after unbind"
TreeHugger Robot [Mon, 23 Oct 2017 22:10:02 +0000 (22:10 +0000)]
Merge "Skip blocking InputConnection APIs after unbind"

6 years agoExport AIDL for keystore Android.bp.
Jeff Sharkey [Mon, 23 Oct 2017 22:04:31 +0000 (16:04 -0600)]
Export AIDL for keystore Android.bp.

Test: builds, boots
Bug: 67041047
Change-Id: Iaff1de1f9c015a824ffc1f4946ced4a13d9bd7c1

6 years agoMerge "Change Bluetooth HID Profile Name (1/11)"
TreeHugger Robot [Mon, 23 Oct 2017 21:15:46 +0000 (21:15 +0000)]
Merge "Change Bluetooth HID Profile Name (1/11)"

6 years agoAdd OWNERS for folder inputmethod
jackqdyulei [Wed, 18 Oct 2017 23:05:00 +0000 (16:05 -0700)]
Add OWNERS for folder inputmethod

Bug: 67953936
Test: Manual
Change-Id: I83a96aac64024e57707f9024b9c3d9e681568ba2

6 years agoMerge "Add config to display VM number as default number of CF" am: 3e26cb18fb am...
Jordan Liu [Mon, 23 Oct 2017 21:04:29 +0000 (21:04 +0000)]
Merge "Add config to display VM number as default number of CF" am: 3e26cb18fb am: 9953542c3a
am: d44b0c454f

Change-Id: I8b9025467e1ebf9c74438eddbf1273fc53f3af53

6 years agoStop octopus animation when paused
Dan Sandler [Wed, 18 Oct 2017 20:06:28 +0000 (16:06 -0400)]
Stop octopus animation when paused

Bug: 65597560
Test: 1. launch easter egg
         adb shell am start \
           -a android.intent.action.MAIN \
           -c com.android.internal.category.PLATLOGO
      2. go home
         adb shell input keyevent 3
      3. ensure octo is not consuming CPU
         adb shell top

Change-Id: I5e95e56ddb212f951b461264d3af40682d08fee3

6 years agoMerge "Add config to display VM number as default number of CF" am: 3e26cb18fb
Jordan Liu [Mon, 23 Oct 2017 20:48:04 +0000 (20:48 +0000)]
Merge "Add config to display VM number as default number of CF" am: 3e26cb18fb
am: 9953542c3a

Change-Id: I93696ab322ca9a2edcbf03efeb33cbf9f6c6279a

6 years agoMerge "Add config to display VM number as default number of CF"
Jordan Liu [Mon, 23 Oct 2017 20:39:20 +0000 (20:39 +0000)]
Merge "Add config to display VM number as default number of CF"
am: 3e26cb18fb

Change-Id: Ie332a31b699b375d7a9ff56f314346546244010e

6 years agoAnomaly detection for count reads from config
Bookatz [Thu, 19 Oct 2017 17:13:49 +0000 (10:13 -0700)]
Anomaly detection for count reads from config

Count anomaly detection now reads in parameters from the config.
Also adds refractory period.

Test: Manually, using ConfigManager's fake config
Change-Id: I5618c0c6dcd6ef35e14d32315d5ea75ba58f0031

6 years agoGnssLocationProvider: modify "=" restriction to support URL with "=" inside
Zheng Zhang [Mon, 16 Oct 2017 17:27:28 +0000 (10:27 -0700)]
GnssLocationProvider: modify "=" restriction to support URL with "=" inside

Bug: 67846626
Change-Id: I0a1f2de573bfd5e2043d6a24c91564817186074b

6 years agoMerge "Add config to display VM number as default number of CF"
Jordan Liu [Mon, 23 Oct 2017 20:27:28 +0000 (20:27 +0000)]
Merge "Add config to display VM number as default number of CF"

6 years agoChange cleartext traffic permitted default for P apps
Chad Brubaker [Thu, 19 Oct 2017 20:23:47 +0000 (13:23 -0700)]
Change cleartext traffic permitted default for P apps

For applications targeting P and above the network security
config's cleartextTrafficPermitted will default to false instead of
the previous true.

Bug: 63931636
Test: network security config cts tests
Change-Id: Ia697358ad84e2092443c3eff518003c6a11e4630

6 years agoMerge "Allow package local mocking for ActivityManager Unit Tests."
Bryce Lee [Mon, 23 Oct 2017 20:07:42 +0000 (20:07 +0000)]
Merge "Allow package local mocking for ActivityManager Unit Tests."

6 years agoMerge "[PASSPOINT] Add API to return all matching configurations"
Etan Cohen [Mon, 23 Oct 2017 19:58:32 +0000 (19:58 +0000)]
Merge "[PASSPOINT] Add API to return all matching configurations"

6 years agoMerge "Add pushing many batterystats events to statsd"
TreeHugger Robot [Mon, 23 Oct 2017 19:43:50 +0000 (19:43 +0000)]
Merge "Add pushing many batterystats events to statsd"

6 years agoMerge "Updated the whitelist to match the state of platform apps"
Fyodor Kupolov [Mon, 23 Oct 2017 19:34:31 +0000 (19:34 +0000)]
Merge "Updated the whitelist to match the state of platform apps"

6 years agoMerge "Throw clear error if a row doesn't fit into CursorWindow"
Fyodor Kupolov [Mon, 23 Oct 2017 18:44:23 +0000 (18:44 +0000)]
Merge "Throw clear error if a row doesn't fit into CursorWindow"

6 years agoMerge "Rename registerLanguageList to registerLocaleList."
TreeHugger Robot [Mon, 23 Oct 2017 18:37:49 +0000 (18:37 +0000)]
Merge "Rename registerLanguageList to registerLocaleList."

6 years agoMerge "Refactor MetricProducer so that a big chunk of boiler plate code can be removed."
TreeHugger Robot [Mon, 23 Oct 2017 18:21:04 +0000 (18:21 +0000)]
Merge "Refactor MetricProducer so that a big chunk of boiler plate code can be removed."

6 years agoMerge "Don't wait for NFC when shutting down."
TreeHugger Robot [Mon, 23 Oct 2017 18:04:13 +0000 (18:04 +0000)]
Merge "Don't wait for NFC when shutting down."

6 years agoMerge "Add setTime and setTimeZone API."
Yueming Wang [Mon, 23 Oct 2017 17:29:09 +0000 (17:29 +0000)]
Merge "Add setTime and setTimeZone API."

6 years agoAdd pushing many batterystats events to statsd
Bookatz [Tue, 10 Oct 2017 22:49:28 +0000 (15:49 -0700)]
Add pushing many batterystats events to statsd

Statsd is now informed for starts/stops/etc of the following events:
BleScan
BleScanUnoptimized
BleScanResult
Sensor
Gps
Sync
ScheduledJob
UidWakelock (aggregate wakelock)
LongPartialWakelock
BatterySaverMode (power save mode)
DeviceIdleMode (doze)
ScreenBrightness
Audio
Video (media codec)
Camera
Flashlight
ProcessLifeCycle

TODO: Note that, although tags are java constants (e.g.
StatsLog.SCREEN_STATE), the values passed in for states do not have java
constants associated with them, so we use literals (0 vs 1 for off vs
on). In the future, when corresponding java constants exist, these can
be updated.

Test: manually confirmed statslog received each type of events
Change-Id: I24282cdb56265bba61dceb0932112804273dcfc8

6 years agoAllow package local mocking for ActivityManager Unit Tests.
Bryce Lee [Mon, 23 Oct 2017 17:01:21 +0000 (10:01 -0700)]
Allow package local mocking for ActivityManager Unit Tests.

Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests
Change-Id: I0d1c807681e945b65e2dd9a7d0baa5fc59c8d259

6 years agoChange Bluetooth HID Profile Name (1/11)
Hansong Zhang [Fri, 20 Oct 2017 22:55:59 +0000 (15:55 -0700)]
Change Bluetooth HID Profile Name (1/11)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f

6 years agoMerge "Removed .aidl files that are not used on other.aidl files."
TreeHugger Robot [Mon, 23 Oct 2017 15:22:49 +0000 (15:22 +0000)]
Merge "Removed .aidl files that are not used on other.aidl files."

6 years agoPreserve order of shared library files
Paul Duffin [Mon, 2 Oct 2017 09:23:25 +0000 (10:23 +0100)]
Preserve order of shared library files

Shared libraries are stored in a list so order is preserved. However,
when they are resolved to files, e.g. for use as a class path the
file names are added to an ArraySet which loses the order. Presumably
they are added to a Set to eliminate duplicates. This switches to a
LinkedHashSet which will preserve the order in which the files are
added while still avoiding duplicates.

It is possible that this could cause app compatibility issues as the
order in which shared libraries is being added is changing. Problems can
only arise if two libraries whose order changes have duplicate classes
and/or resources. In that case the app was only working by luck, as the
order provided by ArraySet is based on the numerical order of hash
codes.

This was found while investigating performance regressions in
GoogleDialer, unfortunately it does not fix the regressions.

Bug: 65552462
Test: flash -w and systrace GoogleDialer to ensure correct order
Change-Id: I0e94471cc481437712f7cf0dab63d88f50cf3b14
Merged-In: Ia01ce4821fa53e4785716b72c4f87a0b0ab4dcc8

6 years agoMerge "[Magnifier - 5] Auto invalidate and misc"
TreeHugger Robot [Mon, 23 Oct 2017 14:09:01 +0000 (14:09 +0000)]
Merge "[Magnifier - 5] Auto invalidate and misc"

6 years agoMerge "Allow mocking package local stuff"
TreeHugger Robot [Mon, 23 Oct 2017 13:04:28 +0000 (13:04 +0000)]
Merge "Allow mocking package local stuff"

6 years agoMerge "AM: clean up screen pinning toasts."
Charles He [Mon, 23 Oct 2017 12:41:04 +0000 (12:41 +0000)]
Merge "AM: clean up screen pinning toasts."

6 years agoAllow mocking package local stuff
Jorim Jaggi [Fri, 20 Oct 2017 13:07:41 +0000 (15:07 +0200)]
Allow mocking package local stuff

Test: Tested in depending CL
Change-Id: If3a794fe6cc21b99c7b02a6af52d9d9c1027c0ae

6 years ago[Magnifier - 5] Auto invalidate and misc
Andrei Stingaceanu [Thu, 19 Oct 2017 16:02:22 +0000 (17:02 +0100)]
[Magnifier - 5] Auto invalidate and misc

* due to having to make the API public, drop the
  invalidate_by_client strategy in favor of self invalidation
  by polling
* in Magnifier#show(...) stop sending screen coordinates in favor
  of view coordinates
* UI/UX:
** width from 200dp to 164dp
** fixed the shadow depth (elevation)
** fixed the rounded corners (2dp)

Bug: 63531115
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: manual test that shows the magnifier working
Change-Id: I6451767b0a618c0c4ea396ba3ee3144523dadc57

6 years agoAM: clean up screen pinning toasts.
Charles He [Mon, 23 Oct 2017 10:06:23 +0000 (11:06 +0100)]
AM: clean up screen pinning toasts.

We remove the unnecessary handler thread logic in LockTaskNotify, as all
toasts are already called from the handler thread in LockTaskController.

Bug: 67934620
Test: bit FrameworksServicesTests:com.android.server.am.LockTaskControllerTest
Change-Id: I5019158b649b7b5f2eac4759dab817fa5f443a76

6 years agoAdd setTime and setTimeZone API.
yuemingw [Thu, 12 Oct 2017 15:52:11 +0000 (16:52 +0100)]
Add setTime and setTimeZone API.

Fix: 67497358
Test: wait for cts test in the following cl. For unitest:
 runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java

Add setTime and setTimeZone API in devicepolicymanager.
Add unitest for each API.
Following design doc: https://docs.google.com/document/d/1NV93mr2CT157S_haru1QbKo9HLeP9iPM9eMiGfVmfCM/edit

Change-Id: I188c27b0b99137b6f01e42ae1ad49356ce0a81b2

6 years agoUse ASM6 Opcodes everywhere in locked_region_code_injection
Benoit Lamarche [Mon, 23 Oct 2017 09:21:01 +0000 (11:21 +0200)]
Use ASM6 Opcodes everywhere in locked_region_code_injection

And use the same constant everywhere.

Test: treehugger
Bug: 67676752
Change-Id: I5735aba76266118471677f962fab50dbb0be187b

6 years agoPersist Bluetooth CoD config value across reboot
Pulkit Bhuwalka [Tue, 26 Sep 2017 00:55:12 +0000 (17:55 -0700)]
Persist Bluetooth CoD config value across reboot

Create new Settings key for storage and update the API doc.

Bug: 36015415
Test: Verified by storing a value through a test app and restarting the
machine to ensure it's picked up.

Change-Id: I94aa054e525c4656bb3a824a29cae9c88f8904e0