Commit Graph

7399 Commits

Author SHA1 Message Date
Selim Cinek
70c5c30afa Merge changes Ic5ceb729,I51fab5be,Id7abd858,Ic5fce695,I14a75cd6, ...
* changes:
  Fixed the interactivness of the shelf on the keyguard
  Follow up fixes for expandhelper
  Fix guts not expanding when QSPanel is expanded
  Fixed an issue where the setVisibility wasn't annotated
  Fixed a crash when a notification is updated
  Improved the performance of the shelf / scrim
  Fixed a caching issue where icons could stay greyscale
2017-01-18 00:46:00 +00:00
Selim Cinek
d3b4a1b9bd Fixed an issue where the setVisibility wasn't annotated
The setVisibility method wasn't properly using the
@RemotableViewMethod and therefore certain notifications
could not be sent.

Change-Id: Ic5fce695486d53f1b327d3137cbe67beacfaafb9
2017-01-17 15:16:09 -08:00
TreeHugger Robot
6725c8d93e Merge changes I906f6667,I42421408
* changes:
  Construct ambient view in Notification
  Notification: Refactor template parameter passing
2017-01-17 22:38:11 +00:00
Adrian Roos
487374fd6d Construct ambient view in Notification
Bug: 30876804
Test: manual
Change-Id: I906f666711a8d92b557184c652b1d6e33ae6f3d8
2017-01-17 13:06:31 -08:00
Jesse Hall
2852a28254 Revert "Stop preloading EGL/GLES in Zygote"
This reverts commit 9c9cc3e94d.

Test: 5x adb shell am start -W -n com.google.android.calculator/com.android.calculator2.Calculator
Bug: 34306111
Change-Id: Iebb3c823613c97c4a2b0f1e72bcea01e4d519fc7
2017-01-17 11:13:23 -08:00
Kang Li
0bf67a29d9 Merge "Adds annotations to Intent, and enables ChooserActivity to rank apps according to annotations." 2017-01-16 21:36:09 +00:00
TreeHugger Robot
40d88717b3 Merge "Stop preloading EGL/GLES in Zygote" 2017-01-14 02:35:56 +00:00
Kang Li
9fa2a2cd46 Adds annotations to Intent, and enables ChooserActivity to rank apps
according to annotations.

Test: Unit tests and manul tests. More unit tests to be added.
Change-Id: I3cbfd0cc10007290585fa3e7e3c92e1731f1f7b8
2017-01-13 17:40:44 -08:00
Aurimas Liutikas
673de10bd0 Merge "Remove unused classes from com.android.internal.widget" 2017-01-14 01:23:10 +00:00
Jesse Hall
9c9cc3e94d Stop preloading EGL/GLES in Zygote
It's not clear this actually makes much difference on modern
devices/drivers. With updatable graphics drivers, we'd have to be able
to unload the preloaded driver from processes that don't use the
system driver, which is additional complexity and risk.

On bullhead and sailfish, meminfo actually showed slightly more memory
available while sitting at launcher just after boot with this change
than previously. Looking at detailed stats, the differences appeared
to mostly within run-to-run variation, but there wasn't evidence of a
regression.

Bug: 33531483
Test: boot through lockscreen/launcher
Change-Id: I1892302c1750cdbeaf5b9979f8da4dc6bd7b3e75
2017-01-13 15:32:38 -08:00
TreeHugger Robot
284d9401ac Merge "Refactor LockSettingsService to unify the handling of pattern and password" 2017-01-13 19:30:49 +00:00
Kang Li
64b018e0eb Adds tests for b/34095835.
Bug: 34095835

Test: reproduced the bug in b/34095835 to ensure that it is covered by
the test. Manually ran the tests.

Change-Id: I28a887341906dc443e1a854ddba51cd1b4daeead
2017-01-13 08:35:13 -08:00
Rubin Xu
1de89b3bec Refactor LockSettingsService to unify the handling of pattern and password
Also fix LockSettingsStorageTests. More unit tests on LockSettingsService
to be added in the next CL.

Bug: 33126408
Test: runtest frameworks-services -c com.android.server.LockSettingsStorageTests
Change-Id: I0f143b26fed1d5ae122fba3b57bd39c7793ad8d9
2017-01-12 14:33:33 +00:00
TreeHugger Robot
adf8b4ca76 Merge "Converting action bars to clusters." 2017-01-12 05:11:26 +00:00
Vadim Tryshev
1abe85c867 Converting action bars to clusters.
ActionBar keyboard navigation logic is now implemented via clusters.
Old implementation using setTouchscreenBlocksFocus and Ctrl+Shift+<
shortcut is removed.

Looking at the code, I can’t rule out existence of all 3 categories
(1) action bars with a nested toolbar, (2) action bars without a
nested toolbar and (3) Toolbars outside of action bars.
Because of this, I set “cluster” attribute both on action bar and
toolbar, and have code to avoid nested clusters in case (1).

Support lib’s action/tool bars aren’t converted, however, they
didn’t regress since Ctrl+Shift+< never worked for them. Will be
done after feature freeze.

Bug: 32151632
Test: Manual checks.
Change-Id: Ieb93980088c0fb385a9bc8a5d218ffc269b94dc5
2017-01-11 17:19:39 -08:00
Hakan Seyalioglu
2cddef3329 Merge "Fix some issues with the last used entry" 2017-01-12 00:27:03 +00:00
Aurimas Liutikas
63ba2d67fb Merge "Remove unused com.android.internal.widget.Smileys class" 2017-01-11 22:06:07 +00:00
Hakan Seyalioglu
33550129e5 Fix some issues with the last used entry
Delay a few operations until after the async phase which rely on display
info being retrieved for resolve targets until after they are available.

Also fix a smaller bug where the list header may be appended multiple
times on activity recreation. Wanted to submit this while writing unit
tests still in progress since there's an open P1 on this for dogfood.

bug: 34103288, 34128854, 34127768
Test: Manual testing - writing unit tests in progress.
Change-Id: I47f747a7493f47863a0107cd8054901bab494462
2017-01-11 13:50:56 -08:00
Tao Bai
fe0c0e05be Merge "Load WebViewChromiumFactoryProviderForO" 2017-01-11 19:01:25 +00:00
Alison Cichowlas
0f642d2709 Merge "Add a required main category for multi logs." 2017-01-11 17:54:13 +00:00
TreeHugger Robot
3b6bcfb65d Merge "Require InputContentInfo.requestPermission()" 2017-01-11 06:30:22 +00:00
Andreas Gampe
e19589fbe8 Merge "Zygote: Add fdsToIgnore" am: 5b22a826d5 am: 140b9b65a1 am: e4cff36099
am: 3b51506c5c

Change-Id: I24e391d2cd7b9bff0808fc9355059b1b71bcba3e
2017-01-11 04:53:19 +00:00
Andreas Gampe
3b51506c5c Merge "Zygote: Add fdsToIgnore" am: 5b22a826d5 am: 140b9b65a1
am: e4cff36099

Change-Id: I89cd109839b4af2510a5b1789a146f7efea4cb80
2017-01-11 03:01:40 +00:00
Andreas Gampe
e4cff36099 Merge "Zygote: Add fdsToIgnore" am: 5b22a826d5
am: 140b9b65a1

Change-Id: Ib4c46887ed5d87ef143bd866320d77b75d8711a3
2017-01-11 02:46:57 +00:00
Andreas Gampe
140b9b65a1 Merge "Zygote: Add fdsToIgnore"
am: 5b22a826d5

Change-Id: I458e354acf620cb434de41790ce94b814ff0a4ea
2017-01-11 02:33:05 +00:00
Aurimas Liutikas
da1acefcd0 Remove unused classes from com.android.internal.widget
Both PasswordEntryKeyboard and RotarySelector seems to have been
used by lockscreen in the past, but are no longer used.

Test: None
Change-Id: I3c1a5aaa426caf677b06a5f77ad8714aa1ad1502
2017-01-10 17:17:19 -08:00
Andreas Gampe
8dfa178efb Zygote: Add fdsToIgnore
Add file descriptors that should be ignored in the file descriptor
table check.

Use this to ignore the pipe file descriptors when starting an app
with invoke-with (wrapper).

Bug: 32607405
Test: m
Test: Device boots
Test: Apps start
Test: adb root && adb shell setprop wrap.com.android.calculator2 logwrapper && adb shell am start -S -n com.android.calculator2/.Calculator
Change-Id: I4a30dfc9382d3172cc815bd41b17a123799354f6
2017-01-10 16:55:34 -08:00
Aurimas Liutikas
584aec5824 Remove unused com.android.internal.widget.Smileys class
This class was added back in 2009 for cupcake and is no longer used.

Test: none
Change-Id: I072f6bc8606dd3b2855f43474eb92a64044a6146
2017-01-10 16:26:37 -08:00
Robert Sesek
15fe73846c Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist. am: 54e387ddbe am: 839a185b2e
am: df781cc514

Change-Id: I869aaa330de7fb0de2d608a6cbf7a8974e9757ba
2017-01-10 23:52:13 +00:00
Alison Cichowlas
5cc5d8a3e9 Add a required main category for multi logs.
Test: updated LogBuilderTest

Change-Id: Ia5359e12a7a84af31d9a966f2c81fc943aadfbdb
2017-01-10 18:44:09 -05:00
Robert Sesek
df781cc514 Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist. am: 54e387ddbe
am: 839a185b2e

Change-Id: I1e761ea737447b347f2542419d18d1f42b1b50db
2017-01-10 23:40:15 +00:00
Robert Sesek
839a185b2e Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
am: 54e387ddbe

Change-Id: I7b4e809767e4cdd64da4094decc929504e1e93d8
2017-01-10 22:33:00 +00:00
Yohei Yukawa
6b422e287c Require InputContentInfo.requestPermission()
This CL logically reverts my previous CL [1], which allowed the system
automatically grant a temporary URI permission to the target
application when the IME calls InputConnection#commitContent() with
InputConnection#INPUT_CONTENT_GRANT_READ_URI_PERMISSION.

Based on conversations with application developers who have supported
Commit Content APIs, I concluded that my assumption that automatically
granting the permission without an explicit call of
InputContentInfo.requestPermission() would help application developers
was wrong.  They anyway need to take care of the situation where the
app fails to read the data from the given content URI.  Thus just
receiving SecurityException() because of not calling it is still one
of such cases that application developers cannot forget about.

Therefore with this CL InputContentInfo.requestPermission() becomes
mandatory when InputConnection#INPUT_CONTENT_GRANT_READ_URI_PERMISSION
is specified.

 [1]: Id955435dd2e72549ee7134f46b3c6951581694ad
      f3806f57a5

Bug: 32315394
Test: By github.com/googlesamples/android-CommitContentSampleApp
Change-Id: I8a3cb79ae6d6c4113914734799b21bfc96e3ca3e
2017-01-10 14:32:46 -08:00
TreeHugger Robot
5df7f1ab61 Merge "Provide non-blocking SurfaceView draw notification path." 2017-01-10 22:16:19 +00:00
Robert Sesek
54e387ddbe Dynamically add the webview_zygote's preloaded APK to the zygote FD whitelist.
This refactors the whitelist to be a class, rather than just a static C array.
The whitelist can then be augmented dynamically when the package path is known
in the webview_zygote.

Test: m
Test: sailfish boots
Test: Enable Multi-process WebView in developer options, perform a search in GSA.

Bug: 21643067
Change-Id: Ia1f2535c7275b42b309631b4fe7859c30cbf7309
(cherry picked from commit 061ee3088a)
2017-01-10 11:44:56 -08:00
Tao Bai
755eded053 Load WebViewChromiumFactoryProviderForO
BUG: 34180497
Test: change the name of class to load.

Change-Id: I586e83242d380b1def88de605a4e9dee375c87b2
2017-01-10 11:07:18 -08:00
Michael Kwan
7cf986aba3 resolve merge conflicts of c252b661e6 to master
Change-Id: Ia3fbedc5b0f90988ef319720a9e668ccc9e297f4
2017-01-09 16:12:53 -08:00
Michael Kwan
c252b661e6 Check if the activity translucency was converted before converted back. am: 39dd370d8e
am: 898385ed59

Change-Id: I5bee496498ebcff712184f417adfdf8ee5436e7d
2017-01-09 23:15:23 +00:00
Michael Kwan
898385ed59 Check if the activity translucency was converted before converted back.
am: 39dd370d8e

Change-Id: Ib0705da70acd8abceedd5c1deeacae5023032543
2017-01-09 23:06:21 +00:00
Michael Kwan
39dd370d8e Check if the activity translucency was converted before converted back.
Bug: 34084490
Change-Id: Ib04c76549a31c7e523649f9d284637d44d7477ae
2017-01-09 13:43:52 -08:00
TreeHugger Robot
29c0a2c93d Merge "Do not report uptime to tron after runtime restart" 2017-01-09 19:56:16 +00:00
Mark Renouf
d9d871ff58 Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN am: 9b32a35aa7 am: 7ef0b07465
am: d5a1123109

Change-Id: Ie02c9f74fc93133a68940204420c48f92d4b352f
2017-01-09 19:47:22 +00:00
TreeHugger Robot
e7e4998784 Merge "Updating PIP to match UX" 2017-01-09 19:33:09 +00:00
Mark Renouf
d5a1123109 Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN am: 9b32a35aa7
am: 7ef0b07465

Change-Id: I8e6ed26b1109dd3cb293d3a0a2307877fa5e4304
2017-01-09 19:30:38 +00:00
Mark Renouf
7ef0b07465 Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN
am: 9b32a35aa7

Change-Id: I99d041ae3a1771e17c94a168cf672f8b73ce572d
2017-01-09 19:13:55 +00:00
Mark Renouf
5df216f209 Merge "Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN" into cw-f-dev 2017-01-09 19:00:05 +00:00
Robert Carr
25cfa13483 Provide non-blocking SurfaceView draw notification path.
SurfaceView needs to notify the window manager that
drawing has been completed, so that animations and such
can begin. Currently this is implemented through
having the SurfaceView user block in surfaceRedrawNeeded
(called from  UI thread) until a frame has been completed.
This blocking can be unnecessary serialization during startup, and
also clumsy to implement for some users.

Test: GLSurfaceView and takeSurface API Demos, android.server.cts.SurfaceViewTests
Bug: 31850030
Change-Id: Idda02098a635f25cf392f2d59a3abbe54a1d64d4
2017-01-09 10:44:58 -08:00
Fyodor Kupolov
6733e6c6b6 Do not report uptime to tron after runtime restart
Runtime restart doesn't reset the uptime counter. We shouldn't report
boot timings in that case.

Bug: 32807863
Test: manual
Change-Id: If9510c0d5c633acefe70f241e0823da8f6c248a2
2017-01-09 10:29:42 -08:00
Alison Cichowlas
0f961084ce Merge "Log wrapper for multi-metrics in tron." 2017-01-09 16:39:04 +00:00
Adam Lesinski
6224a32197 Merge changes from topic 'learned_capacity'
* changes:
  BatteryStats: Report learned battery capacity as event
  Parcel/unparcel charge_full state from BatteryProperties
2017-01-07 01:51:07 +00:00