474087 Commits

Author SHA1 Message Date
Matt Pietal
dc78c84748 Controls UI - Support detail panels
Allow apps to specify whether to show full screen or within detail
panels. Default camers and thermostats to use the panel by default
when the following flag is enabled.

Enable by:
adb shell settings put secure systemui.controls_use_panel 1

Change offset from the top in Px:
adb shell settings put secure systemui.controls_panel_top_offset XXX

Bug: 152528130
Test: manual, use camera, thermostat devices

Change-Id: Ia1b12afcf4de2a0bcf7957e6425b282b1e220f46
2020-04-10 13:36:26 -04:00
Wonsik Kim
0081f25310 Merge changes Ibd8ce581,I04cc955d into rvc-dev
* changes:
  media: change of asC2Buffer behavior
  media: fix MediaCodec JNI method signatures
2020-04-10 16:11:31 +00:00
TreeHugger Robot
766aa3a107 Merge "Restore config of associated window when clearing fixed rotation" into rvc-dev 2020-04-10 16:09:14 +00:00
TreeHugger Robot
e7979623e6 Merge "Fix clickable notification row elements" into rvc-dev 2020-04-10 16:00:17 +00:00
Cody Kesting
fb9ff36b95 Merge "Fix typo in VpnManager Docs." into rvc-dev 2020-04-10 15:52:10 +00:00
Ryan Mitchell
6cb79cdfb7 Merge changes from topic "invalidate_idmap" into rvc-dev
* changes:
  Fix InstallOverlayTests fail to install overlay
  Test that upgrading target apk invalidates idmap
  Invalidate idmap when target updates
2020-04-10 15:50:15 +00:00
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
Riddle Hsu
522029a9f9 Restore config of associated window when clearing fixed rotation
If wallpaper is visible and its target window has fixed rotation
transform, wallpaper token will be associated to share the same
transform. So if the target window cancels the transform, the
associated window, i.e. wallpaper should also be restored to the
original configuration.

Fixes: 153420536
Fixes: 153201558
Test: atest WindowTokenTests#testClearFixedRotationTransform
Change-Id: I75fe8bfadf3b681f2dc33df9c6599a9bbc5769ea
2020-04-10 21:55:45 +08:00
Beverly
63273d4531 Fix clickable notification row elements
- Don't mark notification guts as clickable. Originally they were marked
as clickable so that the guts wouldn't send touches to trigger the
ExpandableNotificationRow's click, NotificationClicker. This caused
talkback to speak "Double-tap to activate" when announcing the
NotificationGuts even though double-tapping would do nothing.
- Instead, added logic in NotificationClicker to ignore clicks that
occur when the guts are exposed.

Test: manual
Fixes: 140398522
Change-Id: I806051ffd43ed27c38e804fdc43e2c2d3522566c
2020-04-10 09:50:12 -04: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
      970d9d2e0c979cf9a0ff0a79ef49044ed1363d4f
 [2]: Iad09cf5dbb7f6f156fd39ed243431432e00f8945
      4478de3c02c1fb2f4f888e696ee1b13721e936d9
 [3]: Iaf3fe2c065b5bf91e49a729ba46262114bb6da88
      b13f015ab519b3e553c03eba971ada89b472fbbc
 [4]: I219394178e4172bc47864297f1418e677dba25e5
      5f05965f546fa42750f1a8314f8a2da01fd6bfb4
 [5]: Id6afc8fc64512225578c62557b96c7dc2e969adf
      0f3a99d837048ae82855c2306cd454426393c19f
 [6]: I8fabb30f14bcb2cd7019e29b6642b4562d49d248
      dff365ef4dc61239fac70953b631e92972a9f41f
 [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
Cody Kesting
b840c602ed Fix typo in VpnManager Docs.
Bug: 153364039
Test: n/a. Docs change only.
Change-Id: I8259bfc09735515f428bb41d69fedd3ea1961f79
Merged-In: I8259bfc09735515f428bb41d69fedd3ea1961f79
(cherry picked from commit 3150b04b67dc75fe5edebad6870fc09710d07af2)
2020-04-10 00:30:38 +00:00
TreeHugger Robot
377e486c34 Merge "Fix the ActivityView consuming shade touches." into rvc-dev 2020-04-10 00:05:24 +00:00