Commit Graph

468813 Commits

Author SHA1 Message Date
Yo Chiang
9834448ca1 Add DSU default userdata partition size
Use DEFAULT_USERDATA_SIZE as userdata partition size if the calling
Intent desn't specify the userdata size or the specified size is zero.

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

Merged-In: I52767dfefef394403c5e16fcfd40792b14ff9a71
Change-Id: I52767dfefef394403c5e16fcfd40792b14ff9a71
(cherry picked from commit f41e145480)
2020-02-24 17:13:20 +08:00
Charles Chen
7cc1016022 Merge "Update document of WindowMetrics#getSize" into rvc-dev 2020-02-24 09:12:53 +00:00
Patrick Rohr
2faf788151 Add Option To Prevent Wake On Back Key Press
KEYCODE_BACK was previously hardcoded as a wake key in KeyEvent.java.
For TV remotes, we want to make this behavior configurable.

Test: Tested on Android TV Device.
Bug: 144979700
Change-Id: I496c9c283525d5e04325e4bb3d6ab19a571db0c7
2020-02-24 08:17:24 +00:00
Dieter Hsu
0dbbb422e2 Retry TTS speaking for a11y shortcut warning dialog
TTS engine might fetch data over the network or prepare data when
binding tts service at first time after boot that may take a few
seconds. Because the dialog is shown only once and on-demand for
enableing accessibility shortcut, it's unable to speak successfully
unless others have bound tts ahead of time.

Bug: 139887992
Test: 1. adb shell settings delete secure accessibility_shortcut_dialog_shown
      2. manual reboot, long press both vol keys and tts speaks
Test: Add 2nd user and long press both vol keys and tts speaks
Test: atest AccessibilityShortcutControllerTest

Change-Id: I6290f0a64d1a51aa46f13e7d88a15a096ddb0fdc
Merged-In: I6290f0a64d1a51aa46f13e7d88a15a096ddb0fdc
2020-02-24 08:14:12 +00:00
lumark
d85e158db8 Introduce SoftInputShowHideHistory
Add SoftInputShowHideHistory class to monitor showSoftInput / hideSoftInput
histories, each entry data contains:
  - ClientState: IME focused client process pid / uid who
  shows / hides soft input
  - Current focused window
  - Target display ID
  - Reason: describes why show / hide input
  - Request show or hide input
  - Timestamp

Bug: 141738570
Test: manual by calling "adb shell dumpsys input_method"
Change-Id: I21ad1708d68eae59dcd3d414248193fb130dadc2
Merged-In: 10ecd64cdd
(cherry picked from commit 10ecd64cdd)
2020-02-24 07:55:29 +00:00
Mike Ma
5bbfd65359 Merge "Add text dumpsys section to incidentd" into rvc-dev 2020-02-24 07:41:27 +00:00
wilsonshih
d155133382 Fix race condition while WallpaperMS rebinding service.
Connection object could not receive onServiceConnected after
new process of the service was active.

How issue happen:
1. The process of wallpaper service died, AM schedule to restart,
WallpaperMS schedule to rebind.
2. WallpaperMS bind service with new connection object.
=> ActiveService bring up new process. Add this ServiceRecord to
   mPendingServices.
3. WallpaperMS unbind previous connection object.
=> ActiveService remove previous connection, also remove this
   ServiceRecord object from mPendingServices list.
4. Process ready, attach application but cannot find the service
   from pendingServices.

Solution: Do not remove the ServiceRecord object from mPendingServices
if there is any connection left.

Also use runnable object instead of method reference.

Bug: 147964645
Bug: 149625847
Test: atest WallpaperManagerTest WallpaperManagerServiceTests
Change-Id: I3adec66de8ac0c7efc9ad3ffbf604b01eacb5720
2020-02-24 15:36:30 +08:00
Chilun
939b05c876 Use packageName instead of specific secondary launcher activity
Only use packageName and SECONDARY_HOME to determine secondary launcher
activity.

Bug: 149070587
Test: atest RootActivityContainerTests
atest MultiDisplaySystemDecorationTests
Change-Id: Ibb23af551770b65f870ebf8aeb652c901e0af42c
2020-02-24 07:33:10 +00:00
Charles Chen
65da12a421 Update document of WindowMetrics#getSize
Update document to notify that reported size is different between
WindowMetrics#getSize and Display#getSize and provide a sample
code to transform between usages.

Test: build & run
Bug: 128338354
Change-Id: I06aee9aaf903c3864fbb0fe89ea1d3e15506fe1c
(cherry picked from commit 2de0f42d50)
2020-02-24 07:08:09 +00:00
lesl
7a0c18c884 wifi: correct API name
The API:isFeatureSupported accept one or combination
of required features, update the jave doc & rename to areFeaturesSupporte

Bug: 149871866
Test: make docs frameworks/base/wifi/
Test: atest frameworks/base/wifi/tests/
Merged-In: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
Change-Id: I3bcbcfd04dced36b63436b5a96835fb0d8f35f3b
(cherry picked from commit dd8f942e81)
2020-02-24 06:28:58 +00:00
lesl
b17fc5d2e5 wifi: Revise java doc to add more explanation
1. restoreSoftApBackupData - document return value
and behavior if input is invalid
2. onCapabilityChanged - document behavior on register

Bug: 149871866
Test: make docs frameworks/base/wifi/
Mergrd-In: I02085e614a35b0bf07dbc47cffe7255555a0deb8
Change-Id: I02085e614a35b0bf07dbc47cffe7255555a0deb8
(cherry picked from commit dba305d37d)
2020-02-24 06:24:36 +00:00
Jack Yu
227ae85ddf Merge "Added bands from HAL 1.5" into rvc-dev 2020-02-24 05:40:49 +00:00
Charles Chen
1ac295ec08 Revert "Revert "Always get window insets from server""
This reverts commit 288e1bd045.

The previous implementation of computeWindowInsets is to
use last view from WM#addView, which may be invalid because
the last added view is removed and throws NPE when getting
property from the invalid view.
In this CL, we change the approach to always obtain window
insets from server.

fixes: 148789183
fixes: 149480577
Test: atest FrameworksCoreTests:WindowMetricsTest
Test: atest WindowMetricsTests

Change-Id: I6db5970d14ac9eebe0ab0df65cb1300515ad1754
(cherry picked from commit 6bb2d4f68c)
2020-02-24 03:46:51 +00:00
Trung Lam
3ef69f7e7f Delete package directory when app is uninstalled.
Test: Built and test on device.
Bug: 149946247
Change-Id: I57cbd3d853dad7a4d291427c53e0ef1b61274893
2020-02-23 19:12:51 -08:00
Julia Reynolds
229684b01a Address api feedback
Test: make
Fixes: 150008110
Change-Id: I5163cd49b11444e856cd9bd8ae2fd634da5f6a39
2020-02-23 20:44:26 -05:00
Jackal Guo
a67e14a6e1 Correct the bound if it's from outside of screen
Use getBoundsOnScreen without clipToParent instead since the bounds
may be out of screen.

Bug: 149539748
Test: a11y CTS & unit tests
Change-Id: Ie2107f58a7cc5f0b76e4a468cfb295c410dbb559
Merged-In: Ie2107f58a7cc5f0b76e4a468cfb295c410dbb559
(cherry picked from commit 9a341abdb4)
2020-02-24 01:28:21 +00:00
David Su
692a70d570 Wifi: Clean up APIs
- Made WifiInfo.Builder public
- Made ScanResult::new public
- Added public getters for WifiNetworkSuggestion

Bug: 149912516
Test: compiles
Test: Will add CTS for new WifiNetworkSuggestion APIs
Change-Id: I868477f0d149cb4e96f9313dbaa1ef66d4723309
2020-02-23 19:12:11 +00:00
Gavin Corkery
ab2544c10b Change checkpointing retry count to 2
Changing the checkpointing retry count to 2 resolves
issues of apex sessions being reverted if a hard reboot takes
place during a userspace reboot. Previously, a revert would
occur based on what stage of the boot sequence a hard reboot
took place in, now the revert will not occur at all.

Bug: 148270009
Test: atest ApexRollbackTests
Change-Id: Idce2d60f0a25f01a7d081420c937e5c9cec12e5d
2020-02-23 18:30:35 +00:00
Gavin Corkery
7c46fe3663 Ensure staged rollback status is logged on boot
In the cases that a logging parent cannot be found for any packages
in a rollback, the watchdog event should still be logged. Ensure
that the state of a rollback is captured on boot by removing the
condition of only saving a rollback id if there is a logging package,
and by adding a symbolic null package to the list of logging packages
on boot if none were found. Expand tests to verify.

Bug: 149957011
Test: atest StagedRollbackTest
Test: atest NetworkStagedRollbackTest
Change-Id: I56f8afb6730e59fbe67ea8747e0da3aca19a0d8a
2020-02-23 17:23:23 +00:00
Mike Ma
5510f7c8cd Add text dumpsys section to incidentd
Enable Incidentd to dump any existing dumpsys section in plain text
(as dumpsys.proto), only in eng or userdebug build. This is for a
few dumpsys services that are prohibitively expensive to migrate to
protobuf dumpsys or will undergo a major rewrite (thus render the
previously defined proto completely useless).

Bug: 149816498
Bug: 146085372
Bug: 146086519
Test: $ incident -p EXPLICIT 4000 4001
Change-Id: I0693d9bace0055cfeb63d7c8d48995d57dc0b733
(cherry picked from commit 95ba73f9c9)
2020-02-23 08:05:42 +00:00
Winson
8359e40c92 Fix PackageSetting isUpdatedSystemApp and SYSTEM_EXT rescan
When updating a PackageSetting, the existing one was not
being considered, causing them to be assigned incorrectly
on re-scan/re-install.

The updatedSystemApp state was also being toggled incorrectly,
as the previous code relied on the fact that a new Package
object was created, implicitly resetting the fields as it
was a new Java object with re-initialized fields.

This disables the field explicitly when re-enabling a system app,
as this action re-uses the existing PackageSetting that was
previously associated with the /data copy.

Also fixes scanning as SYSTEM_EXT when the disabled system
package was also SYSTEM_EXT.

Bug: 135203078
Bug: 149994952

Test: atest NexusLauncherTests:com.android.quickstep.StartLauncherViaGestureTests

Merged-In: I81d126efc144725cac8af6810d33952295b375e1
Change-Id: I81d126efc144725cac8af6810d33952295b375e1
2020-02-22 20:57:31 -08:00
Jack Yu
16e5d2a0f3 Added bands from HAL 1.5
Test: Manual
Change-Id: Ib155ee5c2f660c8866a7be91e7f62a8c90e78d8e
Fix: 149475773
2020-02-22 17:42:28 -08:00
Svet Ganov
02fdd34057 Use context for correct display in the renderer service
bug:149958394

Test: atest android.autofillservice.cts.inline.InlineLoginActivityTest

Change-Id: I4bcdca8188b9b97076c4146f0f9eddffe3e1b3b1
(cherry picked from commit 2aa4f10996)
2020-02-22 19:54:59 +00:00
Martijn Coenen
1ebebfd960 Don't crash system_server if fixupAppDir() fails.
Reason why it fails TBD, but either way system_server shouldn't crash.

Bug: 149975102
Test: no crash
Change-Id: Iee3b8a66663179030dd7313ec68e72666b2000f0
2020-02-22 17:59:36 +00:00
Anton Hansson
b629d69db0 Merge "Re-submit "Create all variants of stubs for wifi"" into rvc-dev 2020-02-22 17:25:40 +00:00
Etan Cohen
15fcce4405 [WIFI][SysUI] Update QS iconography for Wi-Fi
Update for:
- No internet: show SSID, show pie + "x" for real bars
- Captive portal: show SSID, same icon as before (empty pie + '?')
- No connection: empty pie

Bug: 136473125
Test: visual test in all above scenarios + normal connectivity
Change-Id: I2f302874de35e83f9530427733d8518becddfa4b
2020-02-22 17:00:08 +00:00
Nate(Qiang) Jiang
8429500539 Override hashcode, equals function for PnoNetwork
Bug: 148535554
Test: atest android.net.wifi
Change-Id: I9f6ea75966b97ac67234b73a8198492a8edfacb2
2020-02-22 15:55:54 +00:00
Joshua Duong
f24fb19dbf [adbwifi] Make AdbManager changes for adb over WiFi.
This CL has a couple of notable changes:
- Add communication layer between adbd, system server, and Settings UI
- Add system notification (Wireless debugging connected) when at least
  one device is connected.
- Add trusted networks (BSSID) to the keystore.
  - Changed the keystore format to:
    <keyStore version="1">
    <adbKey ... />
    <wifiAP ... />
    </keyStore>
 - Currently, trusted networks don't have a expiration time. Also, only
   way to clear it is by blowing up the keystore (revoke permissions).
- Add pairing mechanism:
  - Using libadbwifi_pairing_connection C++ library to pair a device
    using SPAKE2 protocol over TLS.
  - Register MDNS service for client discovery.
- Removed ability to ctl.start/stop adbd from UsbDeviceManager
  - AdbService now controls when to do this

Bug: 111434128, 119490154, 119492574

Test: Manual. From developer options:
1) USB debugging off, WiFi Debugging off
- Ensure both transports are disabled by trying to connect via WiFi and
USB.
2) USB debugging on, WiFi Debugging off
- Connections via USB are available, WiFi is disabled
3) USB debugging off, WiFi Debugging on
- Connections via WiFi are available (IP + port), USB is not available
4) USB debugging on, WiFi Debugging on
- Check both transports work

Change-Id: I9f87679d195da99a55b6faf7131da1f1af65fe01
Exempt-From-Owner-Approval: approved in aosp master
(cherry picked from commit a5969b5a1d)
2020-02-22 15:15:10 +00:00
Anton Hansson
6656c50d92 Re-submit "Create all variants of stubs for wifi"
Use sdk_version: module_current instead.

This reverts commit d20f03011f.

Bug: 147768409
Test: m
Test: build/soong/soong_ui.bash --make-mode dist ANDROID_BUILDSPEC=vendor/google/build/app_build_spec.mk
Exempt-From-Owner-Approval: clean cp
Change-Id: I36cf007a4813027721dfb6389e10cf95085f85e4
Merged-In: I36cf007a4813027721dfb6389e10cf95085f85e4
(cherry picked from commit 21f0ed2a0a)
2020-02-22 11:05:37 +00:00
Anton Hansson
a1fb6f5b1d Remove FrameworksCoreTests dep on framework-all
Make it use framework-statsd directly rather than framework-all.
Note that this is a problem on its own: the problematic tests
should be separated from the monolith tests and moved into the statsd
dir.

Also clamp down on framework-all visibility to avoid anyone else
addinga dependency on this problematic library.

Bug: 149928788
Bug: 149906971
Test: m
Exempt-From-Owner-Approval: clean cp
Change-Id: Ic819b90911220032130c3f8a01b612edd7fa3ecc
Merged-In: Ic819b90911220032130c3f8a01b612edd7fa3ecc
(cherry picked from commit 7c2f73b4ac)
2020-02-22 11:01:41 +00:00
Wonsik Kim
4a728ca2e5 media: fix MediaCodecTest#testException
Bug: 150004878
Test: atest CtsMediaTestCases:MediaCodecTest
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I779aa12bea633cee755aba46231e1b8c8e67b2cd
Merged-In: I779aa12bea633cee755aba46231e1b8c8e67b2cd
(cherry picked from commit 253f0046ba)
2020-02-22 08:23:30 +00:00
Yi Jiang
3f9ddc30d9 Merge "Ensures only one result is logged per attention check" 2020-02-21 23:41:27 +00:00
Andy Hung
a4a2a71ad3 Merge "media: Do not use forward declaration for AudioPlaybackRate" 2020-02-21 23:37:34 +00:00
TreeHugger Robot
d566d02ff3 Merge "Rename full and reduced scale configs" 2020-02-21 23:28:35 +00:00
Evan Severson
2aa3230ca0 Merge "Add method to give a permission revoke a reason" 2020-02-21 23:16:09 +00:00
Julius D'souza
4358010076 Merge "Add background thread notes for package restriction serialisation." 2020-02-21 23:08:52 +00:00
Ashwini Oruganti
b06c32f68a Merge "Resolve conflicting values of usesCleartextTraffic for shared processes" 2020-02-21 23:07:41 +00:00
Winson Chung
c4d8bcad86 Merge "Ensure task description icon resources are loaded from the right package" 2020-02-21 22:59:44 +00:00
Ned Burns
6a989fbffe Merge changes from topic "migrate-dump"
* changes:
  Migrate DumpController -> DumpManager
  Add service for dumping at NORMAL priority
  Introduce DumpManager
2020-02-21 22:54:49 +00:00
Automerger Merge Worker
904621ba1b [automerger skipped] Merge "Expose getLteOnCdmaMode as isGlobalModeEnabled" am: b3a20cbfff am: 96c4a23176 am: 435c4d6186 -s ours
am skip reason: Change-Id I2c5727bcc5fd0263acfe669177f43fda17650f41 with SHA-1 0b1078bd3c is in history

Change-Id: I9727e194c6785ab16204969b796afa8e8f0d3c7f
2020-02-21 22:54:23 +00:00
Automerger Merge Worker
435c4d6186 Merge "Expose getLteOnCdmaMode as isGlobalModeEnabled" am: b3a20cbfff am: 96c4a23176
Change-Id: Icc6c25c8483f86d92d555e465baaba460a395f08
2020-02-21 22:41:37 +00:00
TreeHugger Robot
781185099b Merge "Do not attempt to special case uncompressed font assets." 2020-02-21 22:35:55 +00:00
TreeHugger Robot
fdc11c9ece Merge "Revert "Revert "Add feature ids to system server services that requset location.""" 2020-02-21 22:27:18 +00:00
Colin Cross
9a9e9a59a5 Merge "Revert "Exempt-From-Owner-Approval: Workaround for build break on WifiNl80211Manager"" 2020-02-21 22:27:01 +00:00
Automerger Merge Worker
96c4a23176 Merge "Expose getLteOnCdmaMode as isGlobalModeEnabled" am: b3a20cbfff
Change-Id: I4d7346e1f28cc5ca91838199da05c6c7c5536f72
2020-02-21 22:23:21 +00:00
Blake Kragten
e4383d8999 Merge "GnssMetrics" 2020-02-21 22:15:29 +00:00
Blake Kragten
75a0184bb7 Merge "Enhanced Connectivity Dev Toggle" 2020-02-21 22:14:23 +00:00
Sarah Chin
b3a20cbfff Merge "Expose getLteOnCdmaMode as isGlobalModeEnabled" 2020-02-21 22:09:16 +00:00
TreeHugger Robot
0526d43236 Merge "Tuner JNI: use linearblock for media event" 2020-02-21 21:57:07 +00:00
Kevin Chyn
df244da79a Merge changes from topic "biometric-and-credential"
* changes:
  Always start AuthController
  Clean up biometric system server
2020-02-21 21:37:14 +00:00