Commit Graph

474798 Commits

Author SHA1 Message Date
TreeHugger Robot
83751466f9 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-04-18 05:11:43 +00:00
Bill Yi
3545d7fb1e Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I3182237882e7bf8679bdd51e75f525e4f2c8bcd2
2020-04-17 21:13:36 -07:00
Hui Yu
4db77a9749 Merge "Move noteAppWidgetTapped call into AppWidgetHostView." into rvc-dev 2020-04-18 04:03:52 +00:00
Jack Yu
3fc3559385 Merge "Debug message fix" into rvc-dev 2020-04-18 03:28:15 +00:00
TreeHugger Robot
872afaeaeb Merge "Fixed Task#getVisibility to take into account task hierarchy" into rvc-dev 2020-04-18 02:23:41 +00:00
Nicholas Ambur
01b4d5cb13 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev 2020-04-18 02:04:45 +00:00
TreeHugger Robot
735e0b26b7 Merge "Narrow access to getDataLayerSnapshotForUid()." into rvc-dev 2020-04-18 00:42:17 +00:00
TreeHugger Robot
daf2d9b2b5 Merge "Add Sideloaded detector" into rvc-dev 2020-04-18 00:15:37 +00:00
Muhammad Qureshi
e3ef95cf13 Merge "Remove kMaxPushedAtomId from atoms_info." into rvc-dev 2020-04-18 00:13:52 +00:00
TreeHugger Robot
5aef02fd4a Merge "Fix statsd_test mts build target" into rvc-dev 2020-04-18 00:11:18 +00:00
Mingming Cai
a29134bae4 Merge "Make MNC length hidden public" into rvc-dev 2020-04-18 00:01:55 +00:00
TreeHugger Robot
d5e54a7c73 Merge "Remove trust agent related resources" into rvc-dev 2020-04-17 23:51:00 +00:00
TreeHugger Robot
dd08939ba8 Merge "RESTRICT AUTOMERGE: Autocork package invalidations" into rvc-dev 2020-04-17 23:26:42 +00:00
TreeHugger Robot
e185aca339 Merge changes If07d6938,I32f9b89a,Ife4f8c4e into rvc-dev
* changes:
  RESTRICT AUTOMERGE: Add a facility for time-based cache corking
  RESTRICT AUTOMERGE: Cork permission and package cache around bulk permission update
  RESTRICT AUTOMERGE: Cork package information cache invalidations during boot
2020-04-17 23:25:02 +00:00
Jack Yu
06d85c3da9 Debug message fix
Fixed the toString and made overrideNetworkTypeToString
public for debugging purposes.

Fix: 154229268
Test: Manual
Change-Id: I5c886de22543188032df172810b987cff964577b
2020-04-17 16:05:53 -07:00
TreeHugger Robot
6569339663 Merge "Update javadoc of getCodeType to add BDS B1C" into rvc-dev 2020-04-17 23:04:06 +00:00
TreeHugger Robot
dd4cd092b3 Merge "SurfaceView: Remove dead code" into rvc-dev 2020-04-17 22:52:27 +00:00
Jeffrey Huang
9c30a95f5a Fix statsd_test mts build target
The test tried to execute statsd_test when the binary was named
statsd_test32. This fixes the naming issue.

Bug: 153035538
Test: make mts and check the binary name
Change-Id: I13485a95801f9ef71211cd1d36e8ea1fd3bbc0b6
2020-04-17 15:35:33 -07:00
Jay Aliomer
6091e48325 Merge "Exception when applying the two new icon shapes" into rvc-dev 2020-04-17 22:35:02 +00:00
Heemin Seog
463b1fa2be Merge "Move status bar to CarNavigationBar" into rvc-dev 2020-04-17 22:27:58 +00:00
Calin Juravle
d56a530ac9 Merge "Update boot image and system server profiles [M10C10P10S0PP]" into rvc-dev 2020-04-17 22:20:02 +00:00
Nicholas Ambur
d3c1f27b0c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
Merged-In: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-17 22:12:13 +00:00
Jack Yu
b31272ddcd Merge "Cell broadcast receiver should not be replaced" into rvc-dev 2020-04-17 22:07:31 +00:00
TreeHugger Robot
28ea0461c1 Merge "media: fix OutputFrame.getFormat()" into rvc-dev 2020-04-17 22:07:04 +00:00
Wale Ogunwale
0db64ac043 Fixed Task#getVisibility to take into account task hierarchy
Also, correct some uses of getRootHomeTask()

Fixes: 153086746
Bug: 154331729
Bug: 80414790
Test: atest WmTests:ActivityStackTests#testGetVisibility_MultiLevel
Change-Id: I8b9a38879a0b4e6c72686312b414319b8b086cd1
2020-04-17 15:05:34 -07:00
Babak
151a5643bd Add Sideloaded detector
A helper class to detect if any package is unsafe or sideloaded.
A package is considered unsafe if not a system app and not installed
through trusted sources.
The usage will be added in the following cls.

Bug: 154263570
Test: Added UnitTest
Change-Id: Ifffbe64ae95029427aeca4a997bc440dbdc2d3d6
2020-04-17 14:52:06 -07:00
Heemin Seog
e61fc035f2 Remove trust agent related resources
Bug: 154357193
Test: build, mp carsysui
Change-Id: Ibbb88d2ddab769d9bd8b838b93f93e4ed3d7c7f1
2020-04-17 14:41:51 -07:00
art-benchmark-service
d60351b702 Update boot image and system server profiles [M10C10P10S0PP]
= Perf stats =
(lower is better)

Avg Startup time change: -1.36%
Avg Memory at boot PSS change: -5.05%
Code size: -5.05%
Boot time: -2.79%

=Generation Strategy=

method_threshold: 0.1
image_class_threshold: 0.1
preloaded_classes_threshold: 0.1
upgrade_startup_methods_to_hot: true
system_server_threshold: 0.0
priority_packages_thresholds {
  key: "android"
  value: 0.01
}
priority_packages_thresholds {
  key: "com.android.systemui"
  value: 0.01
}
priority_packages_thresholds {
  key: "com.google.android.GoogleCamera"
  value: 0.01
}
priority_packages_thresholds {
  key: "com.google.android.dialer"
  value: 0.05
}
priority_packages_thresholds {
  key: "com.google.android.gms"
  value: 0.05
}
priority_packages_thresholds {
  key: "com.google.android.webview"
  value: 0.01
}

=Profile stats=

Data info:
- total aggregations: 4215
- number of (device types, builds): 137

File boot-image-profile.txt
  - hot methods: 876 added, 5178 removed
  - methods: 812 added, 5267 removed
  - classes: 466 added, 428 removed
  - totals now: 40072 hot methods, 40610 methods, 11958 classes
  - totals before: 44374 hot methods, 45065 methods, 11920 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 597, 3775, 372, 334, 27091, 7691
    com.android, 198, 478, 89, 89, 4453, 2061
    java, 68, 715, 4, 3, 6717, 1671
    android.view, 162, 220, 66, 0, 4214, 847
    android.hardware, 26, 109, 19, 0, 749, 672
    android.bluetooth, 3, 96, 5, 0, 285, 169
    android.animation, 1, 4, 1, 0, 472, 71
    android.app, 148, 374, 42, 2, 3961, 928
    android.content, 52, 890, 26, 0, 2075, 538
    android.graphics, 11, 51, 6, 0, 2200, 302
    android.icu, 14, 99, 8, 0, 2412, 609
    android.media, 15, 77, 39, 0, 1041, 509
    android.net, 30, 185, 18, 5, 1078, 348
    android.widget, 3, 203, 33, 0, 2088, 344

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 465 added, 429 removed
  - totals now: 0 hot methods, 0 methods, 11942 classes
  - totals before: 0 hot methods, 0 methods, 11906 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 371, 334, 0, 7679
    com.android, 0, 0, 89, 89, 0, 2060
    java, 0, 0, 4, 3, 0, 1670
    android.view, 0, 0, 66, 0, 0, 847
    android.hardware, 0, 0, 19, 0, 0, 672
    android.bluetooth, 0, 0, 5, 0, 0, 169
    android.animation, 0, 0, 1, 0, 0, 71
    android.app, 0, 0, 41, 2, 0, 927
    android.content, 0, 0, 26, 0, 0, 537
    android.graphics, 0, 0, 6, 0, 0, 302
    android.icu, 0, 0, 8, 0, 0, 609
    android.media, 0, 0, 39, 0, 0, 509
    android.net, 0, 0, 18, 5, 0, 347
    android.widget, 0, 0, 33, 0, 0, 343

File art-profile
  - hot methods: 1028 added, 0 removed
  - methods: 3388 added, 0 removed
  - classes: 261 added, 0 removed
  - totals now: 28014 hot methods, 47361 methods, 6926 classes
  - totals before: 26986 hot methods, 43973 methods, 6665 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 29, 0, 7, 0, 524, 293
    com.android, 996, 0, 253, 0, 27399, 6586
    android.hardware, 2, 0, 0, 0, 210, 133
    android.media, 0, 0, 1, 0, 0, 1
    android.net, 26, 0, 6, 0, 280, 136

InternalReferenceRawProfileId: 1088
InternalReferenceCandidateProfileId: 1092

Bug: 148471769
Test: build & benchmark

Change-Id: I165d69a3a50b504e226d910f328da635571870a6
2020-04-17 21:20:18 +00:00
Robert Carr
b3ca38fb99 SurfaceView: Remove dead code
While debugging SurfaceView transaction usage I noticed this
code was unconditionally dead. Notice the else statement
only contains the single if statement within, so it could
be written as else-if. But then notice the condition of this
rewritten else-if is contained within the original if and
so it can never be entered.

Bug: 153120755
Test: Existing tests pass
Change-Id: I032b17911a9c71a1e3d09e3933e6f6a3d86dffb6
2020-04-17 14:14:33 -07:00
Winson Chiu
c7cd73aa00 Merge "Optimization: remove duplicated flags computations for getInstalledPackages" into rvc-dev 2020-04-17 21:04:18 +00:00
TreeHugger Robot
b31a5f43d0 Merge "Add history onboarding" into rvc-dev 2020-04-17 20:48:26 +00:00
TreeHugger Robot
061f46b9bd Merge "Make setWallpaperZoomOut call oneway" into rvc-dev 2020-04-17 20:35:31 +00:00
TreeHugger Robot
171cf884ff Merge "System NLSs have up-to-date targetSdks" into rvc-dev 2020-04-17 20:17:08 +00:00
Alex Buynytskyy
c6ce2f04fc Merge "Switching to FSM-based DL lifecycle." into rvc-dev 2020-04-17 20:02:45 +00:00
TreeHugger Robot
ed1adb192f Merge changes I60bc5899,I97696070 into rvc-dev
* changes:
  Bind children dynamically in new pipeline (2/2)
  Bind children dynamically in new pipeline (1/2)
2020-04-17 19:45:42 +00:00
Taran Singh
104919428d Merge "Support WIC.show(IME) from Activity#onCreate" into rvc-dev 2020-04-17 19:28:28 +00:00
TreeHugger Robot
140eb14200 Merge "PMS: remove log spam when connecting power HAL" into rvc-dev 2020-04-17 19:26:25 +00:00
John Reck
9c52543162 Merge "Document that getTransformMatrix can inset" into rvc-dev 2020-04-17 19:20:38 +00:00
Julia Reynolds
da7c24580e Add history onboarding
Test: atest
Fixes: 153150072
Change-Id: I0d90eaff168cc38ca0a1123bb65ed941c9e283f8
2020-04-17 15:10:10 -04:00
Santiago Etchebehere
9548fd3220 Make setWallpaperZoomOut call oneway
There's no need to keep it synchronous

Bug: 154304487
Test: atest NotificationShadeWindowViewTest
Test: atest WallpaperControllerTests
Test: manual
Change-Id: I547e05fb4e2a5f2d30cfc5de354c36cd9070e65b
2020-04-17 11:53:36 -07:00
Julia Reynolds
94d9dc7d3a System NLSs have up-to-date targetSdks
Fixes: 147344820
Test: atest
Test: see notifications in the shade & notification history
Test: suspend and unsuspend packages and verify they hide and show
accordingly

Change-Id: I3f6fb3b5ef9a3e7c42e3c6298d9653b35efe229b
2020-04-17 18:43:49 +00:00
Edgar Arriaga
c7f8e75806 Optimization: remove duplicated flags computations for getInstalledPackages
Below are some test runs that show 100 iterations of getInstalledPackages ran
at activity startup of touchlatency app to demonstrate the perf cost.

R Baseline:
https://screenshot.googleplex.com/PnVi5APraJo
https://pprof.corp.google.com/?id=dc105ca9592f8367c381e2dcf7f1847d

R Optimized:
https://pprof.corp.google.com/?id=2d1d9fadc20bcc61d41bd52116bd94e3
https://screenshot.googleplex.com/OAwJnvwPqPH

Savings: 8% of system_server binder response time when the call is executed.

In terms total binder transaction time. Savings are 2% of the total
binder call time.

Exempt-From-Owner-Approval: CP to correct branch for R

Bug: 153656459

Test: atest FrameworksServicesTests:PackageParserTest
Test: atest FrameworksServicesTests:PackageParserLegacyCoreTest
Test: atest FrameworksServicesTests:ScanTests
Test: atest FrameworksServicesTests:ParallelPackageParserTest

Merged-In: I2de9cf1f754a505239d4416e1fc70bf77932c5db
Change-Id: I2de9cf1f754a505239d4416e1fc70bf77932c5db
(cherry picked from commit 7cb9e5f671)
2020-04-17 18:38:29 +00:00
TreeHugger Robot
56ef0ea4b6 Merge "[TNU06] Add roaming notification" into rvc-dev 2020-04-17 18:33:33 +00:00
Gavin Corkery
56a5a72e73 Merge "Ensure userspace reboot is supported before logging" into rvc-dev 2020-04-17 18:25:45 +00:00
Robert Snoeberger
59f73711b5 Merge "NotificationMediaManager is bad signal for resumption" into rvc-dev 2020-04-17 18:22:02 +00:00
Wei Wang
0cc5fbcafa PMS: remove log spam when connecting power HAL
Bug: 154338876
Test: build
Change-Id: I2bb95198d3fd2d0b0248c9cb62652cc89bcdf15e
2020-04-17 11:09:17 -07:00
Alex Buynytskyy
ab65cb1824 Switching to FSM-based DL lifecycle.
This is a pure refactoring.

Bug: b/153874006
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest
Change-Id: Ieda2be08d7359fa69b2d328c85b3606de6d02b3d
2020-04-17 11:02:16 -07:00
Jeff Sharkey
64bd9c7be8 Merge "Uri permission grants improvements, tests, fixes." into rvc-dev 2020-04-17 17:57:16 +00:00
Wonsik Kim
bedf6bac62 media: fix OutputFrame.getFormat()
JMediaCodec::getOutputFormat generates underlying Map object, not the
MediaFormat object proper.

Bug: 152618093
Bug: 154107928
Test: atest CtsMediaTestCases:MediaCodecBlockModelTest
Change-Id: I9acddc14b6c4f25cfea616ec9724b7503539688b
2020-04-17 10:55:19 -07:00
Taran Singh
9641cfc0fa Support WIC.show(IME) from Activity#onCreate
In Q, app developer would've to wait for InputConnection on Editor before
showSoftInput() could be called. This made API very un-intuitive. While
WIC.show(ime) took care of some of the scenarios, it didn't handle
showing IME from onCreate() i.e. when control is not yet available.
This CL introduces a pending IME show request that waits until IME
control is available.

Test: atest WindowInsetsControllerTests#testShowImeOnCreate
Bug: 153014086

Change-Id: I93dd5790e1fb3d7841ad1323a45cd3bae2d6e9b8
2020-04-17 10:41:30 -07:00