Commit Graph

468813 Commits

Author SHA1 Message Date
Automerger Merge Worker
4b027589fb [automerger skipped] [adbwifi] SysUI: Add WifiDebuggingActivity. am: 9a8ddc9cde am: f41fdc9524 am: e6465942c9 -s ours
am skip reason: Change-Id I56a7c022f26d4e3d93a22d9022f19f1b8d997d70 with SHA-1 21819bf32d is in history

Change-Id: I68d5a0ea4bf5052c32d8edcf0c26b2584a6497a2
2020-02-21 05:46:54 +00:00
Lucas Dupin
1fb49c8190 Only register long press when required
Otherwise Talkback would anoounce an action that's invalid.

Test: long press on emergency dialer button
Fixes: 149452415
Change-Id: I50f68c7281a9ed97825bbbac00db329a51fd905e
2020-02-20 21:39:41 -08:00
Automerger Merge Worker
f098be9927 Merge changes from topic "adbwifi-base" am: 458a9a2561 am: bdf898ab9f
Change-Id: I2c404b54c4f76507103cba3551f55b8cdea142b5
2020-02-21 05:36:52 +00:00
Automerger Merge Worker
e6465942c9 [adbwifi] SysUI: Add WifiDebuggingActivity. am: 9a8ddc9cde am: f41fdc9524
Change-Id: I8c7592fa41aaeb8633a8e59db04190ecedd34e27
2020-02-21 05:36:48 +00:00
Eugene Susla
29d9470609 Merge "Fix maps foreground location pregrant" 2020-02-21 05:29:58 +00:00
Automerger Merge Worker
bdf898ab9f Merge changes from topic "adbwifi-base" am: 458a9a2561
Change-Id: I03540566fe4eb10926f97c56adf3b0b1449ad89a
2020-02-21 05:24:09 +00:00
Automerger Merge Worker
f41fdc9524 [adbwifi] SysUI: Add WifiDebuggingActivity. am: 9a8ddc9cde
Change-Id: Iceb77b783fdea704019fae8419b4f52a2810e918
2020-02-21 05:24:03 +00:00
Tim Murray
a2668e55dc Merge "LocationManager: cache isLocationEnabledForUser" 2020-02-21 05:04:14 +00:00
Joshua Duong
458a9a2561 Merge changes from topic "adbwifi-base"
* changes:
  Add Settings.Global.ADB_WIFI_ENABLED.
  [adbwifi] SysUI: Add WifiDebuggingActivity.
2020-02-21 05:02:49 +00:00
Hyundo Moon
6200266917 Add javadoc for the difference between transfer and select
Bug: 149912538
Test: Builds successfully
Change-Id: I5282bf6572a6ef281028e0a2368e9385c7564f46
2020-02-21 14:02:27 +09:00
Roshan Pius
13e47c994a Merge "SupplicantManager: Expose an API to start/stop supplicant daemon" 2020-02-21 04:54:18 +00:00
Yo Chiang
f8d6789233 Fix VerificationActivity Intent
VerificationActivity crashes when the Intent sent to it doesn't have an
extras Bundle. This is because VerificationActivity copies the incoming
Intents extras Bundle with getExtras() / putExtras(Bundle), and
putExtras(Bundle) doesn't expect a null Bundle.

Bug: 145891687
Test: adb shell am start-activity \
  -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
  -a android.os.image.action.START_INSTALL \
  -d file:///storage/emulated/0/Download/aosp_arm64-dsu_test.zip

Test: Dynamic system service mustn't crash
Change-Id: I111641f366d50d739b922bcc3a52993c44212759
2020-02-21 04:17:51 +00:00
Yan Yan
e2ff46a5e3 Merge "Dynamically include ike-stubs in services.core.unboosted" 2020-02-21 04:10:42 +00:00
TreeHugger Robot
53f8aeaa8d Merge "Fixed NPE in the InlineSuggestionFactory for augmented autofill request" 2020-02-21 03:50:54 +00:00
Lyn Han
cd4f87efbb Better overflow button
Overflow button as BadgedImageView
- BadgedImageView uses launcher’s icon factory to render overflow icon, which fixes the size and space inconsistencies between real bubbles and a bare ImageView
- BadgedImageView gives us access to the existing dot drawing logic, which we can later use to draw a dot on overflow button when overflow bubbles get updates
- Replace Bubble with BubbleViewProvider inside BadgedImageView so that BadgedImageView can access BubbleOverflow’s dot info

UI polish
- Set margins for overflow bubbles
- Set padding for overflow empty state
- Set overflow button and dot color to accent color from theme
- Render overflow button based on theme and dark mode; update on change

Bug: 149146374
Bug: 148878911
Test: manual - overflow button shape, icon color updates on theme change
Test: manual - overflow button color updates on dark mode change
Test: manual - overflow UI looks like mocks (specs not final)
Test: atest SystemUITests
Change-Id: I3d8829d56bce5c80936698a038438aff6db42d0f
2020-02-20 19:35:26 -08:00
Chris Ye
e078ee507e Merge "Add native Thermal Throttling API to libandroid." 2020-02-21 03:21:18 +00:00
Julius D'souza
e32f290e3e Merge "KeyguardManager set + validate lock API refinement" 2020-02-21 03:19:43 +00:00
Ned Burns
aaeb44bf01 Migrate DumpController -> DumpManager
Unify "everything that needs to dump stuff" to use the DumpManager.

Test: atest, manual
Change-Id: Ib475aba4eeccb24bd49ab909896f7d779a8e1b04
2020-02-20 22:11:32 -05:00
Ned Burns
e33b495c7d Add service for dumping at NORMAL priority
SystemUIService is hard-coded to dump at CRITICAL priority and so can't
dump very much (and, most importantly, can't handle dumping our length
log buffers). So instead we create a new service,
SystemUIAuxiliaryDumpService, which will dump alongside all other
services in the NORMAL section. Its dump method calls straight into the
DumpManager.

Test: atest, manual
Change-Id: If76f206081a1663e23fc14076b50bef7396e517f
2020-02-20 22:11:31 -05:00
Ned Burns
c7cfa69ffd Introduce DumpManager
Introduces DumpManager, a unified dumping system that supports dumping
at different priority levels.

Currently, when a bug report gets taken, SystemUI is only dumped during
the CRITICAL section. This has its advantages (we get to go first!) but
also imposes a strict limit on how much we can dump. To get around this
restriction, we need to *also* dump SystemUI during the NORMAL section,
which has much more forgiving constraints.

This CL simply creates the mechanism for systemUI to dump at different
priority levels, but doesn't actually cause us to participate in the
NORMAL section (yet, see later CLs).

It introduces the DumpManager, unified replacement for DumpController &
various logic in SystemUIService and Dependency.java. See kdoc in
DumpManager for usage notes.

Migration of current users of DumpController coming in a later CL.

Test: atest, manual
Change-Id: If4f41ed496c0c64024a83aad812b77f60fe27555
2020-02-20 22:11:19 -05:00
TreeHugger Robot
a29c129c83 Merge "Fix crash during SysUI dumpsys" 2020-02-21 03:06:50 +00:00
Derek Sollenberger
2173ea286a Export symbols for the newly exposed APEX/internal headers
Bug: 137655431
Test: CtsUiRenderingTestCases
Change-Id: I71c6d1a53ae080bf104848679ee62a77cf07c9fa
2020-02-20 21:50:06 -05:00
Derek Sollenberger
42c50042d1 Remove dependence on libandroid_runtime from Bitmap.cpp
The end goal is to have Bitmap.cpp use AParcel, but until that
API is extended to support this use case this is an alternative
way to isolate the graphics files from the libandroid_runtime.

Test: CtsGraphicsTestCases
Bug: 145227478
Change-Id: Ie3854fe03dec4f7b1b485295bb9a5ebba52ddb7c
2020-02-20 21:50:06 -05:00
Derek Sollenberger
15da7e24a5 Update Region.cpp to use AParcel NDK APIs
Test: CtsGraphicsTestCases
Bug: 145227478
Change-Id: I36f5d3e760bce3c302277c7897c7f8df0ac3cb61
2020-02-20 21:50:06 -05:00
Derek Sollenberger
ee538a3a85 Cleanup header and build targets for libhwui clients.
Targets that will also be contained within the UI module
are allowed to access internal headers.  All other targets
that depend on libhwui are restricted to using the APEX headers.

Bug: 137655431
Test: CtsUiRenderingTestCases
Change-Id: Id92e9874dafb98bd79839d45ab8f22ab999689de
2020-02-20 21:50:06 -05:00
Derek Sollenberger
c5882c4eb6 Remove dependencies on headers outside UI module
This includes AndroidRuntime and core_jni_helper.h

Bug: 137655431
Test: CtsUiRenderingTestCases
Change-Id: If3d26f41eaf4981505ee47634097f3645fd563fd
2020-02-20 21:49:44 -05:00
Joshua Duong
a71c97f440 Add Settings.Global.ADB_WIFI_ENABLED.
ADB_ENABLED historically meant the state for USB debugging. Since
wireless debugging can be enabled separately, define another setting
for it.

BUG: b/111434128

Test: make
Change-Id: If3abca8e77381d6832f55d55a43c52ee1a1267d1
Merged-In: If3abca8e77381d6832f55d55a43c52ee1a1267d1
Exempt-From-Owner-Approval: cherry-pick
2020-02-20 18:42:14 -08:00
Joshua Duong
9a8ddc9cde [adbwifi] SysUI: Add WifiDebuggingActivity.
This will prompt the user whether they trust the current wireless access
point when enabling wireless debugging.

Bug: 147814644

Test: make
Change-Id: I56a7c022f26d4e3d93a22d9022f19f1b8d997d70
Merged-In: I56a7c022f26d4e3d93a22d9022f19f1b8d997d70
Exempt-From-Owner-Approval: cherry-pick
2020-02-20 18:41:53 -08:00
Kyunglyul Hyun
ce6a9dc061 Merge "MediaRouter: Define route type" 2020-02-21 02:36:00 +00:00
Feng Cao
d4e2c49d6a Fixed NPE in the InlineSuggestionFactory for augmented autofill request
Test: manual verification
Bug: 149940463

Change-Id: I5fa48ca463654e5f86c834f71ab6d625e8992c5e
2020-02-20 18:30:36 -08:00
TreeHugger Robot
9f0d9f7bba Merge "Let launcher control wallpaper zoom" 2020-02-21 02:27:11 +00:00
TreeHugger Robot
e10efd8c81 Merge "Alerting notifications section header + new header style" 2020-02-21 02:23:25 +00:00
Joshua Duong
10d71243b2 Merge changes from topic "adbwifi-aosp"
* changes:
  Add Settings.Global.ADB_WIFI_ENABLED.
  [adbwifi] SysUI: Add WifiDebuggingActivity.
2020-02-21 02:22:08 +00:00
Joshua Duong
2076c04333 Add Settings.Global.ADB_WIFI_ENABLED.
ADB_ENABLED historically meant the state for USB debugging. Since
wireless debugging can be enabled separately, define another setting
for it.

BUG: b/111434128

Test: make
Exempt-From-Owner-Approval: approved in aosp_master
Change-Id: If3abca8e77381d6832f55d55a43c52ee1a1267d1
2020-02-21 02:21:08 +00:00
evitayan
24c8c12926 Dynamically include ike-stubs in services.core.unboosted
Previously because compilation will preferentially uses the
ike-stubs statically included in framework.jar,
FrameworksIkeTests has to jarjar the ike_test.jar. Otherwise
the tests will use the ike-stubs and cannot access to the hidden
implementation.

This commit removes ike-stubs in framework-minus-apex and framework
and statically includes it in services.core.unboosted.

In this way, system server can still compile against ike.jar and
at the same time FrameworksIkeTests does not need to jarjar the
ike_test.jar anymore

Bug: 145995723
Test: build, flash, boot, loaded in system server
Test: atest FramewokrsIkeTests (passed)
Test: m mts && mts-tradefed run mts-ipsec (passed)
Change-Id: I75dabcc522e89c94c3e888f5cea22ad5ce0a77e5
2020-02-20 18:03:50 -08:00
Hui Yu
7002fc431c Exempt SHELL_UID for background FGS restriction.
Because CtsVerifier starts FGS from adb shell command and access camera.

Bug: 149925746, 136219221
Test: CtsVerifier.
Change-Id: I79910a3711f506a5011708adc7e615c28328c424
2020-02-20 18:01:47 -08:00
Hui Yu
d465363999 Merge "Persistent process should have all capabilities." 2020-02-21 02:00:16 +00:00
shubang
d49681e2b3 Tuner JNI: use linearblock for media event
Test: mannual
Change-Id: I58398404fdfdb538649cd272031d7d04ca3cd956
2020-02-20 17:45:47 -08:00
Adam He
b909557790 Merge "Hide suggestions with hideFillUi" 2020-02-21 01:26:05 +00:00
Julia Reynolds
72b5e4a8aa Merge "Some issues with persisted snoozed notifications" 2020-02-21 01:25:31 +00:00
Ned Burns
017b1bba89 Fix crash during SysUI dumpsys
Sneaky-sneaky operator precedence. Null check was not actually
preventing us from executing the right side of the &&.

Test: manual
Change-Id: I86686c5b06ef9fd5441255792a1574d9ecd94166
2020-02-20 20:19:26 -05:00
TreeHugger Robot
cd5082de9d Merge "Catch IllegalStateException in StatsManager" 2020-02-21 01:16:39 +00:00
Tim Murray
b5e1153d03 LocationManager: cache isLocationEnabledForUser
This method is in the hot path for all location tasks but whether
location is enabled for a particular user doesn't change that
often. Cache the result and invalidate from system_server in order to
reduce CPU consumption.

Test: boots, works, gets location
Bug: 140788621

Change-Id: I84ad2c570e7024187a728071dcbb6f72b177e17a
2020-02-20 17:11:04 -08:00
Steve Elliott
63115dc4d9 Fix PeopleHub UI population once visually full
Bug: 149925807
Test: manual, atest
Change-Id: I21d043c7493698838f41fba9039e85783b961c95
2020-02-20 20:07:37 -05:00
Steve Elliott
b0940383e9 Alerting notifications section header + new header style
Test: manual, atest
Bug: 149922055
Change-Id: I2191033e267a74dc748c57bf2b00e69e0612a757
2020-02-20 20:07:35 -05:00
TreeHugger Robot
71fdc7838b Merge "Do not close PW in BlurUtils dump" 2020-02-21 01:00:31 +00:00
Danning Chen
bbf1b376c1 Merge "Listen to the shortcut add/update/delete changes from PeopleService" 2020-02-21 00:55:54 +00:00
Sarah Chin
30a3111db8 Expose getLteOnCdmaMode as isGlobalModeEnabled
Rename and make @SystemApi

Test: atest FrameworksTelephonyTests
Bug: 147335742
Change-Id: I2c5727bcc5fd0263acfe669177f43fda17650f41
Merged-In: I2c5727bcc5fd0263acfe669177f43fda17650f41
2020-02-20 16:55:02 -08:00
Kevin Chyn
bc3347fa1e Fix stealth mode for managed profiles
Stealth mode should not use effectiveUserId. Instead, it needs to use
the original userId.

Secondly, the pattern view should be setting stealth mode only after
the configuration is received (e.g. onFinishInflate is too early, and
the params are not passed in from its owner yet).

Fixes: 148382970

Test: 1) Make pattern visible for managed profile
      2) Reboot device
      3) Open work profile app - pattern is shown when entered
      4) Enter pattern
      5) Lock screen, unlock screen
      6) Open work profile app - pattern is shown when entered
      7) Repeat 1-6 with pattern set to not be visible. pattern should not
         be shown during 3) and 6)

Change-Id: I3e81cd31484fb0b7a99d554c3c274e8088df5ec7
2020-02-20 16:51:02 -08:00
TreeHugger Robot
57de219190 Merge "fix local incremental installation" 2020-02-21 00:38:03 +00:00