Commit Graph

394497 Commits

Author SHA1 Message Date
Badhri Jagan Sridharan
5ec629f020 Log UsbDeviceAttached events for Audio devices
UsbDeviceAttached is logged when the device has an audio interface.
Info such as VID, PID, whether the device has hid or mass storage
interface and the duration for which the usb device was connected
would be logged as well.

Bug: 118783261
Test: Manually tested by running: adb shell cmd stats print-logs,
    adb logcat | grep statsd | grep \(77\)
Change-Id: I57bbfd22ef377553daa113968fe53c4fe0f8e4d2
2018-12-10 17:37:27 -08:00
Philip P. Moltmann
298c49e4f0 Merge "Prepare PackageInstaller to be signed with google cert" 2018-12-02 05:09:25 +00:00
Philip P. Moltmann
9e5fccc81a Merge "Give platform permissions a dummy group" 2018-12-02 01:28:26 +00:00
Jeff Sharkey
2ea404fd2a Merge "Method to determine isolated storage mode." 2018-12-01 22:37:35 +00:00
Philip P. Moltmann
2a01ddbb4e Give platform permissions a dummy group
We still don't want apps to deal with permissions groups but many apps
crash if the group is not set.

Test: android.permission2.cts.PermissionPolicyTest#testPlatformPermissionPolicyUnaltered
Change-Id: Ibc817d4d44a9a76a1c5fac170f8e76f96a9e4201
Fixes: 119836955
2018-12-01 07:58:25 -08:00
Jack Yu
db58c2056a Merge "Support multiple DcTracker for IWLAN refactoring" 2018-12-01 08:14:19 +00:00
TreeHugger Robot
4a18273991 Merge "Deprecate getPreferredPackages() and related APIs" 2018-12-01 05:50:31 +00:00
TreeHugger Robot
031eef2fef Merge "Expose RenderNode#getUniqueId() as View#getUniqueDrawingId()" 2018-12-01 05:44:59 +00:00
TreeHugger Robot
ae697dcd74 Merge "Include zygote and drop unexpected samples" 2018-12-01 05:22:26 +00:00
Kevin Chyn
3d9b0fc963 Merge changes from topic "biometric-refactor"
* changes:
  3/n: For passive modalities, add plumbing for "try again"
  2/n: Multi-modal support for BiometricPrompt
  1/n: Move BiometricDialog management to BiometricService
2018-12-01 05:04:02 +00:00
TreeHugger Robot
96b3e88046 Merge "Update comment referring to number of BroadcastQueues" 2018-12-01 04:45:32 +00:00
Robert Shih
cd0ee52248 Merge "MediaPlayer2: Move Drm APIs into DrmHandle subclass" 2018-12-01 04:29:34 +00:00
TreeHugger Robot
8d0446d544 Merge "Fixed a crash where we were getting the viewstate" 2018-12-01 04:10:36 +00:00
Siarhei Vishniakou
122c0879cd Merge "Fix crash in InputManagerService" 2018-12-01 00:57:44 +00:00
TreeHugger Robot
7b705a37cc Merge "Remove mFamilies from Typeface" 2018-12-01 00:04:51 +00:00
Eugene Susla
b9df101c9e Merge "Call roles granting only when packages changed" 2018-11-30 23:13:50 +00:00
TreeHugger Robot
5cf6abedcb Merge "Make TextView.isSingleLine public" 2018-11-30 22:42:28 +00:00
Selim Cinek
b1a8130d73 Fixed a crash where we were getting the viewstate
Because we're now getting the viewstate directly from the
view, this was introducing an issue where the viewstate
being null was actually a symbol of the view being null,
which now lead to a nullpointer.

Change-Id: I1d171449034422d25a6e7ba7dca5154db3ce20b3
Fixes: 120230161
Test: remove last notification, no crash
2018-11-30 14:41:32 -08:00
Nikita Dubrovsky
18a87693a0 Deprecate getPreferredPackages() and related APIs
The APIs for "preferred" packages and activites have been superseded
by modern activity-based preferences.

Bug: 120291723
Test: build (javadoc-only change)
Change-Id: I4242a10e1612f7e203256e4c26c5e8c518cc7656
2018-11-30 21:25:13 +00:00
Lei Yu
950c469c9d Merge "Update scaleType to fitCenter" 2018-11-30 21:22:43 +00:00
TreeHugger Robot
e444d218b7 Merge "Revert "Allow location provider to deep link into permissions UI"" 2018-11-30 21:04:35 +00:00
TreeHugger Robot
a8cb5a8bef Merge "Added plural form for "one"" 2018-11-30 20:38:49 +00:00
TreeHugger Robot
0f15529345 Merge "Renamed a few methods in ActivityRecord (42/n)." 2018-11-30 20:33:49 +00:00
Shuo Qian
0893c2e31d Merge "Add Emergency service categories in ImsCallProfile" 2018-11-30 20:22:01 +00:00
TreeHugger Robot
3d31b4e018 Merge "Don't rely on fallthrough in incident_section_gen" 2018-11-30 20:18:25 +00:00
Pengquan Meng
3ce70560d8 Merge "Add 5G rat type" 2018-11-30 20:10:04 +00:00
Tyler Gunn
961b10fcff Merge "Add telecom test-commands for maintaining role overrides." 2018-11-30 20:03:01 +00:00
TreeHugger Robot
e1b9672d80 Merge "Updates NotificationInfo layout/buttons." 2018-11-30 19:59:18 +00:00
Jim Blackler
f8f70e10ef Merge "Add start time to LmkKillOccurred" 2018-11-30 19:36:11 +00:00
Ashley Rose
752828f92f Expose RenderNode#getUniqueId() as View#getUniqueDrawingId()
Test: atest ViewTest
Bug: 120282501
Change-Id: I797fbbc6ac40869fea4e29ce55697cfafd8bafef
2018-11-30 14:34:42 -05:00
Kevin Chyn
23289ef7b6 3/n: For passive modalities, add plumbing for "try again"
When "try again" is showing, authentication is canceled internally.
BiometricService caches the client's info so that authentication can
be restarted when "try again" is pressed. Because authentication
is not running when "try again" is showing, BiometricService also needs
to have a TaskStackListener so that BP can be dismissed and an error can
be sent to the client when the app loses focus.

IBiometricServiceReceiver has been split into two. One for BiometricPrompt
to receive messages from BiometricService, and another for BiometricService
to receive messages from SystemUI/<Biometric>Services.

When we get locked out, don't send the last onAuthenticationFailed
to the client, since "Authentication failed" will be shown briefly
and be replaced by "Device locked out" which is janky

Bug: 111461540

Test: Tested with requireConfirmation enabled/disabled
Test: Tested onConfigurationChange corner cases, e.g. when "try again"
      or "confirm" buttons are showing, rotate the device. Buttons
      persist correctly and don't appear when unexpected
Test: Tested task stack corner cases, e.g. when "try again" is showing,
      press home button. BP dismisses and client receives ERROR_CANCELED
Test: BiometricPromptDemo receives all callbacks

Change-Id: I62126708ce8db8b358c666a07aa7c39607642c9d
2018-11-30 11:34:35 -08:00
Eugene Susla
abdefbaeeb Call roles granting only when packages changed
This computes and stores a hash of significant (for PermissionController)
packages state for the time when granting last ran.

Test: - enable DEBUG flag
- using logcat ensure roles granted on first bootloader
- adb reboot
- ensure roles granting skipped
- disable a package
- adb reboot
- ensure roles granting ran on boot

Change-Id: Idaea40c0ea34feaedfbe357627201f85e66876d5
2018-11-30 10:58:47 -08:00
Selim Cinek
5b1d16409a Merge "Fixed an issue where the notification could be blank" 2018-11-30 18:44:48 +00:00
Daniel Solomon
94da729e42 Merge "Add a public chromatic adaptation API to ColorSpace" 2018-11-30 18:38:15 +00:00
Rafal Slawik
932c71eb84 Include zygote and drop unexpected samples
Verified that the unexpected samples are caused by zygote forking for a
new app. We can drop those samples.

Test: atest UidAtomTests#testNativeProcessMemoryState
Change-Id: I12e5d772dd888ab7438db46b788b6026e1349b50
2018-11-30 18:14:04 +00:00
Misha Wagner
3beb2e460a Merge "Revert "Filter threads that have low total CPU usage for CpuTimePerThreadFreq"" 2018-11-30 18:10:34 +00:00
Siarhei Vishniakou
f9868961a2 Fix crash in InputManagerService
We are currently storing a local variable into permanent storage, which
causes jni abort, unsurprisingly. Make this a global ref instead.

Bug: 120255803
Test: eng build boots properly
Change-Id: Ie572d7cfdb6799af99c10aa8ade96c0fbc4eab2b
2018-11-30 10:08:22 -08:00
Misha Wagner
e4babcf3cb Merge changes I56de3aec,Iba86e8e3
* changes:
  Change CpuTimePerThreadFreq to contain all frequencies in one atom
  Remove filtering out frequencies with zero usage for CpuTimePerThreadFreq
2018-11-30 17:52:43 +00:00
Jeff Sharkey
10ec9d8a42 Method to determine isolated storage mode.
Mostly designed for use by tests, but start using it elsewhere in OS
for consistency.

Bug: 119713234
Test: manual
Change-Id: I803671fd84547b75337bebf00c2fa2bdaf0f72e7
2018-11-30 10:52:02 -07:00
Issei Suzuki
46502d7774 Merge "Stop the window manager acquiring a sleep token in dozing state." 2018-11-30 17:38:39 +00:00
Chad Brubaker
56b8ae1e93 Merge "Log if permission usage requirements are not met" 2018-11-30 17:31:44 +00:00
TreeHugger Robot
eb3382cafb Merge "Delete rss_high_watermark_in_bytes field" 2018-11-30 17:24:18 +00:00
Gus Prevas
82ad059b13 Updates NotificationInfo layout/buttons.
This change modifies the UI displayed when the new interruption model is
enabled after long pressing a notification or tapping the settings icon
in the notification side menu.  The text links for blocking the channel,
toggling its importance, or canceling out of the dialog are replaced
with buttons with icons and clearer text descriptions.

Test: atest NotificationInfoTest
Bug: 116622974
Change-Id: I06ead5c4da77319df3ebe4c48d863dede37bf2f4
2018-11-30 11:30:51 -05:00
Misha Wagner
fde6958b8b Change CpuTimePerThreadFreq to contain all frequencies in one atom
Test: make, flash, inspect pull-source output
Bug: 120016054
Change-Id: I56de3aec85d5f82339eb4eb876a1349d66698a63
2018-11-30 16:29:36 +00:00
Aaron Heuckroth
b5ed915803 Merge "Remove setAsMainLooper from CollapsedStatusBarFragmentTest." 2018-11-30 16:04:10 +00:00
Wale Ogunwale
8b19de9467 Renamed a few methods in ActivityRecord (42/n).
This is in preparation for having the ActivityRecord class
extend AppWindowToken where name distinction will be important.
There is no functional change in this CL.

ActivityRecord.realActivity -> mActivityComponent
ActivityRecord.userId -> mUserId
ActivityRecord.getTask() -> getTaskRecord()
ActivityRecord.getStack() -> getActivityStack()
ActivityRecord.service -> mAtmService
WindowContainer.mService -> mWmService

Bug: 80414790
Test: Existing tests pass.
Change-Id: Ie5788db7f2e823c7d5b64c7ce6eaade1c19c4dcd
2018-11-30 07:35:46 -08:00
Issei Suzuki
26fc2c9e46 Stop the window manager acquiring a sleep token in dozing state.
This logic is not necessary anymore, and makes transition of the
windows manager flaky.

Bug: 119217735
Test: atest CtsActivityManagerDeviceTestCases:KeyguardTransitionTests
Change-Id: I953b40737f6673b83d27b096dd1f8e81b0cc6e46
2018-11-30 16:28:07 +01:00
Clara Bayarri
e2b77cdf58 Merge "Fix unsupported api usage in NumberPicker" 2018-11-30 14:52:39 +00:00
Greg Daniel
ef60a0589e Merge "In VulkanManager enable ycbcr feature on VkDevice." 2018-11-30 14:27:28 +00:00
Michal Karpinski
c7bbf2ac02 Merge "Allow background activity starts if realCallingUid is in the foreground" 2018-11-30 13:43:41 +00:00