Commit Graph

640958 Commits

Author SHA1 Message Date
Martijn Coenen
7ced33fef8 Only allow the system to bind to the hotword detection service.
The hotword detection service is an isolated service which we want to
isolate from the rest of the system as much as possible. We don't want
to allow anybody but the system to bind it, not even its enclosing
application. For now special case the hotword detection service, until
we come up with a more generalized solution in T.

Bug: 181508704
Bug: 185746653
Test: local
Change-Id: Iea41383304e2632ff334a9719598db7510226c07
2021-04-19 10:29:51 +02:00
lesl
f4c0625458 wifi data usage: support to get carrier merged wifi network.
Carrier merged wifi network is a specific cerrier wifi network
which provides the same user experience as mobile.

To support data usage accounting for carrier merged wifi,
the change provide several APIs in NetworkTemplate:

  1. extend buildTemplateWifi so it could be used for matching
     wifi networks with subscriber Id (IMSI).
  2. add buildTemplateCarrier to let
     NetworkPolicyManagerService creates a single policy for
     a given carrier regardless of network type.

Bug: 176396812
Test: atest -c NetworkTemplateTest
Test: atest -c NetworkStatsServiceTest
Test: Manual Test with test code on mobile and wifi network.
      1. buildTemplateCarrier includes the carrier wifi and
         mobile usage
      2. buildTemplateWifi can get carrier wifi usage and support the
         filter via subscriberId

Change-Id: I667b4adf3eec0bdd3a7385109dd8c1fae8e7be32
2021-04-19 16:13:27 +08:00
Ryo Hashimoto
661c49c1cb Delete lib_alarmManagerService_native
This is no longer used.

Bug: 182446785
Test: build
Change-Id: I092c90f62e462a88d8a9799483cea03921de58c7
2021-04-19 08:12:10 +00:00
v-qianliguo
60db8208a8 Add missing synchronized(mLock) into Autofill onServiceDied
Test: N/A
Signed-off-by: v-qianliguo <v-qianliguo@xiaomi.com>
Merged-In: Ic16ed5e4ac507f02e56f9e9cd94d4b4cfb028d69
Change-Id: I5c9640ab0695386effdbaaad7b72e143668af876
2021-04-19 08:04:14 +00:00
Tiger Huang
55581522ea Stop processing if the new control equals the current one
InsetsSourceConsumer#setControl compares the identities between the new
control and current one. If they are the same, the function stops
processing. However, the instance of the control returned from relayout
will always be different, which makes setControl process more than
expected.

This CL overrides InsetsSourceControl#equals, and use it to decide if we
should do further processing in setControl.

Bug: 185193241
Fix: 185460364
Test: steps in the bug
Change-Id: If347df353202ef441b57dabccfd0ef254ec72477
2021-04-19 15:33:10 +08:00
shubang
ccb090feaf Media metrics APIs: changes based on API review
1. Added the IntDef annotation for PlaybackStateEvent#getState
2. Made event construtors private go/android-api-guidelines#parcelable-creator.
3. Improved the JavaDoc of time-related methods
4. Added the JavaDoc for TrackChangeEvent#getTrackType
5. Made MediaMetricsManager final

Fix: 183940704
Fix: 185121406

Test: atest android.media.metrics.cts
Change-Id: I9f1edc23b4e78e3ebee358945ce16539b83e1830
2021-04-19 00:16:04 -07:00
Kyunglyul Hyun
b4e519caf4 Revert^2 "Change PlaybackState#isActiveState to isActive"
This reverts d077dbf438
because the issue was resolved.

Bug: 161331016
Test: m lint-check
Change-Id: Ic4a2025407caeb6d41db3b84a293dc249f77ad0b
2021-04-19 07:11:57 +00:00
TreeHugger Robot
aa36363f72 Merge "Add missing synchronized(mLock) into Autofill onServiceDied" into sc-dev 2021-04-19 06:53:42 +00:00
Arc Wang
a3b332e650 Merge "Tweak UI of UsageProgressBarPreference" into sc-dev 2021-04-19 06:33:01 +00:00
Yi Jiang
7804da16f5 Merge "Fixes metrics collection in RRMS." into sc-dev 2021-04-19 06:25:54 +00:00
lpeter
afef0beebf Add TestApi to trigger the onDetect function of HotwordDetectionService
Bug: 184685043
Test: atest CtsVoiceInteractionTestCases
Test: atest CtsVoiceInteractionTestCases --instant
Change-Id: I531c1229de908c64e29f1976bd2fd1e70e545853
2021-04-19 14:22:38 +08:00
Chiachang Wang
59fc7fa52a Merge "Update the permission check for dump" am: 32032cbfe3 am: 9192f34c81 am: 44cc2f0411
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1678985

Change-Id: Ie43488b368a8bae1c75b4228f2214dd540a9b8f7
2021-04-19 06:20:15 +00:00
Remi NGUYEN VAN
3e8c795414 Merge "Add a test for ParseException" am: 68090c1373 am: ae15a30cf0 am: cbdfe0587e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675625

Change-Id: I303ef3cdfaddf6b7a4aea661dbbceb7ab8d3eeca
2021-04-19 06:19:46 +00:00
Chiachang Wang
44cc2f0411 Merge "Update the permission check for dump" am: 32032cbfe3 am: 9192f34c81
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1678985

Change-Id: Id4c40e177621f39174cd4cf6cd39cc40033302b8
2021-04-19 06:18:01 +00:00
Rhed Jao
b8a482b0f1 Merge "Apply package visibility to the LauncherApps#isActivityEnabled" into sc-dev 2021-04-19 06:02:09 +00:00
Chiachang Wang
9192f34c81 Merge "Update the permission check for dump" am: 32032cbfe3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1678985

Change-Id: I48703e74bea2a878ded3850dc5be6ec12e5c8e87
2021-04-19 05:52:38 +00:00
Riddle Hsu
62d25e0eb9 Merge "Make detached task trimmable" into sc-dev 2021-04-19 05:49:08 +00:00
Remi NGUYEN VAN
cbdfe0587e Merge "Add a test for ParseException" am: 68090c1373 am: ae15a30cf0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675625

Change-Id: I17a061ba6395b03250bca4162efe2d439113e1e6
2021-04-19 05:42:08 +00:00
Chiachang Wang
32032cbfe3 Merge "Update the permission check for dump" 2021-04-19 05:37:09 +00:00
Amit Mahajan
a5f3d1398c Merge "Change osAppId from String to byte[] to match specs." into sc-dev 2021-04-19 05:23:25 +00:00
Ahaan Ugale
1281143a36 Merge "AutoTranslate: Pad view text for compatibility reasons." into sc-dev 2021-04-19 05:19:53 +00:00
Remi NGUYEN VAN
ae15a30cf0 Merge "Add a test for ParseException" am: 68090c1373
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675625

Change-Id: I2ef380a3b4c2f0170c77baa11ca3cbcf10b21bed
2021-04-19 05:19:30 +00:00
Remi NGUYEN VAN
68090c1373 Merge "Add a test for ParseException" 2021-04-19 04:57:31 +00:00
Huihong Luo
81d78b91f9 Merge "Webview overlay support" into sc-dev 2021-04-19 04:45:52 +00:00
Treehugger Robot
6b19f09dd6 Merge "Move CtsHostsideNetworkTests to group presubmit-large" am: 29d0c73416 am: 73c7bd3f55 am: ac3448dc24
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673168

Change-Id: Iea765941d787c977eb638e18029729d1a478ff77
2021-04-19 04:15:40 +00:00
Joanne Chung
476cacb011 Add missing synchronized(mLock) into Autofill onServiceDied
This is an internal fix to avoid merge conflict for AOSP change. The
developer change is aosp/1607953

Bug: 185728458
Test: manual

Change-Id: Ic16ed5e4ac507f02e56f9e9cd94d4b4cfb028d69
2021-04-19 12:04:47 +08:00
Treehugger Robot
ac3448dc24 Merge "Move CtsHostsideNetworkTests to group presubmit-large" am: 29d0c73416 am: 73c7bd3f55
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673168

Change-Id: I05890174bca5e9e5bcd9bfa4f76e2912e860f821
2021-04-19 03:54:02 +00:00
Alex Buynytskyy
910f855fe0 Merge "API feedback: make DataLoader API System." into sc-dev 2021-04-19 03:40:44 +00:00
Treehugger Robot
73c7bd3f55 Merge "Move CtsHostsideNetworkTests to group presubmit-large" am: 29d0c73416
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673168

Change-Id: If9d47012f075bed0adaf9ef2b88c5c6bd40637b1
2021-04-19 03:32:21 +00:00
Josh Tsuji
d5da89479e Use the existing wallpaper command API to send wake/sleep events to the wallpaper.
This is already used for similar events such as icon drops and user taps. Using it to indicate that the user has woken/slept the device (and passing along location information) makes sense!

This was previously rolled back since WallpaperManager can be null in Car environments. This CL now checks if WallpaperManager is null.

Bug: 169693662
Test: locally with modified wallpaper, it receives events
Change-Id: Ie9d21b4ff4a1edf871540481bc0c4216ed686b7f
2021-04-18 23:12:02 -04:00
Chiachang Wang
d0365eb2d7 Update the permission check for dump
ServicePermissionsTest#testDumpProtected expects to see nothing
from dump() if the caller does not have the required permission.

After the refactor the ConnectivityService#dump(). It does not
leak real information for those callers without permission but
show the title of dumpsys, i.e. it shows "DUMP OF SERVICE HIGH
connectivity". This breaks the test since the test expects to
see nothing.

Move the permission check to the front of dump call stack since
there is no way to call other private dump related methods.

Bug: 185425662
Test: atest android.security.cts.ServicePermissionsTest
Test: adb shell dumpsys connectivity
Change-Id: I173c968a4f1c4d6f618ed87725a6ccda8d309988
2021-04-19 11:09:15 +08:00
Treehugger Robot
29d0c73416 Merge "Move CtsHostsideNetworkTests to group presubmit-large" 2021-04-19 03:05:59 +00:00
Shawn Lin
dfdfad1af9 Merge "Reset the layer of the nav bar when restoring it back" into sc-dev 2021-04-19 03:01:26 +00:00
easoncylee
25a14aff21 Move CtsInstalledLoadingProgressHostTests to group presubmit-large
The test config takes longer than 15mins to run. Move it to a dedicated
group for running slow presubmit Test Mapping test.

Some more context is in the referenced bug, e.g, b/174495337
The group will work exactly the same as presubmit for now.

Bug: 174654670
Bug: 174495337
Test: none
Change-Id: Id12caa8a87b6be142d49e8e871c6edb01ffbab6a
2021-04-19 03:00:20 +00:00
Zoey Chen
33ee73cd9e [ANAPIC Review] Change the type of List by ANAPIC review
- Use List<Byte> since using uint8_t in radio

Bug: 183738486
Test: make
Change-Id: I5a52bc20ebd9c5ce000abd8588f2969d84c6bcd0
2021-04-19 11:00:03 +08:00
Charles Chen
07d522f307 Merge "Fix WindowContext cannot receive global config" into sc-dev 2021-04-19 02:20:49 +00:00
Wei Sheng Shih
9dea87c0d1 Merge "Starting window performance tuning for binder block." into sc-dev 2021-04-19 01:33:24 +00:00
TreeHugger Robot
4a8009373d Merge "Revert "Revert "Increase MAX_ATTRIBUTIONS to 10000""" into sc-dev 2021-04-19 01:15:35 +00:00
Mark Hansen
89a5375d83 Bugfix: Make InsetsController dump() respect prefix
Before, the prefix was printed on a blank line above InsetsController, this wasn't intended.

BUG=140002885

Change-Id: Ife14e60400dc73232302a797b6b9b8f4d201535f
2021-04-18 23:51:58 +00:00
Sarah Chin
a3c90ed855 Merge "Remove checks for system_process in TelephonyManager" into sc-dev 2021-04-18 22:46:36 +00:00
Changyeon Jo
2ea54f48b7 Add CarEvsService permissions
This change adds privileged permissions to use CarEvsService to the
allowlists of CarShell and EmbeddedKitchenSink packages.

Bug: 179508501
Test: atest CarEvsManagerTest -c
Change-Id: Ia84c36e0305de5a7fcc282519694896d131253dd
Merged-In: Ia84c36e0305de5a7fcc282519694896d131253dd
(cherry picked from commit d575da1167)
2021-04-18 12:30:55 -07:00
Alex Buynytskyy
e7339d98df API feedback: make DataLoader API System.
Bug: 184713911
Fixes: 184713911
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I00107102eb2e98004ed0a5db2a318a052ab60220
2021-04-18 15:48:21 +00:00
Bill Yi
2685813d1f [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a2927ef378 -s ours am: 441d400dbd -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14229309

Change-Id: I0348336d6b20b503dc2aaff657e2d6de966a0f43
2021-04-18 15:47:45 +00:00
Bill Yi
441d400dbd [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a2927ef378 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14229309

Change-Id: I4e242829c6b2087e509561b449e7fa1aec33c3e6
2021-04-18 15:23:36 +00:00
Jeff Sharkey
655d691d65 Add missing Bluetooth API permission enforcement.
Recent work has been using Error Prone rules and annotations to
reflect the current state of permission enforcement across the
Bluetooth stack, and we're now in a position were we can add new
permission enforcement that had been missing.

We've currently standardized on saying that APIs that return device
or Bluetooth state information (without sharing details about any
particular remote Bluetooth device) do not need to be permission
protected.

Bug: 183626724
Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true
Change-Id: I37a9e03ecdca6f7a6eb9d7f094e2f95a97036612
2021-04-18 07:58:11 -06:00
TreeHugger Robot
16be7b8d53 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 721ed49d17 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14227832

Change-Id: I9d28c6b77627377a42db5c1e548aa3c207491f19
2021-04-18 07:49:19 +00:00
TreeHugger Robot
1f23627e8a [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: eb2fa404ef -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14227805

Change-Id: I768de455e87002a4421ffa3ab9355fe593806f0a
2021-04-18 07:49:08 +00:00
TreeHugger Robot
b7f2167d3e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 41a329d1a0 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14227727

Change-Id: I43f337d10d8108ed61836897824e7cf04f32f1e3
2021-04-18 07:48:50 +00:00
TreeHugger Robot
8d054ea5bf [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod am: 79ad3070d5 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14227728

Change-Id: I3c70f4698901df24a1ff842c945c27f267d4ebbb
2021-04-18 07:47:54 +00:00
Bill Yi
a2927ef378 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1f6ec6ab6ce85a3a54c06968988a1b468f087e88
2021-04-18 07:40:12 +00:00