Commit Graph

631265 Commits

Author SHA1 Message Date
Yohei Yukawa
9416d8ded2 Merge "Add "cmd input_method tracing save-for-bugreport"" into sc-dev 2021-03-23 06:27:57 +00:00
TreeHugger Robot
76f3adb44f Merge "Refactor ServiceWatcher" into sc-dev 2021-03-23 06:23:33 +00:00
Kevin Chyn
e05766de24 Merge "2/n: Add UserAwareBiometricScheduler" into sc-dev 2021-03-23 06:23:30 +00:00
TreeHugger Robot
9081a441dc Merge "Shortcut integration with AppSearch (Part 5)" into sc-dev 2021-03-23 06:19:01 +00:00
Yohei Yukawa
948850fc81 Merge "Remove mis-specified @GuardedBy("mMethodMap")" into sc-dev 2021-03-23 06:01:38 +00:00
Kevin Chyn
3453a46d65 Merge "1/n: Use scheduleForSensor instead of directly accessing scheduler" into sc-dev 2021-03-23 05:53:07 +00:00
Chiachang Wang
346aaf46af Remove the hidden NetworkRequest usage
Constructor of JobStatus may update the network request in the
JobInfo parameter. NetworkRequest is moving into the incoming
connectivity module. The hidden methods and members usage will
not allowed anymore, so it requires to rebuild the network
request for any update in the network request. Expose a new
Builder constructor as a helper method to construct from an
existing JobInfo instance which will helpful for such cases
that need to clone the JobInfo and update only specific items.

Also, JobStatus which is inside the platform could not refer
to the hidden members or methods of classes in the connectivity
mainline module. Callers who want to construct a network
request should use the formal NetworkRequest.Builder. Update
the usage accordingly to resolve the hidden usage.

Bug: 172183305
Test: atest JobInfoTest
Test: atest com.android.server.job.controllers.JobStatusTest
Change-Id: Ifb74d44e29e13f0e3b995be638c5bfe435a09106
2021-03-23 05:38:50 +00:00
Felipe Leme
0b7567444c Merge "Added Warning about extra object allocation on SLog methods." into sc-dev 2021-03-23 05:32:14 +00:00
Adam He
476e44e1f9 Merge "Add API for TranslationContext" into sc-dev 2021-03-23 05:12:29 +00:00
Alex Buynytskyy
73d507a795 Merge "Unbind from DataLoader when not needed anymore." into sc-dev 2021-03-23 05:04:47 +00:00
Riddle Hsu
b3ba0074bf Merge "Only wait for significant windows to unfreeze display" into sc-dev 2021-03-23 05:02:25 +00:00
Jing Ji
1325fdd07a Merge "Close the GZIPOutputStream to release the deflater" into sc-dev 2021-03-23 04:31:00 +00:00
Kevin Chyn
7d11db35c9 2/n: Add UserAwareBiometricScheduler
Bug: 181984005
Test: atest com.android.server.biometrics
Change-Id: I67beecf1aee2631856da3541ca1e0d158050ac65
2021-03-22 20:51:26 -07:00
Kevin Chyn
38c3e3ad5e 1/n: Use scheduleForSensor instead of directly accessing scheduler
Minor cleanup that allows us to restrict access/usage of the scheduler
itself for cleaner and more robust future work. For example, if we
want to abstract the scheduler away from the AIDL provider.

Bug: 181984005
Test: atest CtsBiometricsTestCases
Change-Id: I5850cae1f30f9479a29565b7b7c0d43108d0f7bd
2021-03-22 20:51:26 -07:00
Soonil Nagarkar
c257baefb5 Refactor ServiceWatcher
Split it up into more generic and useable components that are not as
location specific.

Bug: 182491144
Bug: 181665909
Test: presubmits
Change-Id: I2d6d5e70328657a7430e170531402cb3acbed028
2021-03-22 20:27:31 -07:00
Wei Sheng Shih
964eafdccc Merge changes Id0cf1b23,I4df6891e,I759de2e1 into sc-dev
* changes:
  Add trace for tracking the performance of new starting window
  Force enable hardware accelerated for starting window
  Pre-draw AdaptiveIconDrawable and cache it before doFrame
2021-03-23 03:15:07 +00:00
TreeHugger Robot
16a52c7b66 Merge "Move FullScore to connectivity mainline module" into sc-dev 2021-03-23 03:08:49 +00:00
Jeff DeCew
2a12cfadb4 Merge "New MediaStyle template:" into sc-dev 2021-03-23 02:14:06 +00:00
Chiachang Wang
b8d5608a06 Merge changes I5ed1bc8b,Ie9e6af0e into sc-dev
* changes:
  Fix IpConfigStore dependencies on framework-connectivity
  Migrate hidden API in IpConfigStore to formal API
2021-03-23 02:11:34 +00:00
TreeHugger Robot
358a76f7e4 Merge "Reduce number of maximum clusters" into sc-dev 2021-03-23 02:04:10 +00:00
Frank Li
35dc633f46 Merge "[TL02]Remove hidden API usage of NetworkAgent" into sc-dev 2021-03-23 02:03:59 +00:00
lifr
03f6fd2052 [TL02]Remove hidden API usage of NetworkAgent
The connection service will become the mainline module.
Remove the hidden API usage of NetworkAgent.

Bug: 170598012
CTS-Coverage-Bug: 170598012
Test: atest FrameworksNetTests FrameworksTelephonyTests
      atest FrameworksWifiTests
Change-Id: I4e4040ae7f94bdf479c7df9ec2ffabafbe06331c
2021-03-23 02:01:38 +00:00
Alex Buynytskyy
cb163f9bb6 Unbind from DataLoader when not needed anymore.
+ simplify adding new callbacks on storage state
+ streamline lock story for ifs members

Bug: 183101753
Fixes: 183101753
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I86fffa7101eeb42ebccca67ae7f5d133c1ab9dfa
2021-03-23 02:01:06 +00:00
TreeHugger Robot
ad97628537 Merge "Update the fallback logic in BaseInputConnection#getSurroundingText()" into sc-dev 2021-03-23 01:42:32 +00:00
Jing Ji
af4dcf5792 Close the GZIPOutputStream to release the deflater
Bug: 183378494
Test: atest CtsDropBoxManagerTestCases
Test: atest FrameworksServicesTests:com.android.server.DropBoxTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest#testAnr
Change-Id: I3828ce4648feea5868445be800fdf10c87efde74
2021-03-22 18:34:06 -07:00
Yohei Yukawa
5735569904 Add "cmd input_method tracing save-for-bugreport"
This CL reworks our previous CL [1], which enabled "adb bugreport" to
include ime-tracing files into bugreport with some unpleasant
side-effect described in Bug 177462676.

Basically what this CL aims to do is to mirror my CL [2] for
InputMethodManagerService.  Instead of relying on heuristics, this CL
introduces a clear and dedicated command

  adb shell cmd input_method tracing save-for-bugreport

so that "adb bugreport" can explicitly tell IMMS to dump the tracing
files.

See the corresponding CL for frameworks/native [3] about how it's
triggered from "adb bugreport".

 [1]: Ie87eb8423e2bb70f28c330983d45b95e2e07062d
      ac24994aaa
 [2]: I887ae6941b4844a606675b447f67ecee88d7f192
      96a51f9971
 [3]: I62105334e4efbb4514390ffa8be5416482ca3b29
      02b1d2c70b2f4703a9dd51ba69d78604d66916e1

Bug: 177462676
Test: Manually done as follows.
  1. adb shell cmd input_method tracing start
  2. adb logcat -d -s imeTracing:*
       Make sure ime tracing is running
  3. adb shell dumpsys input_method \
         --dump-priority CRITICAL --proto > /dev/null
  4. adb logcat -d -s imeTracing:*
       Make sure ime tracing has not been stopped.
  5. adb shell cmd input_method tracing save-for-bugreport
  6. adb logcat -d -s imeTracing:*
       Make sure ime-tracing was dumped and is still running.
  7. adb root && adb shell ls /data/misc/wmtrace/ -al
       Make sure ime tracing files are saved.
Test: Manually done as follows.
  1. adb shell cmd input_method tracing start
  2. adb logcat -d -s imeTracing:*
       Make sure ime tracing is running
  3. adb bugreport bugreport.zip
  4. adb logcat -d -s imeTracing:*
       Make sure ime-tracing was dumped and is still running.
  5. unzip -v bugreport.zip | grep ime_trace_
       Make sure ime_trace_{clients,service,managerservice}.pb are
       included.
Change-Id: Ib106e077a10eb6a4f37b38aa9172e7c99a81f898
2021-03-22 18:29:42 -07:00
Yohei Yukawa
597dbb0714 Remove mis-specified @GuardedBy("mMethodMap")
This is a safe no-op CL that removes mis-specified

  @GuardedBy("mMethodMap")

annotations from InputMethodManagerService, which was added while we
were trying to introduce proto-based event logging [1].  Otherwise our
lint would keep false-alarming even if those methods were correctly
used.

Anyway, this CL should have zero impact on generated code since
@GuardedBy annotation is used only for static code analysis.

 [1]: Icbfb8c11e882f29eb45dea9d4c23315c48e9d619
      5e68eeac86

Bug: 154348613
Bug: 177462676
Test: presubmit
Change-Id: I92fb0f9f8957ad0649bfad6196356bb3f9698e04
2021-03-22 18:26:29 -07:00
Bill Lin
9eaba911ec Merge "1/ Set Swipe bottom for notification OFF by default" into sc-dev 2021-03-23 01:22:38 +00:00
Lorenzo Colitti
a93335981e Merge "[VCN15] expose addUnwantedCapability and related APIs" into sc-dev 2021-03-23 01:19:39 +00:00
Soonil Nagarkar
74882cf536 Merge "Fix logging bugs" into sc-dev 2021-03-23 00:17:58 +00:00
Ilya Matyukhin
740591702a Merge "Use ISessionCallback#onSessionClosed" into sc-dev 2021-03-23 00:07:01 +00:00
Jon Spivack
37a7c0aa58 Merge "Support getting AssistContent for recents in Launcher" into sc-dev 2021-03-22 23:57:55 +00:00
Ruslan Tkhakokhov
5db986d793 Merge "Add a field for transport properties to RestoreSet object" into sc-dev 2021-03-22 23:43:24 +00:00
Ruslan Tkhakokhov
3762670bb7 Add a field for transport properties to RestoreSet object
Android Framework needs to know for each RestoreSet provided by
BackupTransport the properties of the transport (e.g. device-to-device
transport, encryption) that was used to obtain the data in the restore
set in question.

Bug: 182986784
CTS-Coverage-Bug: 183441953
Test: atest FullBackupRulesHostSideTest
Change-Id: I07bc2d4eb3837390ea3b0aee769d143ab153335d
2021-03-22 23:42:47 +00:00
Lucas Dupin
1291155196 Reduce number of maximum clusters
Bug: 183392558
Test: manual
Change-Id: I7a28c319e44700f4fc6367cfe6aac615b13b977d
2021-03-22 23:36:44 +00:00
TreeHugger Robot
286535874d Merge "Add TimeZoneProviderEventPreProcessor." into sc-dev 2021-03-22 22:19:50 +00:00
Sally Yuen
9ac5677b49 Merge "Update Notification content description API" into sc-dev 2021-03-22 22:05:18 +00:00
Soonil Nagarkar
1dc7b05ca3 Fix logging bugs
Adds additional logging around user switches, and fixes a bug where
location toggle changes were not logged correctly.

Bug: 183409327
Test: manual
Change-Id: I36fdef5c3eddd3db70d7c18506f82bb687677120
2021-03-22 15:00:51 -07:00
TreeHugger Robot
562ed3ad70 Merge "Fix CDM logcat spam when device is nearby" into sc-dev 2021-03-22 21:48:39 +00:00
Adam Bookatz
6b8c61c8fc Merge "SparseDoubleArray" into sc-dev 2021-03-22 21:45:29 +00:00
Ilya Matyukhin
9bd1692117 Use ISessionCallback#onSessionClosed
Bug: 181984005
Test: atest CtsBiometricsTestCase
Change-Id: I08e43be507a3219859ac2c97544577f839c70936
2021-03-22 14:44:10 -07:00
TreeHugger Robot
9a5dfd3731 Merge "Remove invalid javadoc link to VideoView" into sc-dev 2021-03-22 21:41:53 +00:00
Kweku Adams
db348d4435 Merge "Expose job stop reasons." into sc-dev 2021-03-22 21:36:31 +00:00
TreeHugger Robot
7d560e6619 Merge "Improvements of D2D API according to the review" into sc-dev 2021-03-22 21:27:20 +00:00
TreeHugger Robot
3219555346 Merge "Add a block list to IconManager" into sc-dev 2021-03-22 21:15:35 +00:00
Heemin Seog
0cc4fd9db8 Merge "Add INTERACT_ACROSS_USERS to WMShell" into sc-dev 2021-03-22 20:53:04 +00:00
Yuncheol Heo
a8d563cf30 Merge "Fix NPE in ActivityRecord.inSizeCompatMode()" into sc-dev 2021-03-22 20:28:41 +00:00
TreeHugger Robot
71cf0b48ce Merge "Add toString method to AudioProfile class" into sc-dev 2021-03-22 20:10:31 +00:00
Daniel Cardenas
9887b0f9ed Add toString method to AudioProfile class
Bug: 183425455
Test: TVTS
      ag/13404743
Change-Id: I47f22580484c453237756670b5197b007d43e44b
(cherry picked from commit f5c29ceccd)
2021-03-22 20:10:18 +00:00
Almaz Mingaleev
ddd018e610 Add TimeZoneProviderEventPreProcessor.
Now it does the same as TimeZoneIdValidator, but in upcoming CLs
it will map time zone IDs in suggestion to canonical ones.

Bug: 173787057
Test: atest com.android.server.timezonedetector.location
Change-Id: I61fe69c537ea10cde649454646329ee4d99dd69a
2021-03-22 20:09:59 +00:00