OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Do not return pointer to freed memory"
TreeHugger Robot [Thu, 4 Jan 2018 22:57:25 +0000 (22:57 +0000)]
Merge "Do not return pointer to freed memory"

6 years agoMerge "Use TimeUnit enum to specify the bucket size."
TreeHugger Robot [Thu, 4 Jan 2018 22:53:29 +0000 (22:53 +0000)]
Merge "Use TimeUnit enum to specify the bucket size."

6 years agoMerge "Only show the lockdown button when its possible to enter lockdown"
Chad Brubaker [Thu, 4 Jan 2018 22:23:19 +0000 (22:23 +0000)]
Merge "Only show the lockdown button when its possible to enter lockdown"

6 years agoMerge "Using RenderNode for creating snapshot of a View, so that hardware bitmaps...
TreeHugger Robot [Thu, 4 Jan 2018 22:05:37 +0000 (22:05 +0000)]
Merge "Using RenderNode for creating snapshot of a View, so that hardware bitmaps are drawn properly"

6 years agoMerge "Revert "Fixed RTL alignment issue in suggested language list""
Maurice Lam [Thu, 4 Jan 2018 22:05:12 +0000 (22:05 +0000)]
Merge "Revert "Fixed RTL alignment issue in suggested language list""

6 years agoMerge "Validate hotspot when loading PointerIcon from resource"
TreeHugger Robot [Thu, 4 Jan 2018 21:54:40 +0000 (21:54 +0000)]
Merge "Validate hotspot when loading PointerIcon from resource"

6 years agoMerge "camera: Add device info version"
TreeHugger Robot [Thu, 4 Jan 2018 21:52:25 +0000 (21:52 +0000)]
Merge "camera: Add device info version"

6 years agoMerge changes I1a61a5c9,I7e0dc28f,If0c923b3
TreeHugger Robot [Thu, 4 Jan 2018 21:38:29 +0000 (21:38 +0000)]
Merge changes I1a61a5c9,I7e0dc28f,If0c923b3

* changes:
  Rethrow RemoteException instead of log in ContextHubManager
  Remove unnecessary log from ContextHubManager
  Remove legacy bug comment in NanoAppInstanceInfo

6 years agoMerge "Clarify accessibility event documentation"
TreeHugger Robot [Thu, 4 Jan 2018 21:30:13 +0000 (21:30 +0000)]
Merge "Clarify accessibility event documentation"

6 years agoMerge "Dump Proto to a csv"
Yi Jin [Thu, 4 Jan 2018 21:09:39 +0000 (21:09 +0000)]
Merge "Dump Proto to a csv"

6 years agoMerge "Add subtype to indicate accessibility text"
Mady Mellor [Thu, 4 Jan 2018 21:02:44 +0000 (21:02 +0000)]
Merge "Add subtype to indicate accessibility text"

6 years agoUse TimeUnit enum to specify the bucket size.
Yangster-mac [Thu, 4 Jan 2018 18:56:23 +0000 (10:56 -0800)]
Use TimeUnit enum to specify the bucket size.

Test: all statsd unit test passed

Change-Id: I4f6b80ba2f8c984b06e46e6de6df3e546e99a968

6 years agoDo not return pointer to freed memory
Siarhei Vishniakou [Thu, 4 Jan 2018 21:00:48 +0000 (13:00 -0800)]
Do not return pointer to freed memory

Since the code was changed to use std::string instead of String8, it is
no longer safe to pass a raw pointer to internal memory of the string
object, since std::string creates a copy even if the data itself is not
being modified.
Instead, return std::string to the calling function and let the function
access the pointer when necessary.

Bug: 71541263
Test: boot up asan build on pixel 2 xl, then interact with google
calendar and chrome. Observe no crashes with the patch.

Change-Id: I6af2d23985d0553dd0707ad985f7f1e7b2240611

6 years agoMerge "Make print options layout respect RTL"
TreeHugger Robot [Thu, 4 Jan 2018 20:40:04 +0000 (20:40 +0000)]
Merge "Make print options layout respect RTL"

6 years agoMerge "Default grant coarse loc perm to use-open-wifi app"
TreeHugger Robot [Thu, 4 Jan 2018 20:24:39 +0000 (20:24 +0000)]
Merge "Default grant coarse loc perm to use-open-wifi app"

6 years agoMerge "Don't allow 0-sized views to be focused."
Evan Rosky [Thu, 4 Jan 2018 20:19:43 +0000 (20:19 +0000)]
Merge "Don't allow 0-sized views to be focused."

6 years agoMerge "use only string type in the log source whitelist."
TreeHugger Robot [Thu, 4 Jan 2018 19:39:46 +0000 (19:39 +0000)]
Merge "use only string type in the log source whitelist."

6 years agoMerge "Add WindowState and LayoutParams proto"
TreeHugger Robot [Thu, 4 Jan 2018 19:17:51 +0000 (19:17 +0000)]
Merge "Add WindowState and LayoutParams proto"

6 years agoMerge "[AWARE][RTT] Check for null callback registration"
TreeHugger Robot [Thu, 4 Jan 2018 19:15:46 +0000 (19:15 +0000)]
Merge "[AWARE][RTT] Check for null callback registration"

6 years agoMerge "Fix CTS Test Dual Stack Test Passing Issue" am: ae81e15c9c am: a19acb6ac8
Manoj Boopathi Raj [Thu, 4 Jan 2018 19:07:19 +0000 (19:07 +0000)]
Merge "Fix CTS Test Dual Stack Test Passing Issue" am: ae81e15c9c am: a19acb6ac8
am: 5c18216aa7

Change-Id: I39839d144f75340c1b327ed0af180e66db770914

6 years agoDump Proto to a csv
Yi Jin [Fri, 17 Nov 2017 02:19:45 +0000 (18:19 -0800)]
Dump Proto to a csv

Bug: 69427323
Test: N/A
Change-Id: I1b89898afc30d5a0df6355ee1f6477df8d271f98

6 years agoMerge "Refactored Field Classification score logic so it can be moved to ExtServices."
TreeHugger Robot [Thu, 4 Jan 2018 19:00:40 +0000 (19:00 +0000)]
Merge "Refactored Field Classification score logic so it can be moved to ExtServices."

6 years agoMerge "Fix CTS Test Dual Stack Test Passing Issue" am: ae81e15c9c
Manoj Boopathi Raj [Thu, 4 Jan 2018 18:59:41 +0000 (18:59 +0000)]
Merge "Fix CTS Test Dual Stack Test Passing Issue" am: ae81e15c9c
am: a19acb6ac8

Change-Id: Ica9ded5c7bdbeb243c63a3ebb1ca273d4c8f4138

6 years agoMerge "Fix wrong attribute name used to restore databaseVersion."
TreeHugger Robot [Thu, 4 Jan 2018 18:53:26 +0000 (18:53 +0000)]
Merge "Fix wrong attribute name used to restore databaseVersion."

6 years agoMerge "Fix CTS Test Dual Stack Test Passing Issue"
Manoj Boopathi Raj [Thu, 4 Jan 2018 18:51:12 +0000 (18:51 +0000)]
Merge "Fix CTS Test Dual Stack Test Passing Issue"
am: ae81e15c9c

Change-Id: I30778e45730e79bc071344fb31fd0038d739ee9d

6 years agoMerge "Ensure the correct animation bounds for STACK_CLIP_BEFORE"
Chavi Weingarten [Thu, 4 Jan 2018 18:48:46 +0000 (18:48 +0000)]
Merge "Ensure the correct animation bounds for STACK_CLIP_BEFORE"

6 years agoDefault grant coarse loc perm to use-open-wifi app
Eric Enslen [Mon, 18 Dec 2017 19:30:21 +0000 (11:30 -0800)]
Default grant coarse loc perm to use-open-wifi app

Bug: 70843697
Test: flashed onto walleye and confirmed permission granted when WFA is
enabled.

Change-Id: Ic53886478ec6b8bef311f2f94e0976f7870c8cd1

6 years agoMerge "incidentd: Updating BatteryStats process states."
TreeHugger Robot [Thu, 4 Jan 2018 18:41:25 +0000 (18:41 +0000)]
Merge "incidentd: Updating BatteryStats process states."

6 years agoMerge "Added new Autofill APIs to get name of id used on android:text."
TreeHugger Robot [Thu, 4 Jan 2018 18:40:24 +0000 (18:40 +0000)]
Merge "Added new Autofill APIs to get name of id used on android:text."

6 years agoMerge "Fix CTS Test Dual Stack Test Passing Issue"
Manoj Boopathi Raj [Thu, 4 Jan 2018 18:32:00 +0000 (18:32 +0000)]
Merge "Fix CTS Test Dual Stack Test Passing Issue"

6 years agoClarify accessibility event documentation
Phil Weaver [Thu, 21 Dec 2017 19:49:18 +0000 (11:49 -0800)]
Clarify accessibility event documentation

Removing suggestions to get information from events that
can instead be extracted from the node hierarchy.

Clarifying window change and announcement.

Comment changes only. I'm trying to steer developers to
use the APIs as we currently thing about them, but I'm
not changing any behavior.

Test: make
Change-Id: Ieecedbb98bdf11cf0cf4a29856db497986faaca6

6 years agoMerge "Save PiP activity position on screen for next re-entry into PiP."
Winson Chung [Thu, 4 Jan 2018 18:25:50 +0000 (18:25 +0000)]
Merge "Save PiP activity position on screen for next re-entry into PiP."

6 years agouse only string type in the log source whitelist.
Yao Chen [Fri, 22 Dec 2017 22:35:34 +0000 (14:35 -0800)]
use only string type in the log source whitelist.

+ predefined "AID_X" will be provided as string type to statsd, and we will translate
  to integer uid using the static map.

Test: statsd_test

Change-Id: Ie47d8481e0c456457e6881ebb9cb4ce008e772b8

6 years agoMerge "Track brightness changes in nits rather than backlight values."
TreeHugger Robot [Thu, 4 Jan 2018 17:51:29 +0000 (17:51 +0000)]
Merge "Track brightness changes in nits rather than backlight values."

6 years agoUsing RenderNode for creating snapshot of a View, so that hardware
Sunny Goyal [Thu, 4 Jan 2018 17:37:22 +0000 (09:37 -0800)]
Using RenderNode for creating snapshot of a View, so that hardware
bitmaps are drawn properly

Test: atest FrameworksCoreTests:ViewCaptureTest
Change-Id: Ie137e8a73fb84665df7a55facd02b10d78764c80

6 years agoRethrow RemoteException instead of log in ContextHubManager
Arthur Ishiguro [Sat, 23 Dec 2017 00:21:53 +0000 (16:21 -0800)]
Rethrow RemoteException instead of log in ContextHubManager

Bug: 67734082
Test: Compile only
Change-Id: I1a61a5c9f47652539f7e1dac3a0c5306e994fcd4

6 years agoRemove unnecessary log from ContextHubManager
Arthur Ishiguro [Sat, 23 Dec 2017 00:16:12 +0000 (16:16 -0800)]
Remove unnecessary log from ContextHubManager

Bug: 67734082
Test: None
Change-Id: I7e0dc28f6ee502cc2a9993b5f82bb3409a65aeb3

6 years agoRemove legacy bug comment in NanoAppInstanceInfo
Arthur Ishiguro [Sat, 23 Dec 2017 00:11:29 +0000 (16:11 -0800)]
Remove legacy bug comment in NanoAppInstanceInfo

This was resolved during the redesign of the service.

Bug: 30970527
Test: None
Change-Id: If0c923b37a88e65216eba623c4898c04c7b02d58

6 years agoMerge changes from topic "StorageUnitTranslation"
Victor Chang [Thu, 4 Jan 2018 17:35:19 +0000 (17:35 +0000)]
Merge changes from topic "StorageUnitTranslation"

* changes:
  Revert "Switch file size formatters to use ICU's MeasureFormat"
  Revert "Remove use of MeasureUnit.internalGetInstance"

6 years agoMerge "Make accessibility window events more granular"
Phil Weaver [Thu, 4 Jan 2018 17:09:35 +0000 (17:09 +0000)]
Merge "Make accessibility window events more granular"

6 years agoMerge "Removing unused colors."
TreeHugger Robot [Thu, 4 Jan 2018 17:07:38 +0000 (17:07 +0000)]
Merge "Removing unused colors."

6 years agoMerge "Update the ttc index attribute documentation"
TreeHugger Robot [Thu, 4 Jan 2018 16:25:13 +0000 (16:25 +0000)]
Merge "Update the ttc index attribute documentation"

6 years agoMerge "Fix broken build due to missing imports in device owner transfer functionality."
Martijn Coenen [Thu, 4 Jan 2018 15:55:01 +0000 (15:55 +0000)]
Merge "Fix broken build due to missing imports in device owner transfer functionality."

6 years agoAdd WindowState and LayoutParams proto
Vishnu Nair [Thu, 4 Jan 2018 15:53:00 +0000 (07:53 -0800)]
Add WindowState and LayoutParams proto

Bug: 64831661
Test: verify data using winscope
Change-Id: I91c9abcdbc45b53ed5f354e173e6fd03396e2744

6 years agoFix broken build due to missing imports in device owner transfer functionality.
arangelov [Thu, 4 Jan 2018 15:52:12 +0000 (15:52 +0000)]
Fix broken build due to missing imports in device owner transfer functionality.

Test: None
Change-Id: Ib3563349fe754bd47166d473387ab1fb21c441c8

6 years agoMerge "Avoid setting size/position on Transaction if not needed"
Jorim Jaggi [Thu, 4 Jan 2018 15:39:25 +0000 (15:39 +0000)]
Merge "Avoid setting size/position on Transaction if not needed"

6 years ago[AWARE][RTT] Check for null callback registration
Etan Cohen [Thu, 4 Jan 2018 15:34:50 +0000 (07:34 -0800)]
[AWARE][RTT] Check for null callback registration

Check on the manager side for null callback registration and throw
and exception.

Should be done in addition to service side checks since, in well
behaved apps (which don't bypass the manager), the callback registered
with the service is a proxy wrapper for the user-provided callback.

Bug: 71575804
Test: unit test & integration tests
Change-Id: Ice6585fccb13d842d9518b1f60bff911fb66c48f

6 years agoMerge "Correct Telephony source directory to match package."
Jake Wharton [Thu, 4 Jan 2018 15:19:54 +0000 (15:19 +0000)]
Merge "Correct Telephony source directory to match package."

6 years agoCorrect Telephony source directory to match package.
Jake Wharton [Wed, 3 Jan 2018 22:16:43 +0000 (17:16 -0500)]
Correct Telephony source directory to match package.

Test: none
Bug: 71549250
Change-Id: I3e4c1d67240d83712f96d076d650af464a9c8277

6 years agoMerge "Add device owner transfer functionality."
Antoan Angelov [Thu, 4 Jan 2018 15:07:03 +0000 (15:07 +0000)]
Merge "Add device owner transfer functionality."

6 years agoMerge "Address review comments from 02a1c08"
Bartosz Fabianowski [Thu, 4 Jan 2018 14:40:06 +0000 (14:40 +0000)]
Merge "Address review comments from 02a1c08"

6 years agoMerge "Adjust permission checking of ensureCanModifyQuietMode"
TreeHugger Robot [Thu, 4 Jan 2018 14:37:24 +0000 (14:37 +0000)]
Merge "Adjust permission checking of ensureCanModifyQuietMode"

6 years agoUpdate the ttc index attribute documentation
Mihai Popa [Thu, 4 Jan 2018 14:15:22 +0000 (14:15 +0000)]
Update the ttc index attribute documentation

The CL updates the documentation of the ttcIndex attribute added for P,
according to the API review comments.

Bug: 71555180
Test: none
Change-Id: I44a617c4f0a10314008fe5d5b380c6a830f3e04f

6 years agoMerge "DPM: Implement Device ID attestation"
TreeHugger Robot [Thu, 4 Jan 2018 14:24:18 +0000 (14:24 +0000)]
Merge "DPM: Implement Device ID attestation"

6 years agoAdjust permission checking of ensureCanModifyQuietMode
Tony Mak [Thu, 28 Dec 2017 13:23:10 +0000 (13:23 +0000)]
Adjust permission checking of ensureCanModifyQuietMode

Two changes:
1. Verify caller package matches with calling UID before checking
   is it default launcher.

2. If IntentSender is specified, only caller with MANAGED_USERS
   can call through it.

Test: run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.QuietModeHostsideTest

Bug: 70212757

Change-Id: Iac118d988eb05097a56f343552c0b8845cf96749

6 years agoAvoid setting size/position on Transaction if not needed
Jorim Jaggi [Wed, 3 Jan 2018 16:05:00 +0000 (17:05 +0100)]
Avoid setting size/position on Transaction if not needed

Passing the JNI layer is quite expensive. Avoid updating the
position/size if not needed by storing the last size.

Test: AppTransitionTests
Test: go/wm-smoke
Bug: 71510789
Change-Id: Ibb3660114fb0e573c9cd2144e5af11f57a96a9d6

6 years agoFix z-order when transfering animations
Jorim Jaggi [Fri, 29 Dec 2017 13:48:02 +0000 (14:48 +0100)]
Fix z-order when transfering animations

We need to reparent the transfered leash to the the animation
layer, not the original parent

Test: Open Play Movies, observe correct z-order during cold-launch
Test: go/wm-smoke
Test: SurfaceAnimatorTest
Change-Id: Ic5a68c68514bb3560b6877a9a29c506aeccee2bf

6 years agoMerge "Fix issue with 0 duration animations"
Jorim Jaggi [Thu, 4 Jan 2018 11:47:34 +0000 (11:47 +0000)]
Merge "Fix issue with 0 duration animations"

6 years agoMerge "1/ Use FieldMatcher to specify the value fields in value metric. 2/ rename...
TreeHugger Robot [Thu, 4 Jan 2018 11:19:42 +0000 (11:19 +0000)]
Merge "1/ Use FieldMatcher to specify the value fields in value metric. 2/ rename number_of_buckets as num_buckets 3/ use double for the Alert's threshold"

6 years agoMerge "Call setGenerationId inside generateAndLoadKey to simplify the code just a...
TreeHugger Robot [Thu, 4 Jan 2018 10:02:27 +0000 (10:02 +0000)]
Merge "Call setGenerationId inside generateAndLoadKey to simplify the code just a little"

6 years agoUse the same VaultParams encoding as the server side
Bo Zhu [Thu, 4 Jan 2018 08:11:35 +0000 (00:11 -0800)]
Use the same VaultParams encoding as the server side

Change-Id: I99887f2e52c24726b40fa4cfedc0a1854490160f
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

6 years agoCall setGenerationId inside generateAndLoadKey to simplify the code just a little
Bo Zhu [Thu, 4 Jan 2018 07:51:27 +0000 (23:51 -0800)]
Call setGenerationId inside generateAndLoadKey to simplify the code just a little

Change-Id: Ie4cc656def75449f0129db09496f4717e2473d70
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

6 years ago1/ Use FieldMatcher to specify the value fields in value metric.
Yangster-mac [Thu, 4 Jan 2018 01:17:20 +0000 (17:17 -0800)]
1/ Use FieldMatcher to specify the value fields in value metric.
2/ rename number_of_buckets as num_buckets
3/ use double for the Alert's threshold

Test: statsd unit tests passed.
Change-Id: Id1f55f14d3712eddee561681e3cd77343f086c7a

6 years agoMerge "Refactor leak tests"
Søren Gjesse [Thu, 4 Jan 2018 07:12:14 +0000 (07:12 +0000)]
Merge "Refactor leak tests"

6 years agoMerge "Implement opening session for HAL 2.0."
Tomasz Wasilczyk [Thu, 4 Jan 2018 06:04:01 +0000 (06:04 +0000)]
Merge "Implement opening session for HAL 2.0."

6 years agoMerge "[M11n] Add missing defensive copies"
TreeHugger Robot [Thu, 4 Jan 2018 02:35:06 +0000 (02:35 +0000)]
Merge "[M11n] Add missing defensive copies"

6 years agoMerge "Add API to get eUICC's OTA status" am: 15a410a75a am: 412aecc2b0
Qingxi Li [Thu, 4 Jan 2018 02:20:13 +0000 (02:20 +0000)]
Merge "Add API to get eUICC's OTA status" am: 15a410a75a am: 412aecc2b0
am: dba6365966

Change-Id: I130bb1a4df3ea092c0e33ea1da7377e6faa38b96

6 years agoMerge "Add API to get eUICC's OTA status" am: 15a410a75a
Qingxi Li [Thu, 4 Jan 2018 02:09:32 +0000 (02:09 +0000)]
Merge "Add API to get eUICC's OTA status" am: 15a410a75a
am: 412aecc2b0

Change-Id: I50ec4a84ddc30e5232bd0cabb8a721ebb7feca47

6 years agoMerge "Add API to get eUICC's OTA status"
Qingxi Li [Thu, 4 Jan 2018 02:02:04 +0000 (02:02 +0000)]
Merge "Add API to get eUICC's OTA status"
am: 15a410a75a

Change-Id: I634b04834840946b07d995222e5a26c029d0a053

6 years agoMerge "Add API to get eUICC's OTA status"
Treehugger Robot [Thu, 4 Jan 2018 01:50:43 +0000 (01:50 +0000)]
Merge "Add API to get eUICC's OTA status"

6 years agoMerge "Enable incidentd, it will just be idle while no one triggers it."
TreeHugger Robot [Thu, 4 Jan 2018 01:40:41 +0000 (01:40 +0000)]
Merge "Enable incidentd, it will just be idle while no one triggers it."

6 years agoMerge changes I93166347,Id09322c5,I878f80f0,I7a7b1b44,Iae2dbc23
TreeHugger Robot [Thu, 4 Jan 2018 01:33:21 +0000 (01:33 +0000)]
Merge changes I93166347,Id09322c5,I878f80f0,I7a7b1b44,Iae2dbc23

* changes:
  Expose new ContextHubService APIs
  Adds ContextHubClient to callback parameters
  Renames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY
  Changes transaction Listener to OnCompleteListener
  Adds Nullable/NonNull annotations to Context Hub APIs

6 years agoMerge "Revert "Fix object pool for lifecycler""
TreeHugger Robot [Thu, 4 Jan 2018 01:32:27 +0000 (01:32 +0000)]
Merge "Revert "Fix object pool for lifecycler""

6 years agoMerge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint...
Android Build Merger (Role) [Thu, 4 Jan 2018 01:22:31 +0000 (01:22 +0000)]
Merge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev am: 4689a6d979" into oc-mr1-dev-plus-aosp
am: 9f4d06b586  -s ours

Change-Id: I27a5784ab5764b2d10fd6bc2ba76da68b89d8658

6 years agoMerge changes I9de0ffe9,Idc804896 am: 153fb1c6e0 am: 99161bc1c7
Colin Cross [Thu, 4 Jan 2018 01:17:42 +0000 (01:17 +0000)]
Merge changes I9de0ffe9,Idc804896 am: 153fb1c6e0 am: 99161bc1c7
am: 52d4011195

Change-Id: Ia3b7f49d4dbd38660570c7c84991a69f86bf24e4

6 years agoMerge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint...
Android Build Merger (Role) [Thu, 4 Jan 2018 01:12:02 +0000 (01:12 +0000)]
Merge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev am: 4689a6d979" into oc-mr1-dev-plus-aosp

6 years agoMerge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc...
Pankaj Kanwar [Thu, 4 Jan 2018 01:10:55 +0000 (01:10 +0000)]
Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev
am: 4689a6d979

Change-Id: I190f53b2d8aa4202a9f20f3831581414185962d3

6 years agoMerge changes I9de0ffe9,Idc804896 am: 153fb1c6e0
Colin Cross [Thu, 4 Jan 2018 01:10:47 +0000 (01:10 +0000)]
Merge changes I9de0ffe9,Idc804896 am: 153fb1c6e0
am: 99161bc1c7

Change-Id: Id831c5ab771fa59ac9906d473ffeb7720fbbdf54

6 years agoMerge changes I9de0ffe9,Idc804896
Colin Cross [Thu, 4 Jan 2018 01:04:20 +0000 (01:04 +0000)]
Merge changes I9de0ffe9,Idc804896
am: 153fb1c6e0

Change-Id: I7cd9329c7ea8ef720df36059a491a9d627233d1a

6 years agoMerge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc...
Pankaj Kanwar [Thu, 4 Jan 2018 01:03:27 +0000 (01:03 +0000)]
Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev

6 years agoMerge changes I9de0ffe9,Idc804896
Colin Cross [Thu, 4 Jan 2018 00:48:50 +0000 (00:48 +0000)]
Merge changes I9de0ffe9,Idc804896

* changes:
  Use sdkparcelables to generate framework.aidl
  Initial sdkparcelables

6 years agoMerge "Fix some nits while reading the code"
TreeHugger Robot [Thu, 4 Jan 2018 00:45:55 +0000 (00:45 +0000)]
Merge "Fix some nits while reading the code"

6 years agoMerge "Include magnification state graph in unit test javadoc"
Eugene Susla [Thu, 4 Jan 2018 00:37:48 +0000 (00:37 +0000)]
Merge "Include magnification state graph in unit test javadoc"

6 years agoInclude magnification state graph in unit test javadoc
Eugene Susla [Wed, 3 Jan 2018 22:02:57 +0000 (14:02 -0800)]
Include magnification state graph in unit test javadoc

The graph seems helpful for understaning magnification states.

Test: render graph with `dot`, ensure it looks ok
Change-Id: I40c5ab36ca9123b1a85c63ba2208532b6c97a997

6 years agoMerge "Fix magnification unit test"
Eugene Susla [Thu, 4 Jan 2018 00:36:17 +0000 (00:36 +0000)]
Merge "Fix magnification unit test"

6 years ago[M11n] Add missing defensive copies
Eugene Susla [Wed, 3 Jan 2018 22:19:50 +0000 (14:19 -0800)]
[M11n] Add missing defensive copies

Fixes: 71502922
Test: Ensure attached bug no longer reproduces
Change-Id: Id0f6e92fab4f2472cc1c22d47249ec5bbba43b3b

6 years agoAdded new Autofill APIs to get name of id used on android:text.
Felipe Leme [Wed, 3 Jan 2018 17:02:27 +0000 (09:02 -0800)]
Added new Autofill APIs to get name of id used on android:text.

Such resource id is useful to help the autofill service heuristics to figure out
the meaning of the labels without relying on their localized text. For example,
the id could be "username", while the text could be "Nome do usuario".

Test: atest CtsAutoFillServiceTestCases:LoginWithStringsActivityTest

Fixes: 71552872

Change-Id: I13f7080fb3c67f91492a113115ffa43d185d192a

6 years agoMerge "1/ Change all "name" to id in statsD. 2/ Handle Subscription for alert. 3...
TreeHugger Robot [Wed, 3 Jan 2018 23:36:21 +0000 (23:36 +0000)]
Merge "1/ Change all "name" to id in statsD. 2/ Handle Subscription for alert. 3/ Support no_report_metric"

6 years ago1/ Change all "name" to id in statsD.
Yangster-mac [Wed, 3 Jan 2018 00:03:03 +0000 (16:03 -0800)]
1/ Change all "name" to id in statsD.
2/ Handle Subscription for alert.
3/ Support no_report_metric

Bug: 69522276
Test: all statsd unit tests passed.
Change-Id: I851b235f2d149b8602b0cad632d5bf541962f40a

6 years agoEnable incidentd, it will just be idle while no one triggers it.
Yi Jin [Wed, 3 Jan 2018 23:21:10 +0000 (15:21 -0800)]
Enable incidentd, it will just be idle while no one triggers it.

Test: N/A
Change-Id: I169108f0d61fc1fffea629eb2e862bfa7aad65f9

6 years agoMerge "Fix regression in PiP app-ops listener."
TreeHugger Robot [Wed, 3 Jan 2018 23:02:22 +0000 (23:02 +0000)]
Merge "Fix regression in PiP app-ops listener."

6 years agoFix some nits while reading the code
Bo Zhu [Wed, 3 Jan 2018 22:49:43 +0000 (14:49 -0800)]
Fix some nits while reading the code

Test: None
Change-Id: Id231a497ad1c27de257f9e9f02f8373c5c67a68d

6 years agoFix issue with 0 duration animations
Jorim Jaggi [Wed, 3 Jan 2018 14:54:43 +0000 (15:54 +0100)]
Fix issue with 0 duration animations

If the animation length was 0, it was possible that the finish
runnable is run before applying the pending transaction to
reparent the surface onto the leash. In that case, the reparent
to the leash will be executed after, taking precedence. Then,
the leash gets destroyed, and we loose the surface, leading
to all kinds of crashes.

Test: Disable animation duration scale, open a couple of apps,
observe no crash.
Test: go/wm-smoke

Change-Id: I04db7b7c1c3295779b8afead97d7850f808f9081
Fixes: 71499373

6 years agoRevert "Fix object pool for lifecycler"
Andrii Kulian [Wed, 3 Jan 2018 22:00:02 +0000 (22:00 +0000)]
Revert "Fix object pool for lifecycler"

This reverts commit 1c110302fe3236e7477020aa11b9cb0b8226328a.

Reason for revert: Trying to recycle already recycled item on rotation.

Change-Id: I1ae8337da28aa0923cc1d77a23f2ab5e42957495

6 years agoFix magnification unit test
Eugene Susla [Wed, 3 Jan 2018 01:50:14 +0000 (17:50 -0800)]
Fix magnification unit test

Fixes: 70682349
Test: Repro steps from b/70682349
Change-Id: I2a9698c1afbf5140dd14797ec90478ae59c2376a

6 years agoMerge "Add overload to postDelayed which accepts a token."
Jake Wharton [Wed, 3 Jan 2018 21:32:49 +0000 (21:32 +0000)]
Merge "Add overload to postDelayed which accepts a token."

6 years agoAdd overload to postDelayed which accepts a token.
Jake Wharton [Wed, 3 Jan 2018 03:18:24 +0000 (22:18 -0500)]
Add overload to postDelayed which accepts a token.

This adds overload parity with postAtTime.

Test: none
Bug: 71546743
Change-Id: I50936c7ffd5e8512dc865863fe8d4c9fb228a8a9

6 years agoOnly show the lockdown button when its possible to enter lockdown
Chad Brubaker [Wed, 3 Jan 2018 21:23:22 +0000 (13:23 -0800)]
Only show the lockdown button when its possible to enter lockdown

This prevents the button from being displayed if the device is already
in a locked down state (either via using the lockdown button or a fresh
boot) or if the device doesn't have a lockscreen.

Bug: 37221346
Test: Manual
Change-Id: Ie9dcafe1ff1b98464529688ef0b39627568bb573

6 years agoMerge "Checks in statsd that fields are within range."
TreeHugger Robot [Wed, 3 Jan 2018 20:43:48 +0000 (20:43 +0000)]
Merge "Checks in statsd that fields are within range."

6 years agoAdd API to get eUICC's OTA status
Qingxi Li [Wed, 13 Dec 2017 23:13:02 +0000 (15:13 -0800)]
Add API to get eUICC's OTA status

The function will return current eUICC's OTA status and requests calling
app has WRITE_EMBEDDED_SUBSCRIPTIONS.

Test: E2E
Bug: 37279356
Change-Id: I823ed7aa9d86530c4bebd4c0b1a00f0c607105ed