Commit Graph

468813 Commits

Author SHA1 Message Date
Amy Zhang
8527147b3d Merge changes from topic "tuner-rm"
* changes:
  Add a TunerResourceManagerService as an Android System Serivce.
  Add Lnb related APIs into the TunerResourceManager interface
  Add Cas related APIs into the Tuner Resource Manager
  Adding ITunerResourceManagerService interface into android.media.tv
2020-02-12 23:48:29 +00:00
Matt Pietal
f2932fd3fc Merge "Added fallback for load failed" 2020-02-12 23:41:22 +00:00
Roshan Pius
617b4b00e3 Merge "Revert "NetworkRequest: Embed requestor uid & packageName"" 2020-02-12 23:36:13 +00:00
Roshan Pius
1a188ab4f5 Revert "NetworkRequest: Embed requestor uid & packageName"
This reverts commit 3e63df535a.

Reason for revert: b/149425896
Bug: b/149425896

Change-Id: I9fe31509c040cc421ccb00ea60f15e6f199e8bc6
2020-02-12 23:33:43 +00:00
Hai Shalom
91c3b5af51 [Passpoint] Truncate IMSI from the SimCredential toString method
Truncate IMSI from the SimCredential toString method, avoid displaying
confidential IMSI information.

Bug: 149422812
Test: dumpsys wifi - confirm result
Change-Id: I9d542bc6ff60de1a78076abe1010c0c03a5f444b
2020-02-12 15:19:23 -08:00
Igor Murashkin
ef7c7d299e pinner: Replace camera pinning with iorap prefetching
The camera-specific pinning needs to be disabled for iorap to be able to trace the camera
APK.

Saves 40-70MB of memory system-wide depending on the device.

Bug: 149426956
Test: adb shell dumpsys pinner
Change-Id: If98eb82a9d741a41e76565d37cfe2dd828e7a653
2020-02-12 15:12:00 -08:00
Automerger Merge Worker
1345eb11fd Merge "Added comments for each TD-SCDMA bands" am: 4be7800065 am: cadf93cc7e am: 0682fd059d
Change-Id: I5bae7d60af085574b217b2856d5583fe3dd6c1a8
2020-02-12 23:11:39 +00:00
Automerger Merge Worker
cda7df109f Merge "Fix TetheredClient and TetheredClientTest" am: e5fe55eddf am: 8ab2f58ab9 am: c8190ff316
Change-Id: I8a3d01dbd02639e07284a3dc6798c0db512c8307
2020-02-12 23:11:04 +00:00
Eugene Susla
5f88b7bee5 Make companion callback calls oneway
These were never meant to be 2way, and are calling application callbacks,
from system server which can potentially take long time.

Thses should not be sensitive to ordering with any other IPCs, so moving them
from 2way to 1way should be safe.

Fixes: 147705675
Test: presubmit
Change-Id: Ie4e8941fba2c8a388697c3a42ad6ef76512eba9f
2020-02-12 15:02:04 -08:00
Siarhei Vishniakou
b0f1fe887a Merge "New VerifiedInputEvent api" 2020-02-12 22:55:00 +00:00
Kevin Chyn
eab9fe1560 Biometric phenotype updates
1) Always update strength after registerAuthenticator. Otherwise the
   flag will not be applied (e.g. after reboot)
2) Add strings for onAuthenticationError

Bug: 148419762

Test: manual
Test: atest BiometricServiceTest

Change-Id: Ia20a91e401d6753b55d6aa4a36d487fc15465ba5
2020-02-12 14:54:31 -08:00
Automerger Merge Worker
0682fd059d Merge "Added comments for each TD-SCDMA bands" am: 4be7800065 am: cadf93cc7e
Change-Id: Ie15fcc6d038731ab3624e33a973702dd909bb145
2020-02-12 22:45:36 +00:00
Automerger Merge Worker
c8190ff316 Merge "Fix TetheredClient and TetheredClientTest" am: e5fe55eddf am: 8ab2f58ab9
Change-Id: I6ddfcaa6bfabb1dec2e7466a8778a019f589cd32
2020-02-12 22:44:54 +00:00
Calin Juravle
f0ac5e88a7 Merge "Update boot image and system server profiles [M10C90P90S0PP]" 2020-02-12 22:38:53 +00:00
Alex Buynytskyy
1580e1c391 Merge "Signature streaming from local file, property to disable incremental." 2020-02-12 22:31:01 +00:00
John Reck
aa5f38577a Create a ParcelableColorSpace
Bug: 148412652
Test: ParcelableColorSpaceTest CTS
Change-Id: If0901367e501e2ecfc71b9ed29ec7d8dd4d0550f
2020-02-12 14:28:10 -08:00
Automerger Merge Worker
cadf93cc7e Merge "Added comments for each TD-SCDMA bands" am: 4be7800065
Change-Id: Id97dbf68482bcbb62263bc88f7d61cca0970ee15
2020-02-12 22:22:56 +00:00
Automerger Merge Worker
8ab2f58ab9 Merge "Fix TetheredClient and TetheredClientTest" am: e5fe55eddf
Change-Id: I4c9eae17b06e37ef5bb35d0f23e572e6edd0b579
2020-02-12 22:22:37 +00:00
Treehugger Robot
4be7800065 Merge "Added comments for each TD-SCDMA bands" 2020-02-12 22:13:37 +00:00
arangelov
f6986d4809 Autolaunch when active tab has 1 target and inactive tab has 0 targets.
Also fixes bug where we autolaunch without waiting for the inactive
tab list to load. If the inactive tab's targets are 0 since they
are not loaded, if the active tab's targets are 1, it would
incorrectly autolaunch.

Test: manually tried attaching a file in gmail with no cross-profile
intents
Fixes: 149383054
Change-Id: I1a2455088762dce7265ae4b7ad2c6bc8b217f99e
2020-02-12 22:12:18 +00:00
Yan Wang
86a4934a3f Fix functional test for startop.
* Enable perfetto tracing and readahead for testing.
* Extend time limit for JUnit test to 5min.

Bug: 148936893
Test: run atest iorap-functional-tests on Forrest
Change-Id: Iad2b2201abf7736a9c86e4e5f7c1579eb78b2e23
2020-02-12 22:10:14 +00:00
Rob Carr
08b20c4b0b Merge "TaskOrganizer: Add BLASTSyncEngine example" 2020-02-12 22:09:23 +00:00
Robert Carr
02524d097c TaskOrganizer: Add BLASTSyncEngine example
Add support to the TaskOrganizerMultiWindowTest for resizing
two tasks synchronously.

Bug: 139371701
Test: TaskOrganizerMultiWindowTest
Change-Id: I57fabf9a32fd02d461acd0e6ef4265df844eb2b7
2020-02-12 14:08:11 -08:00
Yiwen Chen
5d6911fbd2 Merge "Device config flag clean up in Vibrator." 2020-02-12 22:07:41 +00:00
Robin Lee
dc82879d73 Implement StatusBar notification panel APIs for TV
Test: atest GtsIncidentManagerTestCases
Bug: 138173483
Change-Id: Ib22aaec8be5744e74c6eb2e58a5383c75f8cb58b
2020-02-12 23:02:01 +01:00
Remi NGUYEN VAN
e5fe55eddf Merge "Fix TetheredClient and TetheredClientTest" 2020-02-12 21:58:07 +00:00
David Su
c4e61a3a47 SettingsLib: Rename requirePMF to requirePmf
Rename to conform to API guidelines.

Bug: 146046526
Test: compiles
Change-Id: Ied7dbb464f86796666215f58f15a5c251a1bc940
2020-02-12 13:56:55 -08:00
David Su
381ba3e270 Wifi: Rename requirePMF to requirePmf
Rename to conform to API guidelines.

Bug: 146046526
Test: compiles
Change-Id: If8089bcbf9e18d4fadfe8abe7fdab418f8c1bbca
2020-02-12 13:56:49 -08:00
Patrick Baumann
1c58541605 Merge "Adds AppEnumerationTests to pm presubmit" 2020-02-12 21:51:01 +00:00
Will Brockman
492be33c4f Fix typo in atoms.proto
Field name notification_panel_modified was meant to be
notification_channel_modified, matching the atom name.

Test: build
Bug: 146488473
Change-Id: Iafe46334e74df5224e6f6b5e26f30841b3c94aa6
2020-02-12 16:46:04 -05:00
Zach Johnson
c425dc2958 Merge "Revert "Require user pass in a non-null BluetoothDevice to all B..."" 2020-02-12 21:39:47 +00:00
Automerger Merge Worker
e92ec83cd9 Merge "Make switching dialog full screen and change "Loading" text color." into qt-qpr1-dev am: c2daf3cbb2 am: 4cbe752648
Change-Id: Iafe1311677f31581bdfe433d25d0142811665ca5
2020-02-12 21:38:40 +00:00
Beverly
7e0d649ac7 Add NotifCollection dismiss methods
Now NotifCollection has three methods for sending dismissals to system
server:
1. dismissNotification
	- dismisses a single notification
	- use case: when user swipes away a single notification
	- ends up calling IStatusBarService#onNotificationClear to
	update system server
2. dismissNotifications - dismisses multiple notifications it's passed.
	- use case: user dismisses all 'gentle/silent' notifications
	- ends up calling dismissNotification (#1) multiple times
3. dismissAllNotification
	- dismisses all clearable notifications associated with a given userId
	- use case: user clicks on "clear all" to clear all their notifications
	- ends up calling IStatusBarService#onClearAllNotifications to
	update system server

Test: atest NotifCollectionTest
Test: atest SystemUITests
Change-Id: I1fdf38fd192824b1dfc45dd3a5e1fea0a51e2e75
Fixes: 149241859
2020-02-12 16:36:15 -05:00
Songchun Fan
30fb809666 Merge "[adb data loader] release unique_fd from openWrite" 2020-02-12 21:35:21 +00:00
Taran Singh
31af9f3ea6 Merge "Revert "Revert "Enable insets flag for IME""" 2020-02-12 21:24:24 +00:00
Automerger Merge Worker
4cbe752648 Merge "Make switching dialog full screen and change "Loading" text color." into qt-qpr1-dev am: c2daf3cbb2
Change-Id: I2ccc76bdf5fd7da3496352621db3afdbd32260bc
2020-02-12 21:23:46 +00:00
Hai Shalom
5dd61a39c5 Merge "[Passpoint] Fix connected network not showing in Wi-Fi picker" 2020-02-12 21:18:36 +00:00
Adrian Roos
c80cc85c05 Merge "InsetsAnimation: Fix crash if disabling decor fitting before view is attached" 2020-02-12 21:17:54 +00:00
TreeHugger Robot
c2daf3cbb2 Merge "Make switching dialog full screen and change "Loading" text color." into qt-qpr1-dev 2020-02-12 21:14:21 +00:00
Will Brockman
d3d49337e5 Notification statsd logs: Visibility changes.
These are currently logged in NotificationRecord.setVisibility().
Rather than add a dependency on the NotificationRecordLogger to
NotificationRecord, I've passed one in to that method.

I considered but rejected doing the same for
NOTIFICATION_INTERRUPTION, which is logged similarly in
NotificationRecord.setInterruptive().  The circumstances under which
that log gets written are challenging to understand, and I'm not
currently convinced that it is worth porting.

Test: atest NotificationManagerServiceTest NotificiationRecordLoggerTest
Bug: 146488473
Change-Id: I956cd4ededa470f91244305d4c26fb981d4c94a4
2020-02-12 16:13:46 -05:00
Patrick Baumann
2f4810e039 Merge "Adds QUERY_ALL_PACKAGES permission to packageinstaller" 2020-02-12 20:45:17 +00:00
art-benchmark-service
56aece6897 Update boot image and system server profiles [M10C90P90S0PP]
= Perf stats =
(lower is better)

Avg Startup time change: -2.79%
Avg Memory at boot PSS change: -9.64%
Code size: -31.34%
Boot time: -3.78%

Atp Tests:
health/memory/boot
health/microbench/startup/thirdparty/stable-apps/open-twitter
health/microbench/startup/thirdparty/stable-apps/open-snapchat
health/microbench/startup/thirdparty/stable-apps/open-netflix
health/microbench/startup/thirdparty/stable-apps/open-instagram
health/microbench/startup/thirdparty/stable-apps/open-facebookmessenger
health/microbench/startup/thirdparty/stable-apps/open-facebook
health/microbench/startup/firstparty/open-youtube
health/microbench/startup/firstparty/open-settings
health/microbench/startup/firstparty/open-photos
health/microbench/startup/firstparty/open-phone
health/microbench/startup/firstparty/open-messenger
health/microbench/startup/firstparty/open-maps
health/microbench/startup/firstparty/open-google
health/microbench/startup/firstparty/open-gmail
health/microbench/startup/firstparty/open-contacts
health/microbench/startup/firstparty/open-clock
health/microbench/startup/firstparty/open-chrome
health/microbench/startup/firstparty/open-camera
health/microbench/startup/firstparty/open-calendar
health/microbench/startup/firstparty/open-calculator
asit/perf/hermetic_app_launch_small_test
asit/perf/boottime_test

=Generation Strategy=

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

=Profile stats=

Data info:
- total aggregations: 1151
- number of (device types, builds): 61

File boot-image-profile.txt
  - hot methods: 4265 added, 18862 removed
  - methods: 3289 added, 25892 removed
  - classes: 1028 added, 619 removed
  - totals now: 22527 hot methods, 22535 methods, 9596 classes
  - totals before: 37124 hot methods, 45138 methods, 9596 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 4032, 12915, 354, 508, 14524, 6097
    com.android, 122, 2930, 674, 69, 1285, 1787
    java, 72, 2192, 0, 25, 5273, 1612
    android.view, 539, 1314, 1, 39, 2136, 654
    android.hardware, 27, 628, 24, 14, 173, 560
    android.bluetooth, 22, 186, 0, 2, 79, 155
    android.animation, 77, 93, 0, 0, 338, 70
    android.app, 340, 1903, 5, 39, 2020, 753
    android.content, 71, 1641, 1, 32, 1158, 400
    android.graphics, 296, 495, 2, 4, 1557, 284
    android.icu, 1898, 0, 249, 0, 1898, 249
    android.media, 73, 672, 11, 24, 369, 401
    android.net, 74, 837, 24, 175, 531, 250
    android.widget, 115, 876, 0, 15, 734, 280

File preloaded-classes
  - hot methods: 0 added, 0 removed
  - methods: 0 added, 0 removed
  - classes: 1028 added, 534 removed
  - totals now: 0 hot methods, 0 methods, 9498 classes
  - totals before: 0 hot methods, 0 methods, 9498 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 0, 0, 354, 454, 0, 6087
    com.android, 0, 0, 674, 64, 0, 1786
    java, 0, 0, 0, 7, 0, 1611
    android.view, 0, 0, 1, 39, 0, 654
    android.hardware, 0, 0, 24, 12, 0, 560
    android.bluetooth, 0, 0, 0, 2, 0, 155
    android.app, 0, 0, 5, 36, 0, 753
    android.content, 0, 0, 1, 29, 0, 399
    android.graphics, 0, 0, 2, 4, 0, 284
    android.icu, 0, 0, 249, 0, 0, 249
    android.media, 0, 0, 11, 21, 0, 401
    android.net, 0, 0, 24, 174, 0, 249
    android.widget, 0, 0, 0, 14, 0, 279

File art-profile
  - hot methods: 11611 added, 0 removed
  - methods: 15375 added, 0 removed
  - classes: 2513 added, 0 removed
  - totals now: 23340 hot methods, 39557 methods, 3473 classes
  - totals before: 11729 hot methods, 24182 methods, 3473 classes

  per package info as csv (selected):
    package_name, hot_a, hot_r, cl_a, cl_r, hot_num, cl_num
    android, 229, 0, 106, 0, 459, 243
    com.android, 11334, 0, 2387, 0, 22803, 5702
    android.hardware, 104, 0, 74, 0, 191, 119
    android.app, 0, 0, 1, 0, 1, 2
    android.net, 124, 0, 28, 0, 236, 101

InternalReferenceRawProfileId: 383
InternalReferenceCandidateProfileId: 388

Test: build & benchmark
Bug: 148471769
Change-Id: I1726b729dbbb60e5983670432a2714e8911d3755
2020-02-12 12:40:17 -08:00
Lyn Han
05ea3f89da Empty overflow UI
Bug: 148879187
Bug: 149146374
Test: manual -> bubbles < 5, click into overflow: text shows
Test: manual -> bubbles > 5, click into overflow: overflow bubbles show
Test: atest SystemUITests
Change-Id: Ia5fa3517b0e793952684f573b9a0436bfd15246c
2020-02-12 12:35:42 -08:00
Ryan Mitchell
e272307dd3 API council changes for ResourcesLoaders
Per API council guidance, setLoaders, getLoaders, and clearLoaders
are no longer part of the public API. addLoader and removeLoader
are now consume variadic loaders.

Bug: 142716192
Test: atest FrameworksResourceLoaderTests
Change-Id: If29d47b526ae6acd582b14206b2c6372f3c497be
2020-02-12 12:34:44 -08:00
Brett Chabot
df9dbcc9b0 Merge "Build StrictJarFile for host." 2020-02-12 20:33:15 +00:00
Fabian Kozynski
9c459e58b6 Added fallback for load failed
If the load call times out or fails in some other way, the management
acitivity will show that and just show all favorites (without the
removed tag).

Also, added many docs

Test: atest
Test: manual
Fixes: 149138396
Change-Id: I58e391b65df1e40989101f227c46fd47e3fb419a
2020-02-12 15:08:43 -05:00
Pinyao Ting
aeb9794d75 Be a good android citizen and clean up following build warnings.
frameworks/base/services/core/java/com/android/server/content/SyncStorageEngine.java:1739:
warning: Replaced KLP with KitKat in the documentation for method
com.android.server.content.SyncStorageEngine.maybeDeleteLegacyPendingInfoLocked(java.io.File)
[Typo]

Change-Id: I167b58d5a3a4b994bb95f5401d5db70df5c4a313
Test: make build
2020-02-12 11:53:42 -08:00
Kweku Adams
f35ed37018 Make apps active when charging.
This undoes part of the work to remove parole windows from
AppStandbyController. In the past, UsageStatsManager.isAppInactive would
return false when the device was charging. This wasn't documented
behavior, but was intentional, so removing it was the wrong thing to do.
I've updated the documentation to explicitly call out the behavior and
added it back so that the behavior is consistent with previous versions.

Bug: 148988544
Test: atest CtsUsageStatsTestCases:UsageStatsTest
Test: atest AppIdleHistoryTests
Test: atest AppStandbyControllerTests
Change-Id: If5cad80b693a1e043ae64b8206e28abb60f83853
2020-02-12 11:52:28 -08:00
Curtis Belmonte
5cf71d715e Merge changes from topic "bio_service_restrict"
* changes:
  Make BiometricService check for internal permission
  Configure BiometricPrompt to use AuthService.
2020-02-12 19:29:04 +00:00
Evan Laird
d04af51042 Upgrade NoMan's cancelation reposting logic
1. Technically there can be multiple notifications enqueued which
haven't posted yet. Check the entire set of them instead of just the
first.
2. If there is a posted notification that showed up _after_ the request
to cancel, then cancel the cancel (don't cancel is what I'm saying)

Bug: 147420515
Test: atest NotificationManagerServiceTest
Change-Id: I0f401eb3cc6b8c15fb34593f7afc3293daed0726
2020-02-12 14:24:52 -05:00