OSDN Git Service
TreeHugger Robot [Sat, 27 Apr 2019 06:41:24 +0000 (06:41 +0000)]
Merge "Fix ValueMetric unit test." into qt-dev
Sooraj Sasindran [Sat, 27 Apr 2019 06:08:59 +0000 (06:08 +0000)]
Merge "Show opportunistic provider name conditionally" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 06:06:25 +0000 (06:06 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 03:18:08 +0000 (03:18 +0000)]
Merge "Skip data pulling when metric is not active" into qt-dev
Varun Shah [Sat, 27 Apr 2019 02:52:45 +0000 (02:52 +0000)]
Merge "Update standby bucket for uninteracted foreground services." into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 02:19:58 +0000 (02:19 +0000)]
Merge "Make DNS cache lifecycle management explicit" into qt-dev
Ryan Mitchell [Sat, 27 Apr 2019 01:54:11 +0000 (01:54 +0000)]
Merge changes from topic "aapt2-attr" into qt-dev
* changes:
Add formats for declare-styleable attributes
No new attributes in declare-styleables when format is not provided
Bill Yi [Sat, 27 Apr 2019 01:52:59 +0000 (18:52 -0700)]
Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Bug:
64712476
Change-Id: Ia30447a9057e608b24737182dc46d8fa6be3123f
TreeHugger Robot [Sat, 27 Apr 2019 01:41:48 +0000 (01:41 +0000)]
Merge "Single tap on the glass pane in notification shade should close the shade." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:39:34 +0000 (01:39 +0000)]
Merge "Scheduling start alarm when job starts off out of quota." into qt-dev
Kweku Adams [Sat, 27 Apr 2019 01:17:00 +0000 (01:17 +0000)]
Merge "Gating OutOfBoundsException on targetSdkVersion." into qt-dev
Lucas Dupin [Sat, 27 Apr 2019 00:56:16 +0000 (00:56 +0000)]
Merge "Log time ticks" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:41:45 +0000 (00:41 +0000)]
Merge "BiometricPrompt negative button should show "cancel" after onAuthenticated" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:41:18 +0000 (00:41 +0000)]
Merge "Init confirm button in disabled state instead of gone state" into qt-dev
Kevin Chyn [Sat, 27 Apr 2019 00:40:32 +0000 (00:40 +0000)]
Merge "Fix createConfirmDeviceCredentialIntent documentation" into qt-dev
Priyank Singh [Fri, 26 Apr 2019 01:17:02 +0000 (18:17 -0700)]
Single tap on the glass pane in notification shade should close the shade.
Bug:
130168660
Test: Manual
Change-Id: I7724ba08557db0f19dcbd0056bf248acab80368b
(cherry picked from commit
9dd6c788b02bf3f9dd79682aad6d783af1c2b298)
Lorenzo Colitti [Sat, 27 Apr 2019 00:13:31 +0000 (00:13 +0000)]
Merge "Add privapp permissions to network modules." into qt-dev
TreeHugger Robot [Sat, 27 Apr 2019 00:01:01 +0000 (00:01 +0000)]
Merge "Always instantiate DisplayAddress.Physical" into qt-dev
Andy Hung [Fri, 26 Apr 2019 23:50:32 +0000 (23:50 +0000)]
Merge "MediaCodec: Fix documentation on float raw audio buffers" into qt-dev
Mady Mellor [Fri, 26 Apr 2019 22:57:19 +0000 (22:57 +0000)]
Merge "Bubbles shouldn't be available on low ram device" into qt-dev
Andy Hung [Thu, 10 Jan 2019 02:42:41 +0000 (18:42 -0800)]
MediaCodec: Fix documentation on float raw audio buffers
Test: make docs, check html
Bug:
131423214
Change-Id: If2d6f78cc5f77a5c7b5b8b936ae9f3216387561e
Chris Tate [Fri, 26 Apr 2019 22:27:24 +0000 (22:27 +0000)]
Merge "Top apps may start fg services even when under bg restriction" into qt-dev
Selim Cinek [Fri, 26 Apr 2019 22:03:00 +0000 (22:03 +0000)]
Merge changes from topic "back_redesign" into qt-dev
* changes:
Rewrote the back arrow animation
Made back button sample the color and background protect it that way
Minor adjustments to the edge back gesture
Kevin Rocard [Tue, 9 Apr 2019 23:26:06 +0000 (16:26 -0700)]
Propagate to apps capture opt-in
Allows public apps to detect if playback have opted-out of being
capture.
Bug:
129948989
Test: atest AudioPlaybackConfigurationTest
Change-Id: Id2c2ad195e5fdeba89926dcdbbe9fa22c2d25891
Signed-off-by: Kevin Rocard <krocard@google.com>
Lucas Dupin [Fri, 26 Apr 2019 21:51:43 +0000 (21:51 +0000)]
Merge "Fixed SIM pin pad overlap" into qt-dev
Sooraj Sasindran [Thu, 25 Apr 2019 22:12:21 +0000 (15:12 -0700)]
Show opportunistic provider name conditionally
For testing purpose, we want system UI to show grouped CBRS carrier name
as in the upper left corner in system UI. But we want to make this a
conditoinal behavior.
Bug:
129865342
Test: manual
Change-Id: I38a49447ca07615b5e14a92412b68a2a44b2726c
TreeHugger Robot [Fri, 26 Apr 2019 21:19:08 +0000 (21:19 +0000)]
Merge "Make package installer tests post submit" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:14:19 +0000 (21:14 +0000)]
Merge "Restrict bindIsolatedService instanceName to just letters, digits, '_', and '.'" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 21:06:21 +0000 (21:06 +0000)]
Merge "Use ActivityThread.currentApplication() for application context." into qt-dev
Christopher Tate [Tue, 23 Apr 2019 18:13:35 +0000 (11:13 -0700)]
Top apps may start fg services even when under bg restriction
We now apply bg restriction policy (appop) on being able to enter a
foreground service lifecycle only when the app is not in a "top" i.e.
directly user-facing state. This avoids breaking existing supported
lifecycle guarantees involving the order of calls to startService(),
startForeground(), and startForegroundService(). Briefly: there is a
designed behavior in the following sequence:
1. startService(intent);
2. startForeground() on that service; then
3. startForegroundService(intent)
The intentional behavior is that after step 3, the app is not required
to call startForeground() *again,* redundantly; because that service is
already in a fg lifecycle.
However, new-in-Q code broke this pattern in the case where the user had
imposed bg service restrictions on the app. For this and for
semantic/model reasons, we now do not apply fg service start
restrictions to the user-facing app, even if the at app is under bg
execution restrictions. The app is not background at that time, so
should not be expected to face a different execution environment.
Bug:
130048629
Test: Foreground use of GPM under bg restrictions
Change-Id: I0e8c308ac26211082a90c165a64d66b31ab804df
Vishnu Nair [Fri, 26 Apr 2019 20:39:20 +0000 (20:39 +0000)]
Merge "[wm] Adjust freeform header not to be overlapped with stable insets" into qt-dev
Matt Pape [Fri, 26 Apr 2019 20:35:43 +0000 (20:35 +0000)]
Merge "Support OnPropertiesChangedListener in TestableDeviceConfig." into qt-dev
Kevin Chyn [Fri, 26 Apr 2019 18:28:21 +0000 (11:28 -0700)]
Fix createConfirmDeviceCredentialIntent documentation
Test: make -j56 docs
Test: checked out/target/common/docs/offline-sdk/reference/android/app/KeyguardManager.html
Fixes:
131419117
Change-Id: I8c9254a591677ccf2453bff7d517a641da2b0f32
Philip P. Moltmann [Fri, 26 Apr 2019 20:30:18 +0000 (20:30 +0000)]
Merge "Don't use Context#getApplicationContext" into qt-dev
Kevin Chyn [Fri, 26 Apr 2019 18:14:20 +0000 (11:14 -0700)]
BiometricPrompt negative button should show "cancel" after onAuthenticated
When the biometric is authenticated, the negative button should show
"cancel" instead. It should also invoke onUserCanceled instead of
onNegativePressed.
Fixes:
131274300
Test: manual
Change-Id: I104857e5e448bcd11c59311776c28e280566c2e0
Kevin Chyn [Fri, 26 Apr 2019 18:02:13 +0000 (11:02 -0700)]
Init confirm button in disabled state instead of gone state
For modalities that can require confirmation, show the "confirm" button
grayed out while the user is authenticating.
Bug:
131274300
Test: manual
Change-Id: I4e1c5e9df67c40f327480d066bc5a62f7e37e710
Kweku Adams [Thu, 25 Apr 2019 23:16:34 +0000 (16:16 -0700)]
Gating OutOfBoundsException on targetSdkVersion.
Apps targeting Pie or older will get the old undefined behavior. Apps
targeting Q or newer will get the OutOfBoundsException.
Bug:
118339123
Test: atest CtsUtilTestCases
Change-Id: Ibf5467aadec4a2f76ee180e963afeaf5a8a013a2
Varun Shah [Fri, 12 Apr 2019 17:54:36 +0000 (10:54 -0700)]
Update standby bucket for uninteracted foreground services.
This fixes a bug where foreground services that were started, but
never interacted with, were not transitioning to the Active bucket
after 30mins - a defined interval.
Also created unit tests for #maybeUpdateUsageStats().
Test steps: (adb shell commands are generic)
1) Install a test app which has a foreground service
* can install test app provided in bug via adb install
2) Set the bucket of the test app to Rare:
$ adb shell am set-stanby-bucket com.packagename rare
3) Launch the foreground service
$ adb shell am broadcast -a com.packagename.intentfilter -n com.packagename/.MyReceiver
4) Wait for approximately 30mins
5) Observe the app bucket - should be Active (10)
$ adb shell am get-standby-bucket com.packagename
Bug:
116189835
Test: atest OomAdjusterTests
Test: manual (steps listed above)
Change-Id: I6949466297cccdc349428c5f6172d65bd9d77a53
Lucas Dupin [Fri, 26 Apr 2019 18:05:23 +0000 (11:05 -0700)]
Log time ticks
AP is waking up but seems like clock is not being updated.
Added some logs to debug it.
Test: look at logs
Fixes:
130888082
Change-Id: I14e31a748573e26f161f837044ef61b57367bfe0
TreeHugger Robot [Fri, 26 Apr 2019 17:12:28 +0000 (17:12 +0000)]
Merge "Set the default value for Secure Settings: AWARE_ENABLED" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 17:01:26 +0000 (17:01 +0000)]
Merge "Fix tests/runtests.sh" into qt-dev
Otto Seiskari [Fri, 12 Apr 2019 10:16:14 +0000 (13:16 +0300)]
Fix tests/runtests.sh
The location of FrameworksWifiTests.apk installed by the script
with adb seems to have changed. The path of the APK contains the
TARGET_ARCH environment variable, which is now fetched
with a similar method as in system/netd/tests/runtests.sh.
Noticed the issue with "lunch aosp_x86_64-eng". Before this fix,
the test script produced an error:
adb: failed to stat [...]/FrameworksWifiApiTests.apk:
No such file or directory
Bug:
128603658
Test: ./frameworks/base/wifi/tests/runtests.sh
Change-Id: Id4a33ca89fa21a9a4ef791c5c1c5760e0e2badaf
Signed-off-by: Otto Seiskari <otto.seiskari@indooratlas.com>
Lucas Dupin [Fri, 26 Apr 2019 16:31:27 +0000 (16:31 +0000)]
Merge "Fix message not showing when face auth is enabled" into qt-dev
Winson Chung [Fri, 26 Apr 2019 16:24:24 +0000 (16:24 +0000)]
Merge "Ensure we get the right nav bar mode for the current user in the system" into qt-dev
Adrian Salido [Fri, 26 Apr 2019 15:55:33 +0000 (15:55 +0000)]
Merge "Use default refresh rate from config" into qt-dev
Matt Pape [Tue, 23 Apr 2019 23:06:55 +0000 (16:06 -0700)]
Support OnPropertiesChangedListener in TestableDeviceConfig.
Handle add and remove listener methods, as well as making callbacks when
setProperty is called.
Test: atest FrameworksCoreTests:DeviceConfigTest
atest FrameworksMockingServicesTests:TestableDeviceConfigTest
atest FrameworksMockingServicesTests:AppCompactorTest
Bug:
128902955
Change-Id: Ie797d40604ab7fc860691ef07461aea42480cbfe
Lorenzo Colitti [Fri, 26 Apr 2019 11:00:48 +0000 (04:00 -0700)]
Add validation type definition to support multiple probe result
In order to allow NetworkMonitor to tell ConnectivityService
if the network is either parital, validated or both.
NetworkMonitor could update the probe result by passing the
bitmask to ConnectivityService.
Bug:
130078798
Bug:
130683832
Test: build
Change-Id: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
Merged-In: I429ccbd9b9afae3eafaf73b3c9eb835213c1f64d
(cherry picked from commit
4932896e244be2edb028552e02374b41e3f7d365)
Julia Reynolds [Fri, 26 Apr 2019 13:41:08 +0000 (13:41 +0000)]
Merge "Fix default app notification locking on new devices" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 13:28:17 +0000 (13:28 +0000)]
Merge changes I1fc3b301,Ib42ab29e into qt-dev
* changes:
Update boot image and system server profiles
Update boot image and system server profiles
TreeHugger Robot [Fri, 26 Apr 2019 13:27:47 +0000 (13:27 +0000)]
Merge "ScoClient only increases count when requestScoState succeed." into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 10:37:51 +0000 (10:37 +0000)]
Merge "Reset DWB color temperature when DWBC is disabled" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 07:58:41 +0000 (07:58 +0000)]
Merge "[Settings] Show accurate Enterprise networks details" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 07:30:51 +0000 (07:30 +0000)]
Merge "Fix app crash while running in second display" into qt-dev
Hai Zhang [Fri, 26 Apr 2019 07:01:59 +0000 (15:01 +0800)]
Use ActivityThread.currentApplication() for application context.
Context.getApplicationContext() might return null if the context is
created with Context.createPackageContextAsUser(), as the application
instance for that context won't be created. In this case we can use
ActivityThread.currentApplication() directly, which does the same
thing as if the context wasn't created for a specific package or user.
We are only using this application context to bind to other services
so it will work fine.
Bug:
131356152
Test: presubmit
Change-Id: Iee1ac9aa088d452dc58dd7f19edc58a3e0b791a6
TreeHugger Robot [Fri, 26 Apr 2019 05:20:34 +0000 (05:20 +0000)]
Merge "Zygote: add a way to preload Vulkan driver" into qt-dev
Evan Rosky [Fri, 26 Apr 2019 04:13:07 +0000 (04:13 +0000)]
Merge "Use stack bounds to apply STACK_CLIP_BEFORE_ANIM" into qt-dev
Adrian Salido [Fri, 26 Apr 2019 02:34:37 +0000 (19:34 -0700)]
Use default refresh rate from config
Currently mDefaultPeakRefreshRate is unused, make use of this as the
default refresh rate when missing user configuration.
Fixes:
130249886
Test: wipe device and check default refresh config is picked up
Change-Id: I88a4e696969d63cdd0fef0aef81bd4c8d3573d3f
Lorenzo Colitti [Fri, 26 Apr 2019 01:06:28 +0000 (18:06 -0700)]
Make DNS cache lifecycle management explicit
1. ConnectivityService calls netd binder to create/destroy network directly.
2. Call dnsresolver binder to create/destroy cache after create/destroy network.
3. Remove unused network create/destroy methods in NetworkManagementService.
Bug:
129453995
Test: atest FrameworksNetTests
Merged-In: I388e208143c38b89bcbb0589de393250024d59aa
(cherry picked from commit
204ca13e63f063f044ac4ad3b96f08b473fe59df)
Change-Id: I4d3dfd9305b60a724aa2dc38448948d8e710c932
Selim Cinek [Fri, 19 Apr 2019 22:58:23 +0000 (15:58 -0700)]
Rewrote the back arrow animation
The animation now is based on physics based animations
and nicely appears and disappears. Also we're rending
it in one piece avoiding drawing artifacts.
We're now factoring in the actual position and size of the
arrow instead of just looking at its width.
Bug:
130682266
Test: observe back animations, play around with it
Change-Id: I8fc4475615d0776a082feec7400b4674ea0331a2
Mady Mellor [Fri, 26 Apr 2019 00:26:15 +0000 (17:26 -0700)]
Bubbles shouldn't be available on low ram device
Bug:
130802184
Test: atest NotificationManagerServiceTest & there is a cts cl
Change-Id: Ib36edacde166a5d2be5e56c1a7b3285a7272d161
Calin Juravle [Thu, 25 Apr 2019 22:12:44 +0000 (15:12 -0700)]
Update boot image and system server profiles
This is a conservative tuning for the last profile update (commit
5b70220fb5a174a7142ca5403563bf528120a63f) which regressed a few metrics
(b/
130553966). The numbers below are quoated relative to the sate before
that update.
=Perf numbers=
The boot image compilation artifacts are 17MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.
Startup and memory number are within the noise. Startup shows 0.72%
improvement. However that's most likely noise. The tests were run with:
- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
- atest
google/perf/app-startup/benchmark-app-hermetic/cold-dropcache-lock-test
- atest
google/perf/app-startup/third-party-apps/cold-dropcache-stable-test
=Profile metrics=
Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 1.13% of hot methods added, 33.77% removed
- 0.65% of classes added, 21.61% removed
- 29256 hot methods in the profile (vs 43429 in the old one)
- 8681 classes in the profile (vs 10985 in the old one)
Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)
System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)
=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times
Bug:
122068885
Bug:
130553966
Test: m, build, boot, atest startup-tests
(cherry picked from commit
439305caddf8ad574b230a24cd7523ee6c591364)
Merged-In: Ic61ed2784af034ed4ae4bc8346ed67c6bed04152
Change-Id: I1fc3b301bf80bfc7dda3540c5a204af8321279bf
Calin Juravle [Thu, 11 Apr 2019 02:07:47 +0000 (19:07 -0700)]
Update boot image and system server profiles
=Perf numbers=
The boot image compilation artifacts are 28MiB smaller (art/vdex/oat for
arm and arm64).
System server .art file is 100KiB smaller.
Startup and memory number are within the noise. Startup shows 0.11%
improvement and memory shows 0.22% improvements. However that's most
likely noise. The tests were run with:
- atest google/perf/app-startup/hermetic-apps/cold-dropcache-lock-test
- atest google/perf/app-startup/non-hermetic-apps/cold-dropcache-lock-test
- atest google/perf/memory/memory-test
=Profile metrics=
Boot:
- methods and classes used by at least 9% of the sampled (non unique)
applications (see below for more explanations)
- 0.6% of hot methods added, 51.31% removed
- 0.3% of classes added, 29.96% removed
- 21403 hot methods in the profile (vs 43429 in the old one)
- 7826 classes in the profile (vs 10985 in the old one)
Preloaded clases:
- classes used by at least 20% of sampled applications during startup
- 1.5% added, 0.3% removed
- 7601 classes in the profile (vs 7516 in the old one)
System server:
- methods and classes used on at least 5% of sampled devices
- system server is speed compile and the image classes are the most
relevant
- 4% classes added, 23% of classes removed
- 2819 classes in the profile (vs 3418 in the old one)
=Data sample=
- 35000+ (non unique) applications contributed to the final profile
- these were spread across 4000+ (non unique) devices
- 'non unique' means that the same app or the same device (or a
combination of both) could have contributed to the final profile multiple
times
Bug:
122460899
Bug:
122068885
Test: m, build, boot, atest startup-tests
(cherry picked from commit
5b70220fb5a174a7142ca5403563bf528120a63f)
Merged-In: Ib3aac3c7efae64af9d2b46e350146e53ba653cbd
Change-Id: Ib42ab29e3d28591817a396407445a6c23e5c9a27
Selim Cinek [Thu, 18 Apr 2019 01:22:17 +0000 (18:22 -0700)]
Made back button sample the color and background protect it that way
Previously we had an outline for background protection. Instead
we're now sampling the luma underneath the arrow and unsure contrast
this way.
Bug:
130682266
Test: manual, use back over various surfaces
Change-Id: I6504c56782df05a6e384dbb81daff277a8d2eaca
TreeHugger Robot [Fri, 26 Apr 2019 00:17:25 +0000 (00:17 +0000)]
Merge "Fix font for actionbar in device default" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:12:29 +0000 (00:12 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:09:05 +0000 (00:09 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Fri, 26 Apr 2019 00:00:25 +0000 (00:00 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev
Evan Rosky [Thu, 25 Apr 2019 23:58:37 +0000 (23:58 +0000)]
Merge "Calculate letterbox against task displayed-bounds in multi-window" into qt-dev
Selim Cinek [Wed, 17 Apr 2019 00:25:06 +0000 (17:25 -0700)]
Minor adjustments to the edge back gesture
The arrow now comes out a bit above the finger
instead of right on it. This is also a preparation
for a larger back arrow redesign
Bug:
130682266
Test: atest SystemUITests
Change-Id: I58c80fc939934b185929f9b0245999ec0902d652
Philip P. Moltmann [Thu, 25 Apr 2019 23:52:44 +0000 (16:52 -0700)]
Make package installer tests post submit
As they are UI-tests and hence to flaky for pre-submit.
Fixes:
131353722
Test: n/a
Change-Id: I7bea06bbe16717406ccd0676fb83396066959a92
GyeHun Jeon [Wed, 24 Apr 2019 21:20:15 +0000 (14:20 -0700)]
[wm] Adjust freeform header not to be overlapped with stable insets
freeform bounds should not be overlapped with statusBar and navigationBar.
If it is overlapped, we can't control freeform anymore. So we adjusted
freeform bounds not to be overlapped on launching and moving task.
Test: move freeform to navigationBar & launching below navigationBar
Test: atest WmTests:TaskRecordTests WmTests:TaskPositionerTests
Bug:
129521219
Change-Id: I353ba930269ec753c97d719819364436bda280cb
(cherry picked from commit
55fbe465f2b40e0f1886691488825a243a3acf79)
John Reck [Thu, 25 Apr 2019 23:37:05 +0000 (23:37 +0000)]
Merge "Fix some force_dark prop behaviors" into qt-dev
Jiwen Cai [Thu, 25 Apr 2019 23:26:50 +0000 (23:26 +0000)]
Merge "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage" into qt-dev
Philip P. Moltmann [Thu, 25 Apr 2019 23:24:45 +0000 (23:24 +0000)]
Merge "Allow PermissionControllerService implementer control own threading" into qt-dev
Philip P. Moltmann [Thu, 25 Apr 2019 23:09:03 +0000 (16:09 -0700)]
Don't use Context#getApplicationContext
as this might be null. In PermissionControllerManager we need a context
that outlives the passed in context as we bind to a service that will
only get destroyed after a delay.
Test: atest PermissionControllerTest
Bug:
131356152
Change-Id: Iabeac669f6464b84a4b9e8f9b2a27959b116c25b
TreeHugger Robot [Thu, 25 Apr 2019 23:15:43 +0000 (23:15 +0000)]
Merge changes I28031a27,If98d7397 into qt-dev
* changes:
Fix a bug in IncidentCompanionService
Disable incidentd encryption.
Kweku Adams [Thu, 25 Apr 2019 18:43:23 +0000 (11:43 -0700)]
Scheduling start alarm when job starts off out of quota.
Up until now, QuotaController was only scheduling the quota check alarm
when an app ran out of quota while a job was running, the UID proc state
or standby bucket changed, the device was unplugged, the parole state
changed, or quota controller constants changed. However, if a job was
scheduled and already out of quota (which could be the case due to
job count throttling), an alarm wasn't scheduled. This meant that alarms
throttled due to high job counts probably wouldn't run until the device
was plugged in or the app changed its standby bucket or proc state. Now,
we schedule an alarm if a newly scheduled job is already out of quota so
that it will come back into quota at the proper time.
Bug:
131267600
Test: atest com.android.server.job.controllers.QuotaControllerTest
Test: atest CtsJobSchedulerTestCases
Change-Id: I802b0aa076690451d901521327c4ddab111c42f6
Kevin Chyn [Thu, 25 Apr 2019 22:48:20 +0000 (22:48 +0000)]
Merge "Check INTERACT_ACROSS_USERS for getEnrolledTemplates when user is different" into qt-dev
Linda Tseng [Thu, 25 Apr 2019 22:39:40 +0000 (22:39 +0000)]
Merge "Update panel bg color in dark mode" into qt-dev
Christian Wailes [Thu, 25 Apr 2019 22:35:10 +0000 (22:35 +0000)]
Merge "Adds additional sanitization for Zygote command arguments." into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 22:30:21 +0000 (22:30 +0000)]
Merge "Only start WebView zygote if multiprocess enabled." into qt-dev
jiabin [Thu, 25 Apr 2019 20:35:56 +0000 (13:35 -0700)]
ScoClient only increases count when requestScoState succeed.
Bug:
123408281
Test: Manually
Change-Id: I4183b941c1fbfa573fdb6c6258f4012616c4c64a
Salvador Martinez [Thu, 25 Apr 2019 21:54:14 +0000 (14:54 -0700)]
Fix font for actionbar in device default
The font family was not being set on the action bar causing
it to revert to roboto. This simply overrides that to match the
light theme version (since they should use the same font).
Test: Manually observing title text in Settings > Accessibility >
Text-to-speech output > cog icon
Bug:
129995075
Change-Id: Ic5415e3441a978e7af500549bfcca8083b704b39
TreeHugger Robot [Thu, 25 Apr 2019 21:49:04 +0000 (21:49 +0000)]
Merge "Sharesheet - Modify header scrolling behavior" into qt-dev
Lucas Dupin [Thu, 25 Apr 2019 21:34:12 +0000 (14:34 -0700)]
Fix message not showing when face auth is enabled
Old code was checking explicitly for fingerprint, we need something more
generic, that asserts any type of biometrics.
Test: manual
Fixes:
131140362
Change-Id: I5868c54b12c24696bc00a150d7bb3cb3d872015f
TreeHugger Robot [Thu, 25 Apr 2019 21:44:24 +0000 (21:44 +0000)]
Merge "AudioService: fix volume initialization on first ever boot" into qt-dev
Yao Chen [Thu, 25 Apr 2019 21:37:04 +0000 (14:37 -0700)]
Fix a bug in IncidentCompanionService
Bug:
131351390
Test: manually tested
Change-Id: I28031a276218822209e854b13466248727f20bd5
Yiwei Zhang [Mon, 15 Apr 2019 23:24:32 +0000 (16:24 -0700)]
Zygote: add a way to preload Vulkan driver
Since HWUI render pipeline has both GL and Vulkan backends now, we'd
like to preload either GL or Vulkan driver based upon HWUI's choice on
the render backend.
1) Keep using ro.zygote.disable_gl_preload property to disable Vulkan
driver preloading if HWUI's render pipeline uses Vulkan backend.
Properly rename the corresponding APIs for driver preloading.
2) Add a path to preload Vulkan driver based on HWUI's render backend.
Bug:
131249898
Test: build, flash and boot.
Test: verified with set USE_VULKAN=true
Test: verified with setprop debug.hwui.renderer skiagl/skiavk
Change-Id: Ie0bf5d18edcf907c75a25ac3249e2620ec21b63c
Zimuzo Ezeozue [Thu, 25 Apr 2019 21:25:59 +0000 (21:25 +0000)]
Merge "Start Watchdog early during boot" into qt-dev
Julia Reynolds [Thu, 25 Apr 2019 19:41:47 +0000 (15:41 -0400)]
Fix default app notification locking on new devices
- Fresh devices, no restore, create app prefs if app hasn't done
it already
- Apply app level locking to channels created via readxml on restore
Test: atest, factory reset device and verify that default dialer app is
locked without requiring a reboot. restore backup and verify that it's
still locked
Fixes:
127855529
Change-Id: Ieca3e064eb5b5aa5877a4b575bf6223f62259668
TreeHugger Robot [Thu, 25 Apr 2019 21:14:23 +0000 (21:14 +0000)]
Merge "Wrapping the inflater into InjectionInflationController." into qt-dev
Aaron Heuckroth [Thu, 25 Apr 2019 21:03:47 +0000 (21:03 +0000)]
Merge "Add unit tests to GlobalActionsGridLayout." into qt-dev
Chris Wailes [Fri, 19 Apr 2019 01:25:57 +0000 (18:25 -0700)]
Adds additional sanitization for Zygote command arguments.
Previously we were only insuring that the arguments provided to the
Zygote didn't contain any newlines. This adds additional checks for
carriage returns and standalone integer arguments to protect against
malicious argument and packet injection respectively.
Bug:
130164289
Test: m & flash & boot & check logs
Change-Id: I4055c50d52db0047c02c11096710fd07b429660c
Merged-In: I4055c50d52db0047c02c11096710fd07b429660c
(cherry picked from commit
c99198249f8bb79487d4f9f0f45b5b2fefaba41a)
Philip P. Moltmann [Thu, 25 Apr 2019 20:27:36 +0000 (13:27 -0700)]
Allow PermissionControllerService implementer control own threading
Hence execute on binder-thread and send callback.
Fixes:
131314749
Test: atest --test-mapping packages/apps/PermissionController/src/com/android/packageinstaller/permission/service:presubmit
Change-Id: Ic5286a1b02532bcc0241877d970d0fc933b27f85
Fabian Kozynski [Thu, 25 Apr 2019 20:53:44 +0000 (20:53 +0000)]
Merge "Fix colors in QS Header" into qt-dev
Winson Chung [Thu, 25 Apr 2019 20:28:09 +0000 (20:28 +0000)]
Merge "Only migrate 2-button setting if set" into qt-dev
Mady Mellor [Thu, 25 Apr 2019 20:19:30 +0000 (20:19 +0000)]
Merge "Make lifecycle events for bubble activity views report normally" into qt-dev
TreeHugger Robot [Thu, 25 Apr 2019 20:11:26 +0000 (20:11 +0000)]
Merge "Improve theme application transition." into qt-dev
Tej Singh [Wed, 17 Apr 2019 23:41:45 +0000 (16:41 -0700)]
Skip data pulling when metric is not active
Statsd is pulling data when the metric is not active. This cl causes
statsd to skip data pulls when the metric is not active
Test: unit tests
Test: cts
Bug:
129910938
Change-Id: Ibc9459f38c2f6128b8a1f10c6dea683bfe07b22a
Lucas Dupin [Thu, 25 Apr 2019 19:42:25 +0000 (12:42 -0700)]
Fixed SIM pin pad overlap
Test: change display and font sizes
Test: add/remove sim card
Fixes:
131129169
Change-Id: Ica859a458dd8a57bd7ebae5ae8bccb3bbb5c0a85