OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8 am: bd57a4d8a1
Dan Zhang [Fri, 19 Jan 2018 05:13:10 +0000 (05:13 +0000)]
Merge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8 am: bd57a4d8a1
am: cc07fa73a1

Change-Id: I95d710489a0ad87c6e3811603097e5438f11f413

6 years agoMerge "Fix illegal volume value issue" am: 20443a8dbb am: 65dd4cbf32
Dan Zhang [Fri, 19 Jan 2018 05:09:15 +0000 (05:09 +0000)]
Merge "Fix illegal volume value issue" am: 20443a8dbb am: 65dd4cbf32
am: 3a05ecd714

Change-Id: I64f27d734dc93c036b4f8bd1ecf3088821b92a75

6 years agoMerge "Revert the field number change to make statsd_config proto backward-compatible."
TreeHugger Robot [Fri, 19 Jan 2018 05:03:27 +0000 (05:03 +0000)]
Merge "Revert the field number change to make statsd_config proto backward-compatible."

6 years agoMerge "Temporary use hardcoded counterId."
TreeHugger Robot [Fri, 19 Jan 2018 05:02:18 +0000 (05:02 +0000)]
Merge "Temporary use hardcoded counterId."

6 years agoMerge "resolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to master"
TreeHugger Robot [Fri, 19 Jan 2018 04:58:29 +0000 (04:58 +0000)]
Merge "resolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to master"

6 years agoMerge "camera: Add external flash mode key"
TreeHugger Robot [Fri, 19 Jan 2018 04:19:23 +0000 (04:19 +0000)]
Merge "camera: Add external flash mode key"

6 years agoMerge "Ignore missing font in fontchain_linter.py"
TreeHugger Robot [Fri, 19 Jan 2018 03:37:25 +0000 (03:37 +0000)]
Merge "Ignore missing font in fontchain_linter.py"

6 years agoMerge "Make NotificationShelf nullable in StackScrollAlgorithm."
TreeHugger Robot [Fri, 19 Jan 2018 03:36:02 +0000 (03:36 +0000)]
Merge "Make NotificationShelf nullable in StackScrollAlgorithm."

6 years agoMerge "Fix bug in statsd with uid memory guardrail"
TreeHugger Robot [Fri, 19 Jan 2018 03:31:56 +0000 (03:31 +0000)]
Merge "Fix bug in statsd with uid memory guardrail"

6 years agoMerge "Calc job standby runnability based on last job execution..."
TreeHugger Robot [Fri, 19 Jan 2018 03:19:36 +0000 (03:19 +0000)]
Merge "Calc job standby runnability based on last job execution..."

6 years agoMerge "Put statsd on system-background cpu set."
TreeHugger Robot [Fri, 19 Jan 2018 02:53:30 +0000 (02:53 +0000)]
Merge "Put statsd on system-background cpu set."

6 years agoTemporary use hardcoded counterId.
Dmitry Dementyev [Fri, 19 Jan 2018 00:57:01 +0000 (16:57 -0800)]
Temporary use hardcoded counterId.

Bug: 66499222
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0f387e6a424f24de340276fc45cfaddb3529a715

6 years agoMerge "Added new SIM state related broadcasts."
TreeHugger Robot [Fri, 19 Jan 2018 02:32:46 +0000 (02:32 +0000)]
Merge "Added new SIM state related broadcasts."

6 years agoresolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to
Arthur Hsu [Fri, 19 Jan 2018 02:30:23 +0000 (18:30 -0800)]
resolve merge conflicts of f761f6371a0350bd8d62e97d14cce869a5039572 to
master

Test: I solemnly swear I tested this conflict resolution.

Change-Id: I095f92ed3607616a7147a23f1fd9cd65b72e921b

6 years agoMerge "Add back missing synchronized in stopGuestOrEphemeralUserIfBackground"
TreeHugger Robot [Fri, 19 Jan 2018 02:10:46 +0000 (02:10 +0000)]
Merge "Add back missing synchronized in stopGuestOrEphemeralUserIfBackground"

6 years agoMerge "Modify IHealthInfoCallback interface to return V2.0 HealthInfo"
TreeHugger Robot [Fri, 19 Jan 2018 01:55:27 +0000 (01:55 +0000)]
Merge "Modify IHealthInfoCallback interface to return V2.0 HealthInfo"

6 years agoMerge "Fix RecoverableKeyStore unit tests."
TreeHugger Robot [Fri, 19 Jan 2018 01:48:10 +0000 (01:48 +0000)]
Merge "Fix RecoverableKeyStore unit tests."

6 years agoMerge "leanback janktest: use extra to initialize fastlane state"
Dake Gu [Fri, 19 Jan 2018 01:32:47 +0000 (01:32 +0000)]
Merge "leanback janktest: use extra to initialize fastlane state"

6 years agoMerge "Center backspace key ripple in pin keyguard"
TreeHugger Robot [Fri, 19 Jan 2018 01:26:41 +0000 (01:26 +0000)]
Merge "Center backspace key ripple in pin keyguard"

6 years agoMerge "condition dimension query."
TreeHugger Robot [Fri, 19 Jan 2018 01:26:21 +0000 (01:26 +0000)]
Merge "condition dimension query."

6 years agoMerge changes from topic "shadow-in-app"
TreeHugger Robot [Fri, 19 Jan 2018 01:24:40 +0000 (01:24 +0000)]
Merge changes from topic "shadow-in-app"

* changes:
  Remove DragDropController#prepareDrag()
  Create a drag shadow surface in app process,

6 years agoIgnore missing font in fontchain_linter.py
Seigo Nonaka [Fri, 19 Jan 2018 01:24:31 +0000 (17:24 -0800)]
Ignore missing font in fontchain_linter.py

It is totally valid if the font is missing even if the font is listed in
fonts.xml. Android Watch has less fonts and OEM vendor may reduce the
font files.

Bug: 72159040
Test: m fontchain_lint
Change-Id: I22bdf7bfeb6d80a2a338ebf7536c8eaf193b03c5

6 years agoMerge "Fix missing service call when rebinding to VrCore"
Steven Thomas [Fri, 19 Jan 2018 01:19:44 +0000 (01:19 +0000)]
Merge "Fix missing service call when rebinding to VrCore"

6 years agoMerge "Treat missing font in fallback chain"
TreeHugger Robot [Fri, 19 Jan 2018 01:03:55 +0000 (01:03 +0000)]
Merge "Treat missing font in fallback chain"

6 years agoMerge "AAPT2: Store BinaryPrimatives in protos as oneofs"
TreeHugger Robot [Fri, 19 Jan 2018 01:00:00 +0000 (01:00 +0000)]
Merge "AAPT2: Store BinaryPrimatives in protos as oneofs"

6 years agoMerge "Add semantics for accessibility headings"
TreeHugger Robot [Fri, 19 Jan 2018 00:53:49 +0000 (00:53 +0000)]
Merge "Add semantics for accessibility headings"

6 years agoMerge "Change packVaultParams to use the real vault_handle directly"
Bo Zhu [Fri, 19 Jan 2018 00:44:40 +0000 (00:44 +0000)]
Merge "Change packVaultParams to use the real vault_handle directly"

6 years agoRevert the field number change to make statsd_config proto backward-compatible.
Yangster-mac [Fri, 19 Jan 2018 00:40:57 +0000 (16:40 -0800)]
Revert the field number change to make statsd_config proto backward-compatible.

Test: statsd unit test passed.
Change-Id: I28b28c0706d35da3617ec9dba4c5bfeb2527befc

6 years agoMerge "Update the dimension_in_what/condition field number."
TreeHugger Robot [Fri, 19 Jan 2018 00:37:42 +0000 (00:37 +0000)]
Merge "Update the dimension_in_what/condition field number."

6 years agoPut statsd on system-background cpu set.
Yao Chen [Fri, 19 Jan 2018 00:37:10 +0000 (16:37 -0800)]
Put statsd on system-background cpu set.

Bug: 72176997
Test: manual
Change-Id: Ic160dc8ffea8fd349185ad8b583e6c02dc7defa6

6 years agoMerge "GnssMeasurementsListener - Fix indexing, add & remove"
TreeHugger Robot [Fri, 19 Jan 2018 00:35:58 +0000 (00:35 +0000)]
Merge "GnssMeasurementsListener - Fix indexing, add & remove"

6 years agoMerge "Revert "Enable init.rc for statsd to start statsd by default in boot time""
Yao Chen [Fri, 19 Jan 2018 00:27:36 +0000 (00:27 +0000)]
Merge "Revert "Enable init.rc for statsd to start statsd by default in boot time""

6 years agoMerge "Set ActivityView's rect as tap exclude region"
TreeHugger Robot [Fri, 19 Jan 2018 00:23:33 +0000 (00:23 +0000)]
Merge "Set ActivityView's rect as tap exclude region"

6 years agoRevert "Enable init.rc for statsd to start statsd by default in boot time"
Yao Chen [Fri, 19 Jan 2018 00:12:18 +0000 (00:12 +0000)]
Revert "Enable init.rc for statsd to start statsd by default in boot time"

This reverts commit 56967528d7bcc7a1342d68f19e0ffa79f2a1ed59.

Change-Id: I4b76bf5783f0df43603e82168009f33296d1f840

6 years agoCalc job standby runnability based on last job execution...
Christopher Tate [Thu, 18 Jan 2018 20:59:15 +0000 (12:59 -0800)]
Calc job standby runnability based on last job execution...

...not unilaterally on the current time of day.  In practice, the point
is that we should let an app run new jobs immediately if it's been a long
time since it ran any, even if it's in a less-active standby bucket,
because it's being a good citizen.

Bug: 63527785
Test: atest CtsJobSchedulerTestCases
Change-Id: I1521c82f23341246484efa733c43f983a5e9e568

6 years agoFix bug in statsd with uid memory guardrail
David Chen [Fri, 19 Jan 2018 00:02:42 +0000 (16:02 -0800)]
Fix bug in statsd with uid memory guardrail

Previously unsigned a negative number to unsigned type, so the int
comparison didn't work as planned.

Test: Manually tested and observed log messages.
Change-Id: Ic72c4dbde5e560288fd64ca11c4bcc81021fb1a9

6 years agoMerge "Fixed method name that was changed in a previous CL."
Felipe Leme [Fri, 19 Jan 2018 00:01:25 +0000 (00:01 +0000)]
Merge "Fixed method name that was changed in a previous CL."

6 years agoMerge "Add factory for TaskPositioner."
TreeHugger Robot [Fri, 19 Jan 2018 00:01:04 +0000 (00:01 +0000)]
Merge "Add factory for TaskPositioner."

6 years agoFixed method name that was changed in a previous CL.
Felipe Leme [Thu, 18 Jan 2018 23:57:18 +0000 (15:57 -0800)]
Fixed method name that was changed in a previous CL.

Bug: 70939974
Test: nope, build is broken, must fix ASAP

Change-Id: I88cf6ccacb5baa097cea26c859b774738bd9b428

6 years agoMerge "Optimize calls to IME's onStartInput"
Tarandeep Singh [Thu, 18 Jan 2018 23:51:17 +0000 (23:51 +0000)]
Merge "Optimize calls to IME's onStartInput"

6 years agoMerge "Expose some hidden APIs in Choreographer to CTS"
Doris Liu [Thu, 18 Jan 2018 23:38:49 +0000 (23:38 +0000)]
Merge "Expose some hidden APIs in Choreographer to CTS"

6 years agoMerge "Implemented shell cmd to get field classification score."
TreeHugger Robot [Thu, 18 Jan 2018 23:34:00 +0000 (23:34 +0000)]
Merge "Implemented shell cmd to get field classification score."

6 years agoMerge "Moved Field Classification score logic to ExtServices."
Felipe Leme [Thu, 18 Jan 2018 23:33:44 +0000 (23:33 +0000)]
Merge "Moved Field Classification score logic to ExtServices."

6 years agoFix RecoverableKeyStore unit tests.
Dmitry Dementyev [Thu, 18 Jan 2018 22:29:49 +0000 (14:29 -0800)]
Fix RecoverableKeyStore unit tests.

Bug: 66499222
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I19aeb444e2f99f698cd1f9dfa13215093f5230da

6 years agoMerge "Ensure keyguard is considered unlocked on devices that disable it."
Leif Wilden [Thu, 18 Jan 2018 23:27:37 +0000 (23:27 +0000)]
Merge "Ensure keyguard is considered unlocked on devices that disable it."

6 years agoMerge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8
Dan Zhang [Thu, 18 Jan 2018 23:16:49 +0000 (23:16 +0000)]
Merge "Fix NPE by pressing Volume Up/Down" am: fca5ee0bb8
am: bd57a4d8a1

Change-Id: I23595e55b5c38cecb39272f7c739c27abe1eddb3

6 years agoCenter backspace key ripple in pin keyguard
Ng Zhi An [Wed, 17 Jan 2018 01:52:58 +0000 (17:52 -0800)]
Center backspace key ripple in pin keyguard

Bug: 71959475
Test: manual
Change-Id: Ib51cdefd8257bd9a9f0c544e177c12cb23614aa8

6 years agoMerge "Revert "Add setting/experiment for small battery devices to have""
Makoto Onuki [Thu, 18 Jan 2018 23:10:54 +0000 (23:10 +0000)]
Merge "Revert "Add setting/experiment for small battery devices to have""

6 years agoMerge "Fix illegal volume value issue" am: 20443a8dbb
Dan Zhang [Thu, 18 Jan 2018 23:10:01 +0000 (23:10 +0000)]
Merge "Fix illegal volume value issue" am: 20443a8dbb
am: 65dd4cbf32

Change-Id: I2ab3578a84ed128e60b2c0329db0ed77af331bba

6 years agoMerge "Fix NPE by pressing Volume Up/Down"
Dan Zhang [Thu, 18 Jan 2018 23:06:49 +0000 (23:06 +0000)]
Merge "Fix NPE by pressing Volume Up/Down"
am: fca5ee0bb8

Change-Id: I2f35ed23478b10339a9924593411e02da77207ec

6 years agoMerge "Don't use transport binder with the lock held"
TreeHugger Robot [Thu, 18 Jan 2018 23:04:06 +0000 (23:04 +0000)]
Merge "Don't use transport binder with the lock held"

6 years agoMerge "Fix illegal volume value issue"
Dan Zhang [Thu, 18 Jan 2018 23:03:28 +0000 (23:03 +0000)]
Merge "Fix illegal volume value issue"
am: 20443a8dbb

Change-Id: I94140f9e65e74df17053aa8824569ed8df2637a1

6 years agoMerge changes from topic "surface_num_clients_soft_ap"
Mehdi Alizadeh [Thu, 18 Jan 2018 23:00:03 +0000 (23:00 +0000)]
Merge changes from topic "surface_num_clients_soft_ap"

* changes:
  Adds unregisterSoftApCallback API
  Unit tests for registerSoftApCallback API
  Adds API to register callback for soft AP event

6 years agocondition dimension query.
Yangster-mac [Tue, 16 Jan 2018 07:20:44 +0000 (23:20 -0800)]
condition dimension query.

Test: Modified the metric link test to query a subset of the predicate/condition dimensions.

Change-Id: I693f14e0b11693fc8ee0bf4fc550977c20d31f71

6 years agoMerge "Use LinkedHashMap on CharSequenceTransformation to keep order of insertions."
TreeHugger Robot [Thu, 18 Jan 2018 22:51:34 +0000 (22:51 +0000)]
Merge "Use LinkedHashMap on CharSequenceTransformation to keep order of insertions."

6 years agoMerge "Move Sms API to proper MMTelFeature class"
Mohamed Abdalkader [Thu, 18 Jan 2018 22:51:27 +0000 (22:51 +0000)]
Merge "Move Sms API to proper MMTelFeature class"

6 years agoAdded new SIM state related broadcasts.
Amit Mahajan [Sat, 13 Jan 2018 01:40:29 +0000 (17:40 -0800)]
Added new SIM state related broadcasts.

Test: Basic telephony sanity and unit tests
Bug: 64131518
Change-Id: Ie3d157e79a7040c161b9038c875a4a4f49d535ff

6 years agoChange packVaultParams to use the real vault_handle directly
Bo Zhu [Thu, 18 Jan 2018 19:53:57 +0000 (11:53 -0800)]
Change packVaultParams to use the real vault_handle directly

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

Change-Id: I5ebe28fddba3d3939a105c696250f3ea68720822

6 years agoleanback janktest: use extra to initialize fastlane state
Dake Gu [Thu, 18 Jan 2018 22:24:45 +0000 (14:24 -0800)]
leanback janktest: use extra to initialize fastlane state

faster and less problem.

Bug: 71904218
Test: adb shell am instrument -w -e class
      com.android.uibench.janktests.UiBenchLeanbackJankTests#testBrowseContentScroll
      com.android.uibench.janktests/android.test.InstrumentationTestRunner

Change-Id: I4a5c2e0b993f3dc5f678e7b29b2b7e10b7792fe4

6 years agoFix missing service call when rebinding to VrCore
Steven Thomas [Thu, 7 Dec 2017 03:41:07 +0000 (19:41 -0800)]
Fix missing service call when rebinding to VrCore

When rebinding to VrCore after a VrCore crash we weren't calling
onCurrentVrActivityChanged().

Bug: b/69839187

Test: Went through the repro steps in b/69839187 and confirmed we
successfully recover after VrCore dies and is rebound.

Change-Id: Idbd7acb438e8b7754743c5ccaaa68b4e0a686d33
(cherry picked from commit d03fa742c2f29330d138ba6e2241f13eb527b9b5)

6 years agoMerge "Fix NPE by pressing Volume Up/Down"
Dan Zhang [Thu, 18 Jan 2018 22:15:39 +0000 (22:15 +0000)]
Merge "Fix NPE by pressing Volume Up/Down"

6 years agoUpdate the dimension_in_what/condition field number.
Yangster-mac [Thu, 18 Jan 2018 21:18:01 +0000 (13:18 -0800)]
Update the dimension_in_what/condition field number.

Test: statsd unit test passed.

Change-Id: I11aa8a5cfc3bce703cf5ed0d9696d1949df449f0

6 years agoAdd semantics for accessibility headings
Phil Weaver [Tue, 9 Jan 2018 01:42:18 +0000 (17:42 -0800)]
Add semantics for accessibility headings

Adding the ability to mark TextView as a heading, and
to provide a heading depth. Plumbing that through to
accessibility services.

Bug: 34687453
Test: Adding CTS tests for new APIs.
Change-Id: I5262e32a2a11b2577802c68e701d2856e28abc21

6 years agoRevert "Add setting/experiment for small battery devices to have"
Makoto Onuki [Thu, 18 Jan 2018 21:44:28 +0000 (21:44 +0000)]
Revert "Add setting/experiment for small battery devices to have"

This reverts commit 9a60382be1d94e1143cdd16576db774126193798.

Reason for revert: Broke battery saver

Bug: 72168928
Bug: 69259147

Change-Id: I09664653686a51c297224c863c4fc6d1ff7e5caf
Test: Manual test
Test: atest CtsBatterySavingTestCases

6 years agoMerge "Add time until Night Light is on/off as secondary label"
TreeHugger Robot [Thu, 18 Jan 2018 21:58:38 +0000 (21:58 +0000)]
Merge "Add time until Night Light is on/off as secondary label"

6 years agoMerge "Move a shared pointer that's going to die anyway."
TreeHugger Robot [Thu, 18 Jan 2018 21:58:06 +0000 (21:58 +0000)]
Merge "Move a shared pointer that's going to die anyway."

6 years agoMerge "Fix illegal volume value issue"
Dan Zhang [Thu, 18 Jan 2018 21:50:10 +0000 (21:50 +0000)]
Merge "Fix illegal volume value issue"

6 years agoOptimize calls to IME's onStartInput
Tarandeep Singh [Fri, 12 Jan 2018 22:58:59 +0000 (14:58 -0800)]
Optimize calls to IME's onStartInput

As of today onStartInput is called for every window which gains focus. We
can significantly optimize this by restricting calls only to windows
that have a text editor. However, if input was already started based on
window flags, behavior is unchanged.

This behavior is guarded by debug flag "debug.optimize_startinput" and
is defaulted to true.

Bug: 37617707
Test: atest CtsInputMethodTestCases
Test: Verify following command reverts the behavior: adb root && adb
      shell setprop debug.optimize_startinput false &&
      adb shell cmd input_method refresh_debug_options
Change-Id: Ibf9dab3d9c138b5f04e053d41ee4fd248c78e4da

6 years agoMerge "Fix crash in EditText#getText"
TreeHugger Robot [Thu, 18 Jan 2018 21:30:13 +0000 (21:30 +0000)]
Merge "Fix crash in EditText#getText"

6 years agoMerge "Remove wifi_allow_scan_with_traffic"
Ningyuan Wang [Thu, 18 Jan 2018 21:20:51 +0000 (21:20 +0000)]
Merge "Remove wifi_allow_scan_with_traffic"

6 years agoMerge "Add config_supportBluetoothPersistedState." am: 524fe66549
Arthur Hsu [Thu, 18 Jan 2018 21:19:41 +0000 (21:19 +0000)]
Merge "Add config_supportBluetoothPersistedState." am: 524fe66549
am: 171b8f366a

Change-Id: If1f43a76c6ade2dd2ba82f0057aa528d4624981c

6 years agoMerge "Add config_supportBluetoothPersistedState."
Arthur Hsu [Thu, 18 Jan 2018 21:12:08 +0000 (21:12 +0000)]
Merge "Add config_supportBluetoothPersistedState."
am: 524fe66549

Change-Id: I17c56fa8a5b5a984e26591d1e0e830a1c54fa28e

6 years agoMerge "Rename CrossProfileApps API as per API council feedback"
TreeHugger Robot [Thu, 18 Jan 2018 21:10:18 +0000 (21:10 +0000)]
Merge "Rename CrossProfileApps API as per API council feedback"

6 years agoRename CrossProfileApps API as per API council feedback
Tony Mak [Thu, 18 Jan 2018 12:49:49 +0000 (12:49 +0000)]
Rename CrossProfileApps API as per API council feedback

Three changes:
1. android.content.pm.crossprofile - > android.content.pm
2. getProfileSwitchingIcon -> getProfileSwitchingIconDrawable
3. startMainActivity “user” parameter should be named “targetUser”

Test: atest FrameworksServicesTests:com.android.server.pm.CrossProfileAppsServiceImplTest
Test: atest frameworks/base/core/tests/coretests/src/android/content/pm/CrossProfileAppsTest.java
Test: atest cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/CrossProfileAppsHostSideTest.java

FIXES: 71818128

Change-Id: Icf9a6d1f8b6808935ffd79b43185c7b12235f349

6 years agoAdd factory for TaskPositioner.
Garfield Tan [Thu, 18 Jan 2018 20:37:50 +0000 (12:37 -0800)]
Add factory for TaskPositioner.

Bug: 64149458
Test: Unit test passes.
Change-Id: I5bcc22f5e51080001c16479f5636a915d4a4309b

6 years agoMerge "Fixes dock side when rotating to seascape after drag to split"
TreeHugger Robot [Thu, 18 Jan 2018 20:36:41 +0000 (20:36 +0000)]
Merge "Fixes dock side when rotating to seascape after drag to split"

6 years agoMerge "Compute hyphenated word pieces in MeasuredText"
TreeHugger Robot [Thu, 18 Jan 2018 20:32:54 +0000 (20:32 +0000)]
Merge "Compute hyphenated word pieces in MeasuredText"

6 years agoMerge "Add StatsdStats in statsd's dumpsys"
Yao Chen [Thu, 18 Jan 2018 20:09:06 +0000 (20:09 +0000)]
Merge "Add StatsdStats in statsd's dumpsys"

6 years agoGnssMeasurementsListener - Fix indexing, add & remove
Wyatt Riley [Wed, 17 Jan 2018 16:48:27 +0000 (08:48 -0800)]
GnssMeasurementsListener - Fix indexing, add & remove

Safer indexing open requests by IBinder instead of IInterface
Covers GnssNavigationMessage as well.
Also dumping currently open GnssMeasurement & NavMsg requests

Bug: 71917458
Test: Able to repro issue consistently before, fixed after
 logs look as expected as well, on Pixel 2

Change-Id: I2e4722a23355295a5f597541f31a3b77534cadd7

6 years agoMerge "Rename RecoveryManager to RecoveryController"
Robert Berry [Thu, 18 Jan 2018 20:00:13 +0000 (20:00 +0000)]
Merge "Rename RecoveryManager to RecoveryController"

6 years agoMerge "Support installation of DexMetadata files (.dm)"
Calin Juravle [Thu, 18 Jan 2018 19:53:54 +0000 (19:53 +0000)]
Merge "Support installation of DexMetadata files (.dm)"

6 years agoMerge "Remove work profile off status bar icon"
TreeHugger Robot [Thu, 18 Jan 2018 19:53:26 +0000 (19:53 +0000)]
Merge "Remove work profile off status bar icon"

6 years agoMerge "Reinstate configs from disk across boots by fixing bugs"
Howard Ro [Thu, 18 Jan 2018 19:38:38 +0000 (19:38 +0000)]
Merge "Reinstate configs from disk across boots by fixing bugs"

6 years agoMerge "Add config_supportBluetoothPersistedState."
Arthur Hsu [Thu, 18 Jan 2018 19:38:32 +0000 (19:38 +0000)]
Merge "Add config_supportBluetoothPersistedState."

6 years agoAdd config_supportBluetoothPersistedState.
Arthur Hsu [Thu, 11 Jan 2018 19:05:11 +0000 (11:05 -0800)]
Add config_supportBluetoothPersistedState.

Add a config to indicate whether a device supports Bluetooth persisted
state and defaulted to true. In ARC++, Bluetooth adapter state can be
out-of-sync from its container if the user changes it before the
container being available.

When set to false, this config prevents Android to auto start the
Bluetooth. ARC++ will set this to false and sync Bluetooth state later
with Android.

Related CL is ag/931281

Bug: 6241362569965109
Test: On sailfish, Bluetooth on/off correctly and state persisted across reboot
Change-Id: Ie298929eb6b882108a12e8b95f61e3c9f8eb63ea

6 years agoMove a shared pointer that's going to die anyway.
George Burgess IV [Thu, 18 Jan 2018 19:30:46 +0000 (11:30 -0800)]
Move a shared pointer that's going to die anyway.

This saves us two atomic operations that a copy would cost us (inc +
dec), and hopefully makes some internal tooling -- which yet doesn't
model atomics well -- happy.

Bug: None
Test: Builds
Change-Id: Ic55c3db6af55f45eceaf30c1ee479e9ae70aabb4

6 years agoMerge "Clarify usage of context in the JavaDoc"
Fyodor Kupolov [Thu, 18 Jan 2018 19:21:00 +0000 (19:21 +0000)]
Merge "Clarify usage of context in the JavaDoc"

6 years agoMerge "Prevent getting from transit when interesting window is exiting"
TreeHugger Robot [Thu, 18 Jan 2018 19:20:55 +0000 (19:20 +0000)]
Merge "Prevent getting from transit when interesting window is exiting"

6 years agoDon't use transport binder with the lock held
Bernardo Rufino [Thu, 18 Jan 2018 15:10:41 +0000 (15:10 +0000)]
Don't use transport binder with the lock held

There was a deadlock around the transport lock. We registered transports
with the transport lock held, this kicked-off transport onCreate()
synchronously, which called TransportManager
updateTransportAttributes(), which tried to acquire mentioned lock but
couldn't. This CL removes the lock for any call to the transport or
operation that triggers a call to the transport (it was
TransportClient.connect() or its variants).

Test: Load GMSCore before fix, boot, register transports, check no ANR
Test: m -j RunFrameworksServicesRoboTests
Test: adb shell bmgr transport -c <transport>, being registered & not
Bug: 72147303
Change-Id: I72ca145d7fb73c0ef29c4aa1b620fea4969481db

6 years agoAdds unregisterSoftApCallback API
Mehdi Alizadeh [Fri, 12 Jan 2018 01:56:30 +0000 (17:56 -0800)]
Adds unregisterSoftApCallback API

Bug: 68712383
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I9d6a52eed722b0b0a159b73d517a9dc4d3f8107c

6 years agoUnit tests for registerSoftApCallback API
Mehdi Alizadeh [Sat, 23 Dec 2017 01:00:22 +0000 (17:00 -0800)]
Unit tests for registerSoftApCallback API

Bug: 68712383
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I1a10f274f50d8eb8b74aec7d2b6c073c0a98e742

6 years agoAdds API to register callback for soft AP event
Mehdi Alizadeh [Tue, 28 Nov 2017 23:31:28 +0000 (15:31 -0800)]
Adds API to register callback for soft AP event

Bug: 68712383
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: I270366494500251858fe2ddf6209c7b4bfb5f546

6 years agoAdd time until Night Light is on/off as secondary label
Rohan Shah [Thu, 18 Jan 2018 17:54:20 +0000 (09:54 -0800)]
Add time until Night Light is on/off as secondary label

Added secondary label text for Night Light.

2 modes with 2 text options:
1) Twilight - until sunrise OR on at sunset
2) Custom - until <time> OR on at <time>

Test: Visually tested - tried all 4 variations + manual toggle + updates
Bug:69973398
Change-Id: I5d0d213b470608b7dfa9d6cce0c33be1365e10a0

6 years agoMerge changes Iaeb8d9c2,Ifa83ce1d
TreeHugger Robot [Thu, 18 Jan 2018 19:10:28 +0000 (19:10 +0000)]
Merge changes Iaeb8d9c2,Ifa83ce1d

* changes:
  Fix notification sorting.
  Remove all caps style

6 years agoTreat missing font in fallback chain
Seigo Nonaka [Thu, 18 Jan 2018 19:06:34 +0000 (11:06 -0800)]
Treat missing font in fallback chain

Bug: 72159040
Test: bit FrameworksCoreTests:android.graphics.TypefaceSystemFallbackTest
Change-Id: I481a51811d228b87c9eb07b536a95cb699f1669c

6 years agoMerge "AudioAttributes: note that AAudio.h should sync"
TreeHugger Robot [Thu, 18 Jan 2018 19:02:44 +0000 (19:02 +0000)]
Merge "AudioAttributes: note that AAudio.h should sync"

6 years agoAdd back missing synchronized in stopGuestOrEphemeralUserIfBackground
Alex Chau [Thu, 18 Jan 2018 18:43:35 +0000 (18:43 +0000)]
Add back missing synchronized in stopGuestOrEphemeralUserIfBackground

- mStartedUsers and mCurrentUserId should be locked by mLock

Bug: 72133858
Test: Manually create secondary user, and exit the user in SetupWizard
Change-Id: If59749c06c5d8174462a6f2a255517c60321d9f4

6 years agoImplemented shell cmd to get field classification score.
Felipe Leme [Wed, 17 Jan 2018 23:12:17 +0000 (15:12 -0800)]
Implemented shell cmd to get field classification score.

Bug: 70939974
Test: adb shell cmd autofill get fc_score half kale

Change-Id: Idd5d79500e915f61920865f7b721eddfb580d319

6 years agoEnsure keyguard is considered unlocked on devices that disable it.
Leif Hendrik Wilden [Fri, 12 Jan 2018 22:40:30 +0000 (14:40 -0800)]
Ensure keyguard is considered unlocked on devices that disable it.

Test: Manually tested that removable storage devices will now mount on ATV.
Bug: 71551000
Change-Id: I23eee328d54a9b61702a19b777fd1c8895d2d680

6 years agoMerge "Dump state of GnssMeasurement & NavMsg requests"
TreeHugger Robot [Thu, 18 Jan 2018 18:42:18 +0000 (18:42 +0000)]
Merge "Dump state of GnssMeasurement & NavMsg requests"