Commit Graph

468813 Commits

Author SHA1 Message Date
Feng Cao
abd6b072ff Refactor the InputMethodService to move inline suggestion stuff to a separate class
Test: manual
Bug: 149442582

Change-Id: I71a3cf2ddd24dcf79709ec89136ad7609089f54c
2020-02-14 23:42:20 -08:00
Sergey Nikolaienkov
b4b24438bc Merge changes from topic "modularizing_sysui"
* changes:
  Introduce BubbleModule and KeyguardModule
  Introduce StatusBarModule
  Introduce StatusBarPhoneModule
  Expand NotificationsModule
2020-02-15 07:19:17 +00:00
Feng Cao
0fd5641dd7 Add an API to allow AugmentedAutofillService to request an autofill.
Test: manual verification
Bug: 149531989

Change-Id: I3b7ade5fb57da344379378b4c50e67b4cbad213c
2020-02-14 23:02:49 -08:00
Treehugger Robot
b6589dc1f6 Merge "Catch correct exception for adding route fail" am: c2050ac731 am: 55c0f41695
Change-Id: Idd25323e01d87b81fd1021bcd0ea29a2468eedaa
2020-02-15 06:54:01 +00:00
Treehugger Robot
55c0f41695 Merge "Catch correct exception for adding route fail" am: c2050ac731
Change-Id: Ic3c94ed56bf31b404bf0836e676a13f1e47edd3b
2020-02-15 06:33:04 +00:00
Treehugger Robot
c2050ac731 Merge "Catch correct exception for adding route fail" 2020-02-15 06:20:53 +00:00
Oscar Azucena
90cd480144 Added recovery for affinities on audioserver crash
Added recovery for Uid and UserId device affinties on audioserver crash.

Bug: 148154786
Test: m -j
Test: setup device affinities and crash audioserver.
Change-Id: Iafb19d82b737e8f1f0d83f234112c016c224de17
2020-02-14 22:14:55 -08:00
Alec Mouri
b4caaafe01 Merge "[libandroid_graphics] Remove last libgui dep" 2020-02-15 06:06:49 +00:00
Jing Ji
6e721e1103 Fix spurious "Timeout waiting for provider"
There is a race that if two clients are acquiring the same
content provider at the same momment, the second one would
create a new ContentProviderRecord and then start a new process.

Bug: 148953992
Test: Manual
Change-Id: I3e95be32208a0869dc0b399da70f767abdd76fb4
2020-02-14 21:52:20 -08:00
TreeHugger Robot
348ec3c12f Merge "Fix invalid launch state reported to "am start -W"" 2020-02-15 05:47:46 +00:00
hughchen
6ab62ca6a7 Add new api for output switcher
This CL include following change:

- Add addDeviceToPlayMedia() to let MediaDevice can play current media
  together.
- Add removeDeviceFromMedia() to let MediaDevice stop play media.
- Add getSelectableMediaDevice() to get the MediaDevice list that can be
  added to current media.
- Add adjustSessionVolume() to let output switcher to change the volume
  of RoutingSession.
- Add getSessionVolumeMax() and getSessionVolume() to get max and
  current volume of session.
- Add ShadowRouter2Manager.java to implement test case.
- Add test case.

Bug: 142912244
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I1bda5a1c3a788778c384adce851fc2ffa8c1aa73
2020-02-15 13:45:01 +08:00
Connor O'Brien
5065db0572 Use bpf data when available for per-UID cpu stats
Update KernelCpuUidTimeReader and its subclasses to support reading
frequency, active & cluster times from BPF maps rather than proc files
on devices that support this approach. BPF-based accounting offers
improved accuracy as it can detect every context switch, whereas the
proc files attribute a full tick period to whatever happens to be
running when the tick occurs.
Add a KernelCpuUidBpfMapReader class modeled on
KernelCpuProcStringReader, with singletons for reading each distinct
set of data. These follow the locking approach used by
KernelCpuProcStringReader to ensure thread safety, but they collect
data by calling libtimeinstate functions via JNI rather than reading
text from proc files. They also provide a getDataDimensions() function
to retrieve information currently provided by the header rows of the
proc files, such as the list of available freqs or the number of cores
on each cluster.
Extend the KernelCpu*TimeReaderTest classes to exercise the BPF path
for each reader class, and add a KernelCpuUidBpfMapReaderTest modeled
on KernelProcStringReaderTest.

Bug: 138317993
Test: KernelCpu*TimeReaderTests and KernelCpuUidBpfMapReaderTest pass
Test: no regressions in BatteryStatsTests
Change-Id: Ie7c0b11a47289e16f72fd6868de4185e858c7e4f
Signed-off-by: Connor O'Brien <connoro@google.com>
2020-02-14 21:01:45 -08:00
Oscar Azucena
4e4d6e3b85 Remove user id based audio captured API.
Removed recently added user id based routing for audio playback capture.
The original goal of the user id based routing was for the routing to be
controlled by audio policy and to controll where audio from a user
could play. The audio playback capture was added to match similar API
provided for audio playback capture based on application's uid.
Currently, there is no appropiate use case for capturing based on user
id. While this could prove useful in the future the appropiate use case
research must be completed. Updated comments for audio policy user id
based routing.

Bug: 149419551
Test: atest AudioPlaybackCaptureTest
Test: atest
com.google.android.gts.audio.AudioHostTest#testUserIdDeviceAffinity

Change-Id: I174cba618c4f66d11185e7ab5630094b4a8cb35b
2020-02-14 20:59:38 -08:00
Stanislav Zholnin
4b7fd29ff1 Merge "Stack Trace sampling and reporting." 2020-02-15 04:53:11 +00:00
TreeHugger Robot
9a5d3ad5e0 Merge "Handle ALL_OPs case in ModeCallBack.toString" 2020-02-15 03:56:43 +00:00
Chiachang Wang
3b9e7d958c Merge "Update state in NetworkInfo when network resumes" am: a853d2dc37 am: 29a6b4f42f
Change-Id: I12a729034e65d94f133cd3f3122064071cc6867e
2020-02-15 03:41:46 +00:00
TreeHugger Robot
8283e0227c Merge "Generate fallback permission state if it is missing." 2020-02-15 03:38:47 +00:00
markchien
d72cf2cd33 Catch correct exception for adding route fail
Bug: 149535950
Test: OFF/ON hotspot
Change-Id: Ic52e2b2f3cec1a39a70302c41ab67ec1a1a55b1a
2020-02-15 11:35:00 +08:00
Chiachang Wang
29a6b4f42f Merge "Update state in NetworkInfo when network resumes" am: a853d2dc37
Change-Id: I26e4b318f7acacde38ee5cf0977fd63fc5567d79
2020-02-15 03:31:36 +00:00
TreeHugger Robot
6c376aae1e Merge "Add logging for pending restore nav modes" 2020-02-15 03:19:55 +00:00
Chiachang Wang
a853d2dc37 Merge "Update state in NetworkInfo when network resumes" 2020-02-15 03:16:31 +00:00
Feng Cao
35d9d4468e Remove inline suggestion styling API from the framework now that they are available in the support library
Test: build
Bug: 146454892

Change-Id: Idc7adf752c486b6f9ad684ffe2519eee45c4b8f7
2020-02-14 19:11:46 -08:00
TreeHugger Robot
80288de910 Merge "Add app badging to conversation icons" 2020-02-15 03:04:50 +00:00
Junyu Lai
a08cdb380e Merge "[SP16] Address comments on aosp/1172143" am: fc9e4fbc08 am: dfb6a0fdb9
Change-Id: Id6d4be756ec4bd6d3e9c7b8fa1d85b3bdc802a10
2020-02-15 02:51:23 +00:00
TreeHugger Robot
575d7ad93c Merge "Response and Dataset authentication via inline autofill." 2020-02-15 02:41:58 +00:00
Junyu Lai
dfb6a0fdb9 Merge "[SP16] Address comments on aosp/1172143" am: fc9e4fbc08
Change-Id: I9c826c08320e112466dea0d2628f3447ebcb7d02
2020-02-15 02:35:42 +00:00
TreeHugger Robot
d8c867b117 Merge "[HWUI] Remove libgui from libhwui's dependency list" 2020-02-15 02:21:42 +00:00
Junyu Lai
fc9e4fbc08 Merge "[SP16] Address comments on aosp/1172143" 2020-02-15 02:21:30 +00:00
TreeHugger Robot
805edec77d Merge "[HWUI] Remove references to gui/Surface." 2020-02-15 02:16:16 +00:00
Ruchir Rastogi
e449b0c185 Move statsd (and tests) to libbinder_ndk
Major changes include:
    - Removing unused permission checks within StatsService. These
      include ENFORCE_DUMP_AND_USAGE_STATS, checkDumpAndUsageStats,
      kOpUsage, and kPermissionUsage.
    - Converting from sp to shared_ptr
    - Using libbinder_ndk functions instead of libbinder functions
      (e.g. for installing death recipients, getting calling uids, etc.)
        - New death recipients were added in StatsService,
          ConfigManager, and SubscriberReporter.
    - Using a unique token (timestamp) to identify shell subscribers
      instead of IResultReceiver because IResultReceiver is not exposed by
      libbinder_ndk. Currently, statsd cannot detect if perfd dies; we
      will fix that later.

Bug: 145232107
Bug: 148609603
Test: m statsd
Test: m statsd_test
Test: bit stastd_test:*
Test: atest GtsStatsdHostTestCases
Change-Id: Ia1fda7280c22320bc4ebc8371acaadbe8eabcbd2
2020-02-14 18:07:37 -08:00
Junyu Lai
be15d2d70f Merge "[SP17] Wait for stats providers to report stats update" am: 1e47a3e71d am: 9262c04be3
Change-Id: I4b5c9e1cca7641b786e118ff979b33b25394fa3e
2020-02-15 02:03:52 +00:00
Calin Juravle
2d5242b680 Merge "Pass system server class loader context when asking GetDexOptNeeded" am: d42527b844 am: 7d3380d672
Change-Id: I14ce3011adbabfbe1c10e31a4e0fd16fb1a4c608
2020-02-15 02:03:14 +00:00
Yu-Han Yang
326b8ecf17 Merge "Add gnssSetCapabilitiesCb_2_1" 2020-02-15 01:59:43 +00:00
xshu
39bfd93034 Bucket channel frequency on device
Instead of logging the raw frequency, log the pre-bucketed enum.

Bug: 144585569
Test: compile
Change-Id: I02ce4fe42969933f3edfa6c7a4534960cd7cedba
2020-02-14 17:56:22 -08:00
Sasha Kuznetsov
370e6599a1 Fix GnssManagerServiceTest
Test: atest GnssManagerServiceTest
Change-Id: I3c8be6d1ea95a2755a20442ac265f2b5f4e35159
2020-02-14 17:39:46 -08:00
Junyu Lai
9262c04be3 Merge "[SP17] Wait for stats providers to report stats update" am: 1e47a3e71d
Change-Id: I5e6a69fb50c9820f8b0a7e834608a32f651a860a
2020-02-15 01:38:09 +00:00
Calin Juravle
7d3380d672 Merge "Pass system server class loader context when asking GetDexOptNeeded" am: d42527b844
Change-Id: I3d8b53f7e039d8d6eb3c8cf7e9bf8e5662ccff49
2020-02-15 01:37:12 +00:00
Will Coster
22b21595af Merge "Add build target for permissions text file" 2020-02-15 01:36:30 +00:00
Ruchir Rastogi
ba5996060b Merge "Delete stats_event_list refs from statsd src" 2020-02-15 01:34:34 +00:00
Winson Chung
b0b3da6dc1 Add logging for pending restore nav modes
Bug: 137339600
Test: Just logging
Change-Id: Ibce0b9840c87c86622a0f56cea263aa196e4456b
2020-02-15 01:33:15 +00:00
Junyu Lai
1e47a3e71d Merge "[SP17] Wait for stats providers to report stats update" 2020-02-15 01:21:53 +00:00
Calin Juravle
d42527b844 Merge "Pass system server class loader context when asking GetDexOptNeeded" 2020-02-15 01:18:03 +00:00
TreeHugger Robot
a76b713592 Merge "Fixes AppsFilterTest system signature logic" 2020-02-15 01:15:51 +00:00
TreeHugger Robot
854f2ecb04 Merge "Enforce fs-verity support for first_api_level >= R" 2020-02-15 01:05:11 +00:00
Valerie Hau
a8fe842973 Fixing another crash when creating/updating BLASTBufferQueue
If the BLAST surface control was not returned, fail early instead of
trying to update the BLAST adapter

Bug: N/A
Test: build, boot, turn BLAST on, no crash
Change-Id: Ib921fdb8c5313519ff0b09304d1e0359fcc7c018
2020-02-14 17:01:55 -08:00
TreeHugger Robot
d836b829c2 Merge "Improve BaseBundle#kindofEquals" 2020-02-15 00:54:50 +00:00
TreeHugger Robot
3c9003980a [automerger skipped] Merge "Import translations. DO NOT MERGE" into stage-aosp-master am: e3640bbf00 -s ours
am skip reason: subject contains skip directive

Change-Id: Ifdba7fb804e995faa6df2e3b57a2b83e27c7e25b
2020-02-15 00:48:35 +00:00
TreeHugger Robot
e3640bbf00 Merge "Import translations. DO NOT MERGE" into stage-aosp-master 2020-02-15 00:44:55 +00:00
Ytai Ben-Tsvi
56a4ee86ea Enforce HAL callbacks
This has been added to make some HAL defects that have been observed
recently, with recognition continuing after a trigger, more visible.

Change-Id: Ifad568f973e0c619000b75e8f534ef480b10cbc8
2020-02-14 16:43:35 -08:00
Winson Chung
7473202167 Merge "Enabling logs for nav mode & sysui flag updates" 2020-02-15 00:40:42 +00:00