Commit Graph

468978 Commits

Author SHA1 Message Date
Eran Messeri
3f9578be3e Fix copy-pasted documentation.
Fix the documentation  for USE_INDIVIDUAL_ATTESTATION which was
copy-pasted from another attestation ID type.

Bug: 149475774
Test: That it compiles.
Change-Id: I9366870c8875997321c93fe1db216e91f374b1db
2020-02-28 11:32:33 +00:00
TreeHugger Robot
36a845dee4 Merge "Make libstatssocket shared" into rvc-dev 2020-02-28 08:56:00 +00:00
Winson Chiu
a57109b660 Merge "Skip no-state checkUseInstalled check inside PackageInfoUtils" into rvc-dev 2020-02-28 06:31:06 +00:00
JW Wang
f8d52afa16 Merge changes Ia233ca64,I2d0bc216,I94003873 into rvc-dev
* changes:
  Remove unused code (3/n)
  Use session id to search for rollbacks (2/n)
  Include session id when sending broadcasts (1/n)
2020-02-28 06:29:00 +00:00
TreeHugger Robot
3e7dd91752 Merge "Use median instead of mean for sampling border luma" into rvc-dev 2020-02-28 05:08:52 +00:00
TreeHugger Robot
ca51ab418f Merge "[Passpoint] Allow profile installations with no Root CA certificate" into rvc-dev 2020-02-28 04:54:59 +00:00
TreeHugger Robot
08f6ca3915 Merge "Prevent start if package is frozen" into rvc-dev 2020-02-28 04:24:30 +00:00
Roshan Pius
f5360ee034 Merge "Settings(javadocs): Add alternatives for deprecated settings" into rvc-dev 2020-02-28 03:36:22 +00:00
Roshan Pius
b3b559f167 Settings(javadocs): Add alternatives for deprecated settings
Bug: 150219394
Test: Compiles
Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
2020-02-28 03:35:12 +00:00
TreeHugger Robot
71c8e9a0a3 Merge "AlarmManagerService: Fix FWR before boot completed" into rvc-dev 2020-02-28 03:30:33 +00:00
TreeHugger Robot
837f5ea60a Merge "Fix bouncer race condition" into rvc-dev 2020-02-28 03:19:35 +00:00
TreeHugger Robot
ccf72664db Merge "Remove the notification when FGS while-in-use permission is restricted." into rvc-dev 2020-02-28 02:43:35 +00:00
TreeHugger Robot
169a29772c Merge "Create standby bucket changed atom." into rvc-dev 2020-02-28 02:40:46 +00:00
TreeHugger Robot
bd9e2df528 Merge "Ignore NotificationEntryManagerInflationTests" into rvc-dev 2020-02-28 02:31:17 +00:00
TreeHugger Robot
d3afc9f1d9 Merge "Fixes wrong id when granting provider access" into rvc-dev 2020-02-28 02:18:39 +00:00
TreeHugger Robot
5688bc3e4c Merge "Bubbles user education for stack & manage" into rvc-dev 2020-02-28 02:11:46 +00:00
TreeHugger Robot
71796e31de Merge "Mark updatable APEXes" into rvc-dev 2020-02-28 02:05:04 +00:00
TreeHugger Robot
141b5e79c3 Merge "Fix crash when opening bubble overflow" into rvc-dev 2020-02-28 02:04:09 +00:00
Lucas Dupin
8833d1eb4c Fix bouncer race condition
Bouncer would get stuck if authentication method changed after view
inflation.

Bug: 149773776
Bug: 149828540
Test: atest PlatformScenarioTests:android.platform.test.scenario.sysui.lockscreen.LockscreenWithInvalidPIN
Change-Id: I39ee2ec2e2ba9b6cf7dfba6b8141efc8b380b48e
2020-02-28 01:45:35 +00:00
TreeHugger Robot
aa62588560 Merge "Adds Zygote policy flags to control how applications are launched" into rvc-dev 2020-02-28 01:26:38 +00:00
TreeHugger Robot
0eba93a5ed Merge "Tuner JNI: demux" into rvc-dev 2020-02-28 01:22:41 +00:00
TreeHugger Robot
98668696f1 Merge "Add UsageStats CTS tests to AppStandbyController test mapping." into rvc-dev 2020-02-28 01:16:52 +00:00
jianzhou
acce5e4a64 AlarmManagerService: Fix FWR before boot completed
Root cause: AlarmManagerService send broadcast of TIMEZONE_CHANGED
before boot completed lead to IllegalStateException in AMS and system
skip StartWindowManagerService, and finally got crashed.
Modification: add flag Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT.

Change-Id: Iab9cd5acfeabd114371a8aaaa406a4a1c5919f98
Merged-In: Iab9cd5acfeabd114371a8aaaa406a4a1c5919f98
Test: Monkey
Bug: 79550062

(Cherrypick for R)

Change-Id: I802b90c55946cfac0f64cb69072588b0acb03cc2
2020-02-27 17:09:01 -08:00
Winson
d2732995bb Skip no-state checkUseInstalled check inside PackageInfoUtils
PackageInfoWithoutStateUtils is designed for use in core when
the caller doesn't have a PackageSeting.

Because its generic generateApplicationInfo method does a simplified
checkUseInstalled check without the PackageSetting, this fails whenever
state must be taken into account.

This introduces method variants which skips the checks and defers to
PackageInfoUtils's own check.

Bug: 150328400

Test: manual verify call into PackageManager#setSystemAppState with
    SYSTEM_APP_STATE_UNINSTALLED and verify
    PackageManager#getApplicationInfo throws NameNotFoundException
    without fix and succeeds with fix
Test: atest com.android.server.pm.parsing
Test: TODO PackageInfo(WithoutState)Utils test in follow up change

Change-Id: Ie00984c2e1b80d2a3948923dc1293fbfddf01037
2020-02-27 17:07:51 -08:00
Xiangyu/Malcolm Chen
806e50963c Merge "Smoother signal bar transition during CBRS data switching" into rvc-dev 2020-02-28 00:40:28 +00:00
Wei Wang
720830ee90 Merge "Zygote: migrate zygote start time metrics to StatsLog" into rvc-dev 2020-02-28 00:29:27 +00:00
Daniel Sandler
06907ad5ee Merge "Add importance indicator to conversation icons." into rvc-dev 2020-02-28 00:26:10 +00:00
TreeHugger Robot
ac4b502829 Merge "String tweak for vendor logging dev setting" into rvc-dev 2020-02-28 00:25:39 +00:00
Mathieu Chartier
8f57c44177 Merge "Revert "Disable BootImageProfileTest presubmit"" into rvc-dev 2020-02-28 00:22:12 +00:00
Hui Yu
c02592d7b2 Remove the notification when FGS while-in-use permission is restricted.
Bug: 136219221
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerApi29Test.java
Change-Id: I996abab1c7032e5247883f3b06ba2bd82c425007
2020-02-27 16:20:10 -08:00
Tracy Zhou
ab2c1bb007 Merge "Add Hexagon (Victor) shape to icon shape overlay (will show up in custom options)" into rvc-dev 2020-02-28 00:18:43 +00:00
Tracy Zhou
c924edf315 Add Hexagon (Victor) shape to icon shape overlay (will show up in custom options)
https://screenshot.googleplex.com/4Ta8OOrfJpV

Bug: 150234338
Test: installed the apk and then changed it in custom style options
$ adb install out/target/product/generic/system/product/overlay/IconShapeHexagon/IconShapeHexagonOverlay.apk

Change-Id: I9f0848d772bdaaacaa6cc2e30bc6e992f323f974
2020-02-27 16:14:29 -08:00
Jeffrey Huang
aee5dd2935 Merge "Update directory for proc stats puller" into rvc-dev 2020-02-28 00:06:00 +00:00
Tracy Zhou
d60abb5237 Merge "Add Flower (Sam) shape to icon shape overlay (will show up in custom options)" into rvc-dev 2020-02-28 00:00:19 +00:00
TreeHugger Robot
3201a3aab3 Merge "Reduce individual quota alarms set." into rvc-dev 2020-02-27 23:58:48 +00:00
Hai Shalom
ef8cfa2a46 [Passpoint] Allow profile installations with no Root CA certificate
Allow Passpoint R1 profile installations with no Root CA certificate.
The system will use the default trust root in such case.

Bug: 150410562
Test: atest CredentialTest
Change-Id: I2f11ba7330aae8a8c9e0b8922bcf320eb95c5e0e
2020-02-27 15:53:30 -08:00
Patrick Baumann
abe3d7bde4 Merge "Adds app enumeration support to CompanionDeviceManager" into rvc-dev 2020-02-27 23:47:58 +00:00
Tracy Zhou
2b150f09f9 Add Flower (Sam) shape to icon shape overlay (will show up in custom options)
https://screenshot.googleplex.com/0i9YmgFDuYB

Bug: 150234338
Test: installed the apk and then changed it in custom style options
$ adb install out/target/product/generic/system/product/overlay/IconShapeFlower/IconShapeFlowerOverlay.apk

Change-Id: I03ad33f4f9a14cebb1e50af15035b48dcbfd97d5
2020-02-27 15:33:16 -08:00
Patrick Baumann
72e1cacf29 Prevent start if package is frozen
Because process start is broken up into the blocking startProcessLocked
method and a handler that then later actually starts the process, we
were failing to block launch of frozen packages (being updated) that
happened to have their request to start take place just before they were
frozen.

This change leaves in place the check for frozen state in the blocking
method, but adds another to isProcStartValidLocked to ensure that a the
actual time of process start we check frozen state again. The side
effect of this is that in the case that the process is started in the
window described above, the caller will not encounter the
SecurityException, but it's more correct that we don't launch an app
while it is being actively updated.

Test: None; difficult to reproduce.
Bug: 150303575
Change-Id: Iea24c9b1c937c699f6df13f4ea742905354d664f
2020-02-27 15:12:09 -08:00
TreeHugger Robot
680c708af1 Merge "Add java_api_finder statsd" into rvc-dev 2020-02-27 23:04:17 +00:00
Mady Mellor
5a3e94b702 Bubbles user education for stack & manage
Two types of education
1) highlighting the bubble when it first appears on screen (after user tap)
2) highlighting manage button when a bubble is expanded

* Both of these are added in BubbleStackView & respond to theme changes
* Prefs to save whether user has seen either education
* Simple animations in / out; we can tune them later
* Adjusts the starting position of the stack to work with user education
  positioning
* Adds a secure setting string to force user education to show for demo
  purposes.

Test: manual:

1) get bubble for first time
2) tap on flyout => flyout disappears & user education shows
3) get another update to that bubble => note that it doesn't show bc
   user education is displaying

1) get bubble for first time
2) tap on bubble => flyout disappears & user education shows
3) tap outside of the user education => user education hides

1) get bubble for first time
2) wait => after flyout disappears, user education shows
3) tap  on the bubble => user education hides & bubble expands, after
   expansion "manage" user education appears
4a) interact with content in the activity view
4b) collapse the stack (via back or tapping outside)
4c) tap on the manage button
4d) select a different bubble
=> each of 4x) should dismiss the manage button user education

Check that switching themes (and dark mode) gets the right colour for user
education backgrounds & text.

Bug: 148105621
Change-Id: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
Merged-In: I8e6401573c1ac21dfe636aa1132461fe04ce67ac
2020-02-27 22:57:14 +00:00
TreeHugger Robot
9f9ca14bb5 Merge "Use new socket schema within TestSlicedCondition" into rvc-dev 2020-02-27 22:55:25 +00:00
Kweku Adams
1275213242 Create standby bucket changed atom.
We'll use the data from the atom events to further optimize our quotas.

Bug: 135417506
Bug: 143495340
Bug: 149869487
Test: Use statsd_testdrive to test WakeupAlarmOccurred and
AppStandbyBucketChanged are both logged properly

Change-Id: Id05304175dea804d83f6056bf4da2e049496d87d
2020-02-27 13:33:56 -08:00
Patrick Baumann
5533722b9a Fixes wrong id when granting provider access
This change passes the uid when granting implicit access to the caller
when calling a provider.

Test: manual; provider query across user bounds
Fixes: 150062663
Change-Id: I4a84febd4f5dc2f24cb2a53a1ac3b8af50772a31
2020-02-27 13:27:13 -08:00
Julia Reynolds
21e618d9ba Merge "Fix 'history' text" into rvc-dev 2020-02-27 21:00:44 +00:00
Chris Wailes
ee398f9664 Adds Zygote policy flags to control how applications are launched
This patch adds a zygote policy parameter to functions in the
ActivityManagerService (and associated classes) to allow for different
launch behavior based on the triggering event.  This will allow for
latency sensitive applications to utilize the Unspecialized App Process
Pool, without other processes draining the pool and causing excessive
refill events.

Test: Booted and launched several apps
Bug: 147613193
Change-Id: Ib0a51c8720f95a7eafcab4ad2b5bb08f27a58d8c
(cherry picked from commit 4d05188588)
2020-02-27 20:33:12 +00:00
Mady Mellor
0122cc904f Fix crash when opening bubble overflow
BubbleExpandedView needs a BubbleStackView reference, without that
there could be an NPE in various locations.

Also uses the correct parent view to setup the overflow.

Test: manual - tap on the overflow, observe no crash
Fixes: 150394526
Change-Id: Ib1ae9353a0dfd60ac8b6eb4f94b5b0cc5bc47811
2020-02-27 12:26:59 -08:00
Trung Lam
8839aaee6d Merge "Implement backup and restoration of conversation infos." into rvc-dev 2020-02-27 19:56:29 +00:00
Alec Mouri
28a0b857f4 Merge "Add atom for a janky event reported by SurfaceFlinger." into rvc-dev 2020-02-27 19:47:44 +00:00
Tej Singh
eb7d8f4675 Make libstatssocket shared
Also make private versions of the libraries available to link statically
for tests. We should try to figure out a better long term solution.

Test: m
Test: bit statsd_test:*
Test: atest LibStatsPullTests
Test: bit libstatssocket_test:*
Test: atest GtsStatsdHostTestCases
Bug: 149340100

Change-Id: I05b91efab2a657aec75d436575aff4373f86ed3f
2020-02-27 11:38:41 -08:00