Commit Graph

631288 Commits

Author SHA1 Message Date
junyulai
ffc922fe2a Fix cannot find removeUnwantedCapability on R device
Test: atest CtsNetTestCasesLatestSdk:android.net.NetworkCapabilitiesTest
Fix: 183473863
Change-Id: Icf2cda325795acee22a6c634e8d978f64c5ac3cb
2021-03-23 17:21:34 +08:00
TreeHugger Robot
222a70a77e Merge "Remove the reference of new Network(int) in Vpn.java" into sc-dev 2021-03-23 09:06:45 +00:00
TreeHugger Robot
11d5b29d7c Merge "Introduce VibrationEffectSegment" into sc-dev 2021-03-23 08:52:21 +00:00
Vadim Caen
015adeccfd Merge "Hide branding view when empty" into sc-dev 2021-03-23 08:28:33 +00:00
Vadim Caen
884c99d065 Hide branding view when empty
It looks like the empty branding view was causing the underlying
view to bleed through it so ensuring that it is removed if empty.

Bug: 182708883
Change-Id: I868931768bed5b083433fd5222720724bfe3e60e
2021-03-23 08:28:14 +00:00
Jernej Virag
1e34ea397e Merge "Add configuration to control appearance of long press power to assistant setting" into sc-dev 2021-03-23 08:24:42 +00:00
TreeHugger Robot
2b153158e7 Merge "IMMS#dump() should do OOP dumps only for normal prioirty dump" into sc-dev 2021-03-23 08:15:04 +00:00
Remi NGUYEN VAN
41df46a030 Merge "Remove NetdService, NetworkStackClient dependency" into sc-dev 2021-03-23 08:08:01 +00:00
TreeHugger Robot
1bd31567f1 Merge "Update accent colors" into sc-dev 2021-03-23 07:53:07 +00:00
TreeHugger Robot
baf818032a Merge "Rename "Network slicing" to "Enterprise network preference" in the 5G Slicing API" into sc-dev 2021-03-23 07:49:10 +00:00
junyulai
afd9acdb17 Remove the reference of new Network(int) in Vpn.java
Test: atest FrameworksNetTests
Bug: 182963397
Change-Id: I4176dd1298ad8d8e8407eb95b2e6cbb8faf4bc17
2021-03-23 15:28:13 +08:00
Sean Stout
1363aa9538 Merge "Allow IME hiding on displays without system decorations" into sc-dev 2021-03-23 07:23:51 +00:00
Remi NGUYEN VAN
585b50136e Merge "Add NDK API for getprocnetwork" into sc-dev 2021-03-23 07:11:06 +00:00
TreeHugger Robot
59a8366541 Merge "Improve the documentation of getLastTimeComponentUsed() API" into sc-dev 2021-03-23 06:57:05 +00:00
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
Remi NGUYEN VAN
5a328c2a86 Remove NetdService, NetworkStackClient dependency
Netd should be obtained via getSystemService, and
ModuleNetworkStackClient must be used instead of NetworkStackClient for
modules.

Bug: 171540887
Test: m
Change-Id: Ibe703ac56dd70673115cd8b95b44b856a7fc01f3
2021-03-23 06:05:52 +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
Lucas Dupin
83c19eab94 Update accent colors
Test: visual
Test: atest SystemPalette
Bug: 183459421
Change-Id: Ie38a70520723fa11a29867b583c5ae3c7969f6a7
2021-03-22 21:49:41 -07: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
b3c3cae188 IMMS#dump() should do OOP dumps only for normal prioirty dump
This CL reworks our previous CL [1], which entirely moved IMMS dump
into critical section in bugreport as a side effect while achieving
Bug 167948910.

What's unexpected in that CL is that InputMethodManagerService#dump()
also tries to extract data from InputMethodService process and IME
client process by using Binder IPC.  Unfortunately such operations
aren't guaranteed to complete within the given timeout for critical
dump, which is currently set to 500msec.  As a result, we sometimes
completely lose the log from those two processes when they take some
time to complete.

With this CL, InputMethodManagerService#dump() will be registered for
both critical dump and normal dump, and those potentially expensive
out-of-process dumps will be performed only for normal dump phase like
we did before that CL.

 [1]: Ie87eb8423e2bb70f28c330983d45b95e2e07062d
      ac24994aaa

Fix: 177462676
Test: Manually verified that bugreport contains IMMS section of:
  * Critical text dump without dump from IMS and IME client.
  * Critical proto dump.
  * Normal text dump with dump from IMS and IME client.
  * Normal proto dump.
Change-Id: I3828f8eab5739939edabccaa5c76320567f9d7c1
2021-03-22 18:30:08 -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
Remi NGUYEN VAN
3d50059bbc Add NDK API for getprocnetwork
The API is the getter couterpart for setprocnetwork.
Use it in NetworkUtils so that the NDK API can be the source of truth
for the process network.

Bug: 171540887
Test: atest CtsNetTestCases
      Tests in change I311b58585033c2ca50ce5477ea9cd94b6f127507
Change-Id: Ie8f68cf1fa57deddb63324c1abf3d6fd5b0ef500
2021-03-23 01:01:06 +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