OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fix documentation of CallRedirectionService" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:25:36 +0000 (19:25 +0000)]
Merge "Fix documentation of CallRedirectionService" into qt-dev

5 years agoMerge "Disable a wakeup alarm in car." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:18:36 +0000 (19:18 +0000)]
Merge "Disable a wakeup alarm in car." into qt-dev

5 years agoMerge "Add supported PackageInfo to ExplicitHealthCheckService API" into qt-dev
Zimuzo Ezeozue [Fri, 5 Apr 2019 19:06:47 +0000 (19:06 +0000)]
Merge "Add supported PackageInfo to ExplicitHealthCheckService API" into qt-dev

5 years agoMerge "Disable ScheduledJobConstraintChanged logging for now." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 19:04:19 +0000 (19:04 +0000)]
Merge "Disable ScheduledJobConstraintChanged logging for now." into qt-dev

5 years agoMerge "Volume dialog should show the volume for the group id that is being changed...
TreeHugger Robot [Fri, 5 Apr 2019 19:02:29 +0000 (19:02 +0000)]
Merge "Volume dialog should show the volume for the group id that is being changed." into qt-dev

5 years agoMerge "Re-inflate views in onOverlayChanged." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:53:49 +0000 (18:53 +0000)]
Merge "Re-inflate views in onOverlayChanged." into qt-dev

5 years agoMerge "Update action bar dark theme style" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:50:23 +0000 (18:50 +0000)]
Merge "Update action bar dark theme style" into qt-dev

5 years agoMerge "SurfaceFlinger: Add exclusion list for captureLayers." into qt-dev
Rob Carr [Fri, 5 Apr 2019 18:47:40 +0000 (18:47 +0000)]
Merge "SurfaceFlinger: Add exclusion list for captureLayers." into qt-dev

5 years agoMerge "Fix metadata surfacecontrol api/jni" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:33:24 +0000 (18:33 +0000)]
Merge "Fix metadata surfacecontrol api/jni" into qt-dev

5 years agoMerge "Format all IconPack overlay resources." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:22:25 +0000 (18:22 +0000)]
Merge "Format all IconPack overlay resources." into qt-dev

5 years agoMerge "Don't set sehash when calling restoreconRecursive" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:13:30 +0000 (18:13 +0000)]
Merge "Don't set sehash when calling restoreconRecursive" into qt-dev

5 years agoMerge "Remove Gallery and Music role" into qt-dev
Philip P. Moltmann [Fri, 5 Apr 2019 18:13:14 +0000 (18:13 +0000)]
Merge "Remove Gallery and Music role" into qt-dev

5 years agoMerge "Add getTextClassifier perf test" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 18:04:23 +0000 (18:04 +0000)]
Merge "Add getTextClassifier perf test" into qt-dev

5 years agoMerge "Fix lifecycle issue in CommonPool" into qt-dev
John Reck [Fri, 5 Apr 2019 17:59:10 +0000 (17:59 +0000)]
Merge "Fix lifecycle issue in CommonPool" into qt-dev

5 years agoMerge "Ensure getParentSurfaceControl and getSurfaceControl return valid or null...
TreeHugger Robot [Fri, 5 Apr 2019 17:50:52 +0000 (17:50 +0000)]
Merge "Ensure getParentSurfaceControl and getSurfaceControl return valid or null SC" into qt-dev

5 years agoMerge "Adding a level of indirection. Dimens value should live in the framework/base...
TreeHugger Robot [Fri, 5 Apr 2019 17:44:25 +0000 (17:44 +0000)]
Merge "Adding a level of indirection. Dimens value should live in the framework/base and not the overlay." into qt-dev

5 years agoMerge "Support profileable application action" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 17:26:53 +0000 (17:26 +0000)]
Merge "Support profileable application action" into qt-dev

5 years agoMerge "make libmedia_jni_utils depends on libgui" into qt-dev
Chong Zhang [Fri, 5 Apr 2019 17:18:04 +0000 (17:18 +0000)]
Merge "make libmedia_jni_utils depends on libgui" into qt-dev

5 years agoMerge "wifi.proto: Add link probe event to StaEvent" into qt-dev
David Su [Fri, 5 Apr 2019 17:15:01 +0000 (17:15 +0000)]
Merge "wifi.proto: Add link probe event to StaEvent" into qt-dev

5 years agoMerge "zygote: initialize ashmem early" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 17:06:51 +0000 (17:06 +0000)]
Merge "zygote: initialize ashmem early" into qt-dev

5 years agoUpdate action bar dark theme style
Salvador Martinez [Thu, 28 Mar 2019 22:14:54 +0000 (15:14 -0700)]
Update action bar dark theme style

Sets the background colors for action bars in the dark theme
style for DeviceDefault to use a black background. Settings
was overriding it locally so other apps weren't getting the
correct color.

Test: visual inspection
Bug: 120422008
Change-Id: Ic2b0235b7825a5651d1db52265dea5e74af7c2fe

5 years agoFormat all IconPack overlay resources.
Amin Shaikh [Fri, 5 Apr 2019 16:43:19 +0000 (12:43 -0400)]
Format all IconPack overlay resources.

Ran vendor/google_experimental/users/ashaikh/IconPack/format_icon_pack_xml.sh
which formats all drawable resources using the same ordering as android
studio.  All future icon pack updates will include formatting resources this way.

Bug: 118757293
Test: make
Change-Id: I8978dc72369ec98a8a29ba9ec787fd8de860cb73

5 years agoDon't set sehash when calling restoreconRecursive
Nick Kralevich [Thu, 4 Apr 2019 22:54:58 +0000 (15:54 -0700)]
Don't set sehash when calling restoreconRecursive

restorecon_recursive updates the SELinux label of the files in the
filesystem, and then attempts to write the xattr "security.sehash" as an
optimization for future restorecons. Writing security.* extended
attributes requires CAP_SYS_ADMIN, which system_server doesn't have (and
shouldn't have).

Suppress the computation and writing of the hash value. It's not
needed.

This bug has been around for a long time, but due to the fix for
bug 62302954, the error message is being generated more frequently
now.

TODO: It would be better if the default for restorecon was to suppress
the hash computation, since otherwise it encourages programs to be
overprivileged with CAP_SYS_ADMIN. I'll plan on doing that in a followup
commit.

Bugs where this error message has been called out:
Bug: 129766333
Bug: 129271240
Bug: 128700692
Bug: 129925723

Test: install an APK and ensure that no "SELinux:  setxattr failed"
    error messages are generated.

(cherry picked from commit cb1dddad27b86e675f7141ca429e9bb8ab8ac410)

Change-Id: Ifc5be24d14029cb616d5564366fc10a0b93c9939

5 years agoMerge "Only switch task focus to window's task that was tapped outside current focus...
Chavi Weingarten [Fri, 5 Apr 2019 16:41:43 +0000 (16:41 +0000)]
Merge "Only switch task focus to window's task that was tapped outside current focus" into qt-dev

5 years agoMerge "EGLAttrib requires special handling in JNI" into qt-dev
Courtney Goeltzenleuchter [Fri, 5 Apr 2019 16:37:25 +0000 (16:37 +0000)]
Merge "EGLAttrib requires special handling in JNI" into qt-dev

5 years agoFix documentation of CallRedirectionService
sqian [Fri, 5 Apr 2019 16:21:31 +0000 (09:21 -0700)]
Fix documentation of CallRedirectionService

Test: sanity
Bug: 130026756
Change-Id: I48f60b3c4a465e22250aa513a4d7d73f82375426

5 years agoFix metadata surfacecontrol api/jni
Evan Rosky [Thu, 4 Apr 2019 02:27:18 +0000 (19:27 -0700)]
Fix metadata surfacecontrol api/jni

This was wrong

Bug: 122925737
Test: Using setMetadata doesn't crash anymore
Change-Id: I75216ca9778e356b3f2a76555367e2563d9a29e0

5 years agoEnsure getParentSurfaceControl and getSurfaceControl return valid or null SC
Robert Carr [Thu, 4 Apr 2019 19:02:51 +0000 (12:02 -0700)]
Ensure getParentSurfaceControl and getSurfaceControl return valid or null SC

Many places (like SurfaceAnimator#reset) expect that these SC will be valid or
null, but various implementors of Animatable were not fulfilling this contract.
Fulfill the contract and update the java-doc. Since everyone follows function
documentation this will never happen again.

Test: Existing tests pass. go/wm-smoke
Bug: 129949355
Change-Id: I5acb6b3209158c4c5b258a06c5d60d9e06bb6db1

5 years agoAdd supported PackageInfo to ExplicitHealthCheckService API
Zimuzo [Fri, 29 Mar 2019 17:42:19 +0000 (17:42 +0000)]
Add supported PackageInfo to ExplicitHealthCheckService API

With the change in I4f13638598037acaeb30d61c8d5178f45882fcba
to separate the PackageWatchdog package expiry deadline from the explicit
health check deadline. It would be cleaner for ExtServices to supply
this deadline per-package. We now do that as a field in
PackageInfo.

Bug: 120598832
Test: Builds

Change-Id: I29e2d619a5296716c29893ab3aa2f35f69bfb4d7

5 years agoMerge "fix AudioAttributes matching rule in AudioProductStrategy" into qt-dev
Eric Laurent [Fri, 5 Apr 2019 16:00:00 +0000 (16:00 +0000)]
Merge "fix AudioAttributes matching rule in AudioProductStrategy" into qt-dev

5 years agoMerge "Revert "Revert "Mute haptic channels by default.""" into qt-dev
Eric Laurent [Fri, 5 Apr 2019 16:00:00 +0000 (16:00 +0000)]
Merge "Revert "Revert "Mute haptic channels by default.""" into qt-dev

5 years agoMerge "Flag to configure model parameters" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:52:17 +0000 (15:52 +0000)]
Merge "Flag to configure model parameters" into qt-dev

5 years agoMerge "Set system gesture exclusion rects for Bubbles" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:41:25 +0000 (15:41 +0000)]
Merge "Set system gesture exclusion rects for Bubbles" into qt-dev

5 years agoVolume dialog should show the volume for the group id that is being changed.
Priyank Singh [Fri, 29 Mar 2019 22:00:16 +0000 (15:00 -0700)]
Volume dialog should show the volume for the group id that is being changed.

Bug: 117938620
Test: Manual
Change-Id: Ib32c1ac996c2f444d815390fc928381c8f781c2b

5 years agoAdding a level of indirection. Dimens value should live in the framework/base and...
Priyank Singh [Wed, 27 Mar 2019 22:40:05 +0000 (15:40 -0700)]
Adding a level of indirection. Dimens value should live in the framework/base and not the overlay.

Bug: 129080865
Test: Manual
Change-Id: Ic6bc3b254c32afad4230351fe9dd33217a7a86a4

5 years agoMerge "Catch ArrayIndexOutOfBoundsException in StateMachine.toString()" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:27:05 +0000 (15:27 +0000)]
Merge "Catch ArrayIndexOutOfBoundsException in StateMachine.toString()" into qt-dev

5 years agoMerge "Fix isExternalStorageSandboxed() bug." into qt-dev
Jeff Sharkey [Fri, 5 Apr 2019 15:18:23 +0000 (15:18 +0000)]
Merge "Fix isExternalStorageSandboxed() bug." into qt-dev

5 years agoMerge "Expose notification guts on menu shown" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 15:05:15 +0000 (15:05 +0000)]
Merge "Expose notification guts on menu shown" into qt-dev

5 years agoRe-inflate views in onOverlayChanged.
Robert Snoeberger [Fri, 5 Apr 2019 14:37:21 +0000 (10:37 -0400)]
Re-inflate views in onOverlayChanged.

onThemeChanged had been used to re-inflate changes, but
ag/6670184 modified onThemeChanged to exit early if the
ThemeResId hasn't changd. A style change doesn't change
the ThemeResId, so re-inflating views in onOverlayChanged
so that font, etc. will update.

Fixes: 129870891
Test: Lock screen font changes with style change.
Change-Id: Ib4aecb017012d5035753fdc3a71615cb7b5216ce

5 years agoMerge "Update icon for Calendar permission." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:26:14 +0000 (14:26 +0000)]
Merge "Update icon for Calendar permission." into qt-dev

5 years agoMerge "fix nullability" into qt-dev
Todd Kennedy [Fri, 5 Apr 2019 14:16:37 +0000 (14:16 +0000)]
Merge "fix nullability" into qt-dev

5 years agoMerge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:10:41 +0000 (14:10 +0000)]
Merge "Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2" into qt-dev

5 years agoMerge "Update theme icon packs." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 14:08:52 +0000 (14:08 +0000)]
Merge "Update theme icon packs." into qt-dev

5 years agoSet system gesture exclusion rects for Bubbles
Mark Renouf [Mon, 1 Apr 2019 18:17:37 +0000 (14:17 -0400)]
Set system gesture exclusion rects for Bubbles

When there is at least one Bubble on-screen, the bounds
of the first (top) bubble are set to exclude system
navigation gestures.

Test: manually w/fully gesture nav enabled
Bug: 126360272
Change-Id: I47a3c69fdc89476805d48b5214a7f05f5d033306

5 years agoFlag to configure model parameters
Tony Mak [Fri, 22 Mar 2019 15:35:15 +0000 (15:35 +0000)]
Flag to configure model parameters

The objective is to allow us to push model parameters by using a settings flag,
without the need of pushing a new model file.

Settings.Global#TEXT_CLASSIFIER_ACTION_MODEL_PARAMS stores a comma
separated string that contains these three fields:
1. required_model_version
2. required_locales
3. serialized_preconditions

To ensure serialized_preconditions is applied to the target model file,
TextClassifierImpl only applies the serialized_preconditions when
required_model_version and required_locales are both met.

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: adb shell settings put global text_classifier_action_model_params 'required_model_version=0,required_locales=en,serialized_preconditions=FAAAAAAADgAIAAAAAAAAAAAABAAOAAAAAAAAAA=='
      Observe that the flag is actually applied in the model.
Test: Ensure that finalize is called when the activity is dead.

BUG: 123616497

Change-Id: Ie42dcfeee705c83bbb693a5c1a0fedd0821df5e7

5 years agoMerge "Stores serialized entity data to the extras" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 13:26:20 +0000 (13:26 +0000)]
Merge "Stores serialized entity data to the extras" into qt-dev

5 years agoMerge "Fix rollbacks in multi-user case." into qt-dev
Narayan Kamath [Fri, 5 Apr 2019 12:39:42 +0000 (12:39 +0000)]
Merge "Fix rollbacks in multi-user case." into qt-dev

5 years agoSharesheet - Limit EXTRA_INITIAL_INTENTS to 2
Matt Pietal [Fri, 5 Apr 2019 12:32:47 +0000 (08:32 -0400)]
Sharesheet - Limit EXTRA_INITIAL_INTENTS to 2

Will eventually merge with suggested apps

Bug: 129979509
Test: ChooserActivityTest
Change-Id: I0e5f5a42155c83c77c6f6e355289218bc88033e7

5 years agoFix rollbacks in multi-user case.
Richard Uhler [Mon, 1 Apr 2019 12:02:31 +0000 (13:02 +0100)]
Fix rollbacks in multi-user case.

There are a few assumptions in the rollback manager that fail in the
multi-user case that need to be fixed:
* getAllSessions only returns sessions for the specific user.
* Session callbacks are only called on sessions associated with the
  registered user.
* getPackageInfo only returns info for the specific user.

Fix these issues so that rollbacks will work properly, in particular
when the initial install session is owned by a non-system user.

Bug: 129809507
Bug: 129397974

Test: On single user device: atest RollbackTest StagedRollbackTest
Test: On primary user of multi-user device: atest RollbackTest StagedRollbackTest
Test: On multi user device manually:
    adb install RollbackTestAppAv1.apk
    adb install --user 10 --enable-rollback RollbackTestAppAv2.apk
    -- verify the install succeeded --
    adb shell pm rollback-app com.android.tests.rollback.testapp.A
    -- verify the rollback succeeded --

Test: On multi user device manually:
    adb install RollbackTestAppAv1.apk
    adb install --staged --user 10 --enable-rollback RollbackTestAppAv2.apk
    adb reboot
    -- verify the install succeeded --
    adb shell pm rollback-app com.android.tests.rollback.testapp.A
    adb reboot
    -- verify the rollback succeeded --

(cherry picked from commit d81ff978667a776884362ef2461b3015c56117d1)

Merged-In: I1a7cf101b3bc3575421629c4bf0ff63418eb8731
Change-Id: I1a7cf101b3bc3575421629c4bf0ff63418eb8731

5 years agoMerge "Fast follow-on unit tests for HashedStringCache" into qt-dev
Susi Kharraz-Post [Fri, 5 Apr 2019 11:35:38 +0000 (11:35 +0000)]
Merge "Fast follow-on unit tests for HashedStringCache" into qt-dev

5 years agoMerge "Refactor PackageWatchdog explicit health checks" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 09:45:40 +0000 (09:45 +0000)]
Merge "Refactor PackageWatchdog explicit health checks" into qt-dev

5 years agoMerge "Fix system_server watchdog timeout" into qt-dev
Sungsoo Lim [Fri, 5 Apr 2019 09:09:21 +0000 (09:09 +0000)]
Merge "Fix system_server watchdog timeout" into qt-dev

5 years agoMerge "Fix NetworkStackTests." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 08:02:37 +0000 (08:02 +0000)]
Merge "Fix NetworkStackTests." into qt-dev

5 years agoMerge "Set sdk_version for PluginCoreLib" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 06:49:33 +0000 (06:49 +0000)]
Merge "Set sdk_version for PluginCoreLib" into qt-dev

5 years agoMerge "Add secure setting to cache attention" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 06:33:37 +0000 (06:33 +0000)]
Merge "Add secure setting to cache attention" into qt-dev

5 years agoMerge "Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)" into...
Anil Admal [Fri, 5 Apr 2019 06:15:35 +0000 (06:15 +0000)]
Merge "Restore gnss@1.1 HAL capability bits removed in gnss@2.0 (framework)" into qt-dev

5 years agoMerge "Sharesheet - Fix portrait -> landscape switch" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 05:33:13 +0000 (05:33 +0000)]
Merge "Sharesheet - Fix portrait -> landscape switch" into qt-dev

5 years agoMerge "Remove unused flags from bubble controller" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 05:10:58 +0000 (05:10 +0000)]
Merge "Remove unused flags from bubble controller" into qt-dev

5 years agoDisable a wakeup alarm in car.
Serik Beketayev [Thu, 21 Feb 2019 00:50:26 +0000 (16:50 -0800)]
Disable a wakeup alarm in car.

- Car in power off or suspend state should not wake up from alarm.

Test: run added unit test.
Bug: 123430582
Change-Id: I5cdf93fc816cd3e8a5d2a6d93616ff6040840613

5 years agoMerge "Fix enumerate corner case" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 04:24:04 +0000 (04:24 +0000)]
Merge "Fix enumerate corner case" into qt-dev

5 years agoMerge "Update BiometricPrompt default title" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 04:23:27 +0000 (04:23 +0000)]
Merge "Update BiometricPrompt default title" into qt-dev

5 years agoMerge "Add back render-ahead support" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 03:57:37 +0000 (03:57 +0000)]
Merge "Add back render-ahead support" into qt-dev

5 years agoMerge "Add draw props back to greylist" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 03:30:48 +0000 (03:30 +0000)]
Merge "Add draw props back to greylist" into qt-dev

5 years agoMerge "Improved the debug message" into qt-dev
Jack Yu [Fri, 5 Apr 2019 03:17:40 +0000 (03:17 +0000)]
Merge "Improved the debug message" into qt-dev

5 years agoImproved the debug message
Jack Yu [Thu, 4 Apr 2019 22:10:17 +0000 (15:10 -0700)]
Improved the debug message

Improved the log readability by printed out data state
in string format instead of integer. Also added listen
local log.

Bug: 129631771
Test: Manual
Change-Id: If786d51b35380f606bc388e29a441bb24a2792e0

5 years agoMerge "Adjust the physics params to values decided on in meeting w/ design." into...
TreeHugger Robot [Fri, 5 Apr 2019 02:42:44 +0000 (02:42 +0000)]
Merge "Adjust the physics params to values decided on in meeting w/ design." into qt-dev

5 years agoMerge "Update shape for all bubbles" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 02:41:01 +0000 (02:41 +0000)]
Merge "Update shape for all bubbles" into qt-dev

5 years agoMerge "Allow the WebView native library to have dependencies." into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 01:23:37 +0000 (01:23 +0000)]
Merge "Allow the WebView native library to have dependencies." into qt-dev

5 years agoMerge "Fix mixed up variable in triggering logic" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 01:00:22 +0000 (01:00 +0000)]
Merge "Fix mixed up variable in triggering logic" into qt-dev

5 years agoMerge "notifyEnabledOnKeyguardCallbacks when user switches" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 00:44:01 +0000 (00:44 +0000)]
Merge "notifyEnabledOnKeyguardCallbacks when user switches" into qt-dev

5 years agoMerge changes from topic "face-profile-qt-dev" into qt-dev
Kevin Chyn [Fri, 5 Apr 2019 00:41:17 +0000 (00:41 +0000)]
Merge changes from topic "face-profile-qt-dev" into qt-dev

* changes:
  Enroll for the correct user
  Do not updateActiveGroup on a handler
  Launch ConfirmDeviceCredential with actual userId
  Settings should be per-profile

5 years agoMerge "Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported" into...
TreeHugger Robot [Fri, 5 Apr 2019 00:40:36 +0000 (00:40 +0000)]
Merge "Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported" into qt-dev

5 years agoAdd secure setting to cache attention
Kevin Chyn [Fri, 5 Apr 2019 00:13:50 +0000 (17:13 -0700)]
Add secure setting to cache attention

Fixes: 129912479

Test: Builds
Change-Id: I48979c65fc33bb5d70198f549a0ea863257e0247

5 years agozygote: initialize ashmem early
Tim Murray [Thu, 4 Apr 2019 16:19:03 +0000 (09:19 -0700)]
zygote: initialize ashmem early

avoids dlopen of ashmemd_client in every app startup.

Test: boots, works, doesn't dlopen in app startup
Bug: 129543489
Change-Id: I76ba230af30cd007dbbca054e06660e8a30aca36

5 years agoMerge "Camera: Clarify camera1 API behavior for getNumberOfCameras" into qt-dev
TreeHugger Robot [Fri, 5 Apr 2019 00:13:29 +0000 (00:13 +0000)]
Merge "Camera: Clarify camera1 API behavior for getNumberOfCameras" into qt-dev

5 years agoMerge "media: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES...
Wonsik Kim [Fri, 5 Apr 2019 00:05:02 +0000 (00:05 +0000)]
Merge "media: fix documentation for MediaFormat.KEY_PREPEND_HEADERS_TO_SYNC_FRAMES" into qt-dev

5 years agoMerge "Change ISE to AssertException, which is more suitable." into qt-dev
Makoto Onuki [Thu, 4 Apr 2019 23:56:29 +0000 (23:56 +0000)]
Merge "Change ISE to AssertException, which is more suitable." into qt-dev

5 years agoDisable ScheduledJobConstraintChanged logging for now.
Yao Chen [Thu, 4 Apr 2019 23:34:24 +0000 (16:34 -0700)]
Disable ScheduledJobConstraintChanged logging for now.

+ No metrics or experiments are using this atom. Disabling it does not do any harm.
+ This atom is too frequent during boot time and causes socket buffer overflow. Other
  important events from system server may drop.

We can re-enable the logging once we figure out what metrics we are going to have.

Bug: 129954980
Test: manual
Change-Id: I06bb00cc3be58f73cc88f4cd825f2d71d678fb9d

5 years agoMerge "WifiManager: Restore network pin behavior on enableNetwork" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:54:13 +0000 (23:54 +0000)]
Merge "WifiManager: Restore network pin behavior on enableNetwork" into qt-dev

5 years agoMerge "Fixup App Compaction CL nits." into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:43:30 +0000 (23:43 +0000)]
Merge "Fixup App Compaction CL nits." into qt-dev

5 years agoMerge "Don't show dnd suppressed icons on aod" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:42:57 +0000 (23:42 +0000)]
Merge "Don't show dnd suppressed icons on aod" into qt-dev

5 years agoRefactor PackageWatchdog explicit health checks
Zimuzo [Mon, 1 Apr 2019 17:54:17 +0000 (18:54 +0100)]
Refactor PackageWatchdog explicit health checks

Improvements:

1. Queuing PackageWatchdog requests to startObserving packages:
When observing packages with the watchdog, we needed to get
the packages supporting explicit health checks so we can decide if a
package should be passing or not. This prevents us from receiving
requests to monitor packages during early boot, before third party
packages are ready. In this change we don't depend on ExtServices to
be up to startObserving, we initially treat all package as failing a
health check and lazily syncRequests to request or cancel explicit
health checks based on the currently observed packages. When we receive
onSupportedPackages, we mark the packages that don't support health
checks as passing.

2. Lazy binding to the explicit health check service:
We were always bound to the explicit health check
service regardless of whether we are expecting requests or not, we need
to be able to bind and unbind dynamically to improve device resource
usage. In this change, we bind as soon as we make a request and are
expecting results, we unbind otherwise.

3. Fixed Races:
There were a couple of potential races that could lead to exceptions
that could bring the system server down, e.g when the service is
transitioning between disconnected and connected state (maybe it
crashed) or when ExtServices is being upated and is down or early
boot requests when third party apps are not ready. This change fixes such.

4. Logging:
We improved the logging wording and order and made it more consistent

Bug: 120598832
Test: Manual tests. Stress tested behavior by killing extservices and
making requests simultaneously

function killproc {
    while true
    do
        local pid=$(adb shell pidof $1)
        if [[ ! -z $pid ]]
        then
            echo $pid
            adb shell kill $pid
        fi
    done;
}

adb install-multi-package -i com.android.shell --enable-rollback \
NetworkStack.apk ModuleMetadataGoogle.apk

Also switched between enabled and disabled states to verify packages
are handled correctly. Will automate these tests in later cl

atest PackageWatchdogTest
Change-Id: Iafaef553e95d107f700109f9a8328950a5e2bf71

5 years agoMerge "Introduce a result class for IStatusBarService#registerStatusBar()" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:22:55 +0000 (23:22 +0000)]
Merge "Introduce a result class for IStatusBarService#registerStatusBar()" into qt-dev

5 years agoUpdate theme icon packs.
Amin Shaikh [Thu, 4 Apr 2019 22:21:19 +0000 (18:21 -0400)]
Update theme icon packs.

Mostly Settings, framework permission group icons and some SystemUI
volume dialog icons.

Bug: 129677355
Bug: 128354921
Test: make; install all overlays and change themes
Change-Id: I7099a050c6e4521e54fd258126e800dab3f66c3e

5 years agoMerge "Update systemui wifi icons to GM2." into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 23:10:28 +0000 (23:10 +0000)]
Merge "Update systemui wifi icons to GM2." into qt-dev

5 years agoFix lifecycle issue in CommonPool
John Reck [Thu, 4 Apr 2019 22:49:40 +0000 (15:49 -0700)]
Fix lifecycle issue in CommonPool

Destroy things more faster

Fixes: 129250875
Test: hwui_unit_tests
Change-Id: I7e060fcb61f5321dd9e68a3ee4a01868033b3fc3

5 years agonotifyEnabledOnKeyguardCallbacks when user switches
Kevin Chyn [Thu, 4 Apr 2019 23:02:37 +0000 (16:02 -0700)]
notifyEnabledOnKeyguardCallbacks when user switches

The setting is per-user and the source of truth is in BiometricService.
Keyguard's cache needs to be updated when user switch occurs

Fixes: 5268106

Test: Builds
Change-Id: I8a5678375989221e5b502fa683697cf4ca664def

5 years agoEnroll for the correct user
Kevin Chyn [Thu, 4 Apr 2019 22:50:11 +0000 (15:50 -0700)]
Enroll for the correct user

Bug: 110907543

Test: Builds
Change-Id: I637809cd18d84402918c95d1fc010dacc14f8785

5 years agoMerge "Fix for NetworkStats/Telephony deadlock" into qt-dev
TreeHugger Robot [Thu, 4 Apr 2019 22:48:01 +0000 (22:48 +0000)]
Merge "Fix for NetworkStats/Telephony deadlock" into qt-dev

5 years agoRename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported
Jack He [Thu, 4 Apr 2019 18:19:48 +0000 (11:19 -0700)]
Rename BluetoothManufacturerInfoReported to BluetoothDeviceInfoReported

* Rename this atom to match the atom's field name

Bug: 112969790
Test: make
Change-Id: Idb54766703f47a5eb6cd7f0cdff1c41e1a92cfb1

5 years agoFix mixed up variable in triggering logic
Salvador Martinez [Thu, 4 Apr 2019 17:30:19 +0000 (10:30 -0700)]
Fix mixed up variable in triggering logic

When this code got refactored the check for severe warnings
accidentally had the time remaining being compared against the percentage
value of the severe warning threshold. Unfortunately this meant that
it was impossible to mark the severe level warning as shown and could
result in multiple triggerings. This change makes it so everything
is compared with the appropriate type of value again.

Test: PowerUI Tests pass
Bug: 129730217
Change-Id: Ic8bdabf1c70e49d117210bb80f1ca0a0d7684617

5 years agoAdjust the physics params to values decided on in meeting w/ design.
Joshua Tsuji [Thu, 4 Apr 2019 21:50:02 +0000 (17:50 -0400)]
Adjust the physics params to values decided on in meeting w/ design.

Fixes: 129981373
Test: manual
Change-Id: Idfa840d6aade8ac975bd89bb0ba155f21e9f3ed8

5 years agoUpdate shape for all bubbles
Lyn Han [Thu, 4 Apr 2019 21:03:40 +0000 (14:03 -0700)]
Update shape for all bubbles

After theme change.

Test: manual
Bug: 123829494
Change-Id: I9eca25f19646607d85957f5113178619b7927dfe

5 years agoUpdate systemui wifi icons to GM2.
Amin Shaikh [Tue, 2 Apr 2019 11:50:27 +0000 (07:50 -0400)]
Update systemui wifi icons to GM2.

Remove unneeded NeutralGoodDrawable.

Bug: 124106839
Test: make; used sysui demo mode
Change-Id: Ib3e903d83be140b00410e3adbb31f217b562d372

5 years agoChange ISE to AssertException, which is more suitable.
Makoto Onuki [Thu, 4 Apr 2019 20:39:55 +0000 (13:39 -0700)]
Change ISE to AssertException, which is more suitable.

Bug: 129139241
Bug: 129721058
Test: Treehugger
Change-Id: I12e97f37a58e1d88731a9bddd933abeb8c1169c1

5 years agoSupport profileable application action
Chris Craik [Thu, 4 Apr 2019 19:46:47 +0000 (12:46 -0700)]
Support profileable application action

Fixes: 129358330
Test: make -j16 aapt2_run_host_unit_tests && cat out/target/product/walleye/obj/PACKAGING/aapt2_run_host_unit_tests_intermediates/result.xml | grep "failure message"
Change-Id: Id9ec59447a99a5f6e0bfe47c0b8ce3553bf751c7

5 years agoFix NetworkStackTests.
Yifan Hong [Thu, 4 Apr 2019 01:15:22 +0000 (18:15 -0700)]
Fix NetworkStackTests.

NetworkStackTests dlopens library which indirectly
uses libcgrouprc. Add it to jni_libs.

Test: atest
Fixes: 129902619
Change-Id: I0d60d7a317fa60607d6fdaea15f61b458aefd2f0
Merged-In: I0d60d7a317fa60607d6fdaea15f61b458aefd2f0

5 years agoDo not updateActiveGroup on a handler
Kevin Chyn [Thu, 4 Apr 2019 01:12:48 +0000 (18:12 -0700)]
Do not updateActiveGroup on a handler

This method must not return to the caller until complete, otherwise
weird race conditions may occur.

Bug: 110907543

Test: Builds
Change-Id: Ia82671b34fac3662928012d8c709143efdf92266

5 years agoLaunch ConfirmDeviceCredential with actual userId
Kevin Chyn [Thu, 4 Apr 2019 02:02:27 +0000 (19:02 -0700)]
Launch ConfirmDeviceCredential with actual userId

Fixes: 129905318
Bug: 110907543

Test: Set up work profile, use BiometricPromptDemo to allow device
      credentials. Work profile demo app now requests work profile
      password.

Change-Id: Iec53966c6ad87021fdaa1808a1814a4abfbf89bb

5 years agoSettings should be per-profile
Kevin Chyn [Thu, 4 Apr 2019 03:28:28 +0000 (20:28 -0700)]
Settings should be per-profile

Fixes: 129905061

Test: Builds
Change-Id: If1b3e92da61c051c5f38a425da17f98cdfc3336d