Commit Graph

474073 Commits

Author SHA1 Message Date
TreeHugger Robot
ce4cd092d9 Merge "MediaRouter: don't scanPackages if unnecessary" into rvc-dev 2020-04-10 15:43:14 +00:00
TreeHugger Robot
fd09fe5cea Merge "Return actual failure to parse base APK" into rvc-dev 2020-04-10 15:28:13 +00:00
TreeHugger Robot
51ec322208 Merge "Add an empty IMM#windowDismissed(IBinder) for app compat" into rvc-dev 2020-04-10 15:10:43 +00:00
Yurii Zubrytskyi
4e21986e59 [incfs] Fix a leaked pending_reads FD
Bug: 153670585
Test: adb install/uninstall a dozen times
Change-Id: Iac05b5dc3792e55c2f103ac08bdd734b3b398882
2020-04-10 14:49:31 +00:00
Darryl Johnson
6c6d81a121 Merge "Temporal fix of the Android Auto orientation chaniging on phone's orientation change." into rvc-dev 2020-04-10 14:07:36 +00:00
Mark Chien
1528d90dc8 Merge "Assign specific client address to dhcp server" into rvc-dev 2020-04-10 13:22:17 +00:00
Kyunglyul Hyun
89e2ee9bc7 MediaRouter: don't scanPackages if unnecessary
scanPackages was called whenever it receives a broadcast,
which could be duplicated.
This CL adds a boolean variable (mScanPackagesScheduled) not
to scan packages if it is scheduled.

Bug: 153527463
Test: cts test, atest mediarouertest and check
MediaRouteProvider#onBind, #onUnbind are called
when a new provider is installed.
Confirm # of calls is reduced (3 -> 1).

Change-Id: Iaa423b7d1b2b2a97aebed0001b4077bdf95b1d54
2020-04-10 22:07:54 +09:00
TreeHugger Robot
4e2d66ed6c Merge "Add an interface in SettingsInjector to log metrics" into rvc-dev 2020-04-10 12:55:08 +00:00
Raff Tsai
5962269af8 Merge "Add SettingsStats puller in StatsPullAtomService" into rvc-dev 2020-04-10 10:08:30 +00:00
Treehugger Robot
86d212b4c8 Assign specific client address to dhcp server
Bug: 141256482
Test: manual
      atest TetheringTests

Merged-In: Ief76c98c843ba5420224cbf0f34464f366c891b7
Change-Id: Ief76c98c843ba5420224cbf0f34464f366c891b7
2020-04-10 10:03:20 +00:00
TreeHugger Robot
7f091e01ee Merge "Add getInterface(Version|Hash) in ILights stub for test" into rvc-dev 2020-04-10 08:59:57 +00:00
Wei Sheng Shih
1a46294fdb Merge "Support addWindow as other user" into rvc-dev 2020-04-10 08:33:12 +00:00
Bonian Chen
eca8cf5166 Merge "[Settings] Data usage for each subscription" into rvc-dev 2020-04-10 08:30:07 +00:00
Anton Hansson
a94c9b8d0c Merge "Use module_current to build module stubs" into rvc-dev 2020-04-10 08:10:08 +00:00
Luke Huang
723514cf9b Merge "Use the lastest frozen netd_aidl_interface in framework" into rvc-dev 2020-04-10 08:09:06 +00:00
TreeHugger Robot
93b7e70d9f Merge "Controls a11y - Fix title repetition, min height" into rvc-dev 2020-04-10 07:14:27 +00:00
TreeHugger Robot
926a6d7a33 Merge "Whitelist MediaProvider for statsd metrics" into rvc-dev 2020-04-10 06:19:52 +00:00
TreeHugger Robot
89d5f51c7e Merge "Improve MediaProvider WW atoms" into rvc-dev 2020-04-10 06:19:46 +00:00
Ming-Shin Lu
1c92e1f789 Merge "Trigger onTaskAppeared when a task started from recents becomes ready." into rvc-dev 2020-04-10 05:46:13 +00:00
Bonian Chen
3ff2708e80 [Settings] Data usage for each subscription
1. Data usage should be displayed for different subscription.
2. Data usage could support displaying information for disabled SIM

Bug: 151751844
Test: manual
Change-Id: Ie79e9968989c40c9be00dd3004a6a5a2eb2fa029
2020-04-10 13:42:20 +08:00
Yohei Yukawa
7029cc3da8 Add an empty IMM#windowDismissed(IBinder) for app compat
It seems that there are several applications that call
InputMethodManager#windowDismissed(IBinder), which was recently
removed [1], then crash due to unhandled NoSuchMethodException
exception.

The most probable hypothesis that explains why these apps ended up
calling this method via reflection is trying to address object leaks
from InputMethodManager, which we have received reports then fixed all
the known issues [2][3][4][5][6].  There are several Internet articles
that claim calling InputMethodManager#windowDismissed(IBinder) can
*fix* such object leaks, which is in fact no longer necessary in
recent versions of Android.  However, it seems that some of such apps
didn't gracefully take care of cases where IMM#windowDismissed()
doesn't exist then ended up crashing due to unhandled
NoSuchMethodException.

Note also that AndroidX Activity (androidx.activity.ComponentActivity)
already implements a similar workaround [7] hence app developers no
longer need to work around by themselves.

Anyways, in order to avoid unnecessary crashes from apps that call
IMM#windowDismissed() via reflection, this CL re-introduce it as an
empty method.  As their goal is supposed to be clearing internal
fields within InputMethodManager to avoid object leaks, an empty
method is believed to be sufficient.

 [1]: Ib455704fe1e9d243f93190a84f230210dbceac2a
      970d9d2e0c
 [2]: Iad09cf5dbb7f6f156fd39ed243431432e00f8945
      4478de3c02
 [3]: Iaf3fe2c065b5bf91e49a729ba46262114bb6da88
      b13f015ab5
 [4]: I219394178e4172bc47864297f1418e677dba25e5
      5f05965f54
 [5]: Id6afc8fc64512225578c62557b96c7dc2e969adf
      0f3a99d837
 [6]: I8fabb30f14bcb2cd7019e29b6642b4562d49d248
      dff365ef4d
 [7]: I615e92f0c64b6d668b31f2c83527b7409a7bef6f
      b1bf8502e0574a4bfcf450235595372b7cb3778a

Fix: 152261618
Test: manually verified with apps in question
Change-Id: I599896a96267fc60a738eac31be02b770e10dff3
2020-04-09 22:38:04 -07:00
Roshan Pius
0cadd8c7c4 Merge "wifi(jar-jar): Jar-jar all static dependencies" into rvc-dev 2020-04-10 05:30:50 +00:00
Sungsoo Lim
383371cdc5 Merge "Do not export private AIDL files of the media module" into rvc-dev 2020-04-10 05:28:21 +00:00
TreeHugger Robot
b770ca4746 Merge "Fix split task position behavior when landscape" into rvc-dev 2020-04-10 05:17:29 +00:00
Roshan Pius
5a283f2d9d wifi(jar-jar): Jar-jar all static dependencies
Bug: 153596226
Test: Device boots up and connects to wifi networks.
Test: Manual inspection of classes included in framework-wifi &
service-wifi using dexdump

Change-Id: Ic31cdae62761110eeb4834a588b36328de19adb8
2020-04-10 05:14:03 +00:00
TreeHugger Robot
2a7091d896 Merge "Fine tune performance for notifyContentCapture()" into rvc-dev 2020-04-10 04:42:58 +00:00
TreeHugger Robot
b4d5aef6b0 Merge "Determine if the activity is the topmost one" into rvc-dev 2020-04-10 04:07:28 +00:00
TreeHugger Robot
e6897b1950 Merge "Change doc for suggestion API" into rvc-dev 2020-04-10 03:19:43 +00:00
Winson Chung
cb437ade00 Merge changes I7d2ca2a2,I9f1fc593 into rvc-dev
* changes:
  Fix a couple issues with previous CL (keeping tasks hidden)
  Keep task hidden until task appeared
2020-04-10 03:03:21 +00:00
Eric Laurent
9454e04c8c Merge "AudioService: fix audio mode not reset to MODE_NORMAL" into rvc-dev 2020-04-10 02:31:52 +00:00
TreeHugger Robot
c0404ff5e5 Merge "Pass inline suggestions renderer info Bundle to Frameworks and IME" into rvc-dev 2020-04-10 02:19:23 +00:00
TreeHugger Robot
1e54504643 Merge "getDefaultHomeActivity() could return null ComponentName." into rvc-dev 2020-04-10 02:13:22 +00:00
Louis Chang
d398485d3f Merge "Compute configuration overrides for tasks created by organizer" into rvc-dev 2020-04-10 01:29:44 +00:00
TreeHugger Robot
57404b392b Merge "Added RingModeTracker" into rvc-dev 2020-04-10 01:22:38 +00:00
Nate Jiang
69e1136884 Change doc for suggestion API
Add more explanation in doc, when app receive error code calling
suggestion API.

Bug: 150215899
Test: atest android.net.wifi

Change-Id: I8055546be8f12f807c35b9f50b239940a671482e
2020-04-09 18:18:01 -07:00
Calin Juravle
fe92847793 Merge "Enable dexopt for system server dex files" into rvc-dev 2020-04-10 01:02:16 +00:00
Calin Juravle
4fdf8271ce Enable dexopt for system server dex files
Add logic for dexopt-ing system server dex files. The files
are managed by the DexManager and need special dexopt
arguments.

As such, they have a dedicated dexopt path, that can be
initiated from DexManager. (The arguments are what we currently
use in ZygoteInit#performSystemServerDexOpt)

Test: adb shell cmd package dexopt android
      presubmits
Bug: 148774920
Change-Id: If0c0457f8045e8f475815136fb5ae2f340eb6661
2020-04-10 01:01:50 +00:00
TreeHugger Robot
bc6ad8ec2c Merge "Make dialog fit under the notch in landscape mode" into rvc-dev 2020-04-10 00:40:43 +00:00
wumin3
13821952ef AudioService: fix audio mode not reset to MODE_NORMAL
when a app call setMode to set mode to non MODE_NORMAL modes many times with different audio managers in the same process, in this case the "pid" parameters are the same and the "cb" parameters are not the same, then the parameter "cb" registered and the "mCb" in hdlr are not the same, then NoSuchElementException will happen, and when the app was cleared in recent tasks the audio mode will not be reseted to MODE_NORMAL by expected flow.

Bug: 153649105
Test: AudioManagerTest#testAccessMode, CallDetailsTest#testSetVoipAudioMode
Test: manual cell and voip call
Signed-off-by: wumin3 <wumin3@xiaomi.com>
Change-Id: Ifb8c66372a8e994edcea628cad7dc2a7ee4763a6
Merged-In: Ifb8c66372a8e994edcea628cad7dc2a7ee4763a6
2020-04-10 00:37:43 +00:00
Raff Tsai
87cefd4f28 Add SettingsStats puller in StatsPullAtomService
1. Add typed_features.proto contain StringListParam proto
2. Add SettingsStatsUtil to parse DeviceConfig whitelist and
create log
3. Add test case in SettingsStatsUtilTest

Test: atest FrameworksServicesTests:SettingsStatsUtilTest
      adb shell cmd stats pull-source 10080
Bug: 142941011
Change-Id: I5a161cf12dd6d52ae80813e6d1fe10ecbc5d05cd
2020-04-10 08:37:17 +08:00
TreeHugger Robot
377e486c34 Merge "Fix the ActivityView consuming shade touches." into rvc-dev 2020-04-10 00:05:24 +00:00
Hui Yu
2001fbafec getDefaultHomeActivity() could return null ComponentName.
Bug: 153400018
Test: Manual test
Change-Id: I29d5a8f00563bdf88ab1f7a00d39d6a39a0ed44d
2020-04-09 16:48:53 -07:00
TreeHugger Robot
85b561c3c2 Merge "Exposed PooledLambdaImpl.getFriendlyName() as FunctionalUtils.getLambdaName()" into rvc-dev 2020-04-09 23:22:25 +00:00
Jeffrey Huang
cb29fa9384 Merge "Add APEX UIDs to PackageManager query" into rvc-dev 2020-04-09 23:04:26 +00:00
TreeHugger Robot
6d287f259b Merge "AppLaunch: use iorapd's dumpsys command interface" into rvc-dev 2020-04-09 23:02:47 +00:00
Winson Chung
8b5d23ab10 Fix a couple issues with previous CL (keeping tasks hidden)
- Attempting to set the visiblity when the task org is set can happen too
  early and cause the app to not draw and preventing taskAppeared().
  Instead, move this to setHasBeenVisible() to be in line with other
  cases in the system where we defer setting visibility until the apps
  are good to go.  However, if we do this, we also need the first draw
  (including the starting window) to trigger setHasBeenVisible() to
  ensure the task org can hide it in time (the task org will also want
  to receive the task as soon as possible). As a result of moving it out
  of when the task org is set on the task the PIP transition then also
  has to defer setting the visibility of the activity until the first
  draw.
- Also fix a case where we are dispatching task info change before
  taskAppeared().  There's a brief period where the task has an organizer
  set, but the task org state has not added that task yet or sent
  taskAppeared() because it has not yet drawn.  But in that state, config
  changes still happen causing a task info changed call to the task org.

Bug: 152809695
Bug: 152134460
Test: Open a bubble, ensure that we don't see the task in fullscreen
      first.  Enter pip, ensure that we don't see flash of the task
      before SysUI can fade it in.
Test: atest PipAnimationControllerTest
Test: atest TaskOrganizerTests
Test: atest SplitScreenTests

Change-Id: I7d2ca2a2e538f07c73fff79686e040c159c1dce3
2020-04-09 15:56:00 -07:00
Winson Chung
1b5d055f2e Keep task hidden until task appeared
- If the task is previously not visible or has no visible children at
  the point when we start controlling it in the task org, hide the task
  until we send taskAppeared to ensure that the task org can reparent
  and show it otherwise we could see a flash of the task.

  This happens mainly from two cases:
  - when starting a new task with a given win mode, we show it and wait
    for first draw before notifying the task org
  - when transitioning into pip from swipe up, the activity is hidden
    and when it requests to enter pip is made visible again

  Since we are hiding the task w/ the pending transaction, we also need
  to defer all task org callbacks until that's applied to ensure proper
  lifecycle of the calls.
- Also skip app transitions for task org tasks for now

This reverts commit d2fb07e4f6.

Bug: 152809695
Bug: 152134460
Test: Open a bubble, ensure that we don't see the task in fullscreen
      first.  Enter pip, ensure that we don't see flash of the task
      before SysUI can fade it in.
Test: atest PipAnimationControllerTest
Test: atest TaskOrganizerTests
Test: atest SplitScreenTests
Change-Id: I9f1fc5931df1d69a7086c02b633347162cda94bf
2020-04-09 15:55:03 -07:00
Sergey Volnov
51ecd453b3 Merge "Fix Content Capture Data Share" into rvc-dev 2020-04-09 22:35:08 +00:00
TreeHugger Robot
1ce5fdde3c Merge "Use headline font in NotificationInfo style" into rvc-dev 2020-04-09 22:08:44 +00:00
Lucas Dupin
26571e90c8 Make dialog fit under the notch in landscape mode
Test: visual
Fixes: 152628601
Change-Id: I0082ab2fac2182de378ded53b375d3ff110eff58
2020-04-09 15:01:31 -07:00