313264 Commits

Author SHA1 Message Date
Colin Cross
3fa195c3cf Merge "Add missing transitive dependencies" into oc-dev 2017-04-12 00:06:07 +00:00
Colin Cross
d88676f363 Merge "Update layoutlib to match java library changes" into oc-dev 2017-04-12 00:05:01 +00:00
TreeHugger Robot
cd3f72d628 Merge "Keep spans while transforming to uppercase" into oc-dev 2017-04-12 00:02:35 +00:00
Evan Rosky
7d6bf45428 Merge "Make AdapterView auto-focusable-aware" into oc-dev 2017-04-12 00:02:25 +00:00
Daniel Nishi
bd441caaf6 Use the StorageStatsManager in FileCollector.
This should vastly improve the speed of the FileCollector.

Change-Id: I7a878a0622bbd6c758fb1d36125414d8b025e709
Fixes: 35807386
Test: Existing tests continue to pass.
2017-04-11 16:53:23 -07:00
Russell Brenner
880994d0db Add hidden SystemApi for two setup wizard actions
ACTION_UPGRADE_SETUP exists as an SdkConstant and is now additionally
tagged as a SystemApi. ACTION_DEVICE_INITIALIZATION_WIZARD is added
as a deprecated SystemApi to appease CTS requirements. Both APIs are
hidden.

Test: cts-tradefed run cts-dev -m CtsSignatureTestCases \
        -t android.signature.cts.IntentTest#shouldNotFindUnexpectedIntents
Bug: 33663899
Change-Id: Ib45afbfcbb9a3d3020f11c8b63fc2bcf6fc447a1
(cherry picked from commit 4cd32e5395a9e97e281823c8c57e1c18845447c4)
2017-04-11 23:53:20 +00:00
TreeHugger Robot
b67e105e74 Merge "Improve caching behavior of thumbnails" into oc-dev 2017-04-11 23:53:19 +00:00
TreeHugger Robot
1df5ca5911 Merge "Clean up activity a bit and disable it by default" into oc-dev 2017-04-11 23:51:53 +00:00
TreeHugger Robot
293afb3917 Merge "Ensure visible activities when device is unlocked." into oc-dev 2017-04-11 23:50:11 +00:00
Kevin Chyn
d1f1a0b60a Implement enumerate in FingerprintService
Enumeration will happen only for the current active user.

Fixes 35358801
Test: manual

Change-Id: I4c935626edba6eceb1aec4f79a7b3a39313943a5
2017-04-11 16:44:39 -07:00
Fyodor Kupolov
a1ff00157c Report app data fixup and prepare timings
They are now reported under SystemServerTimingAsync tag, which is
tracked by boottime dashboard.

Test: manual
Bug: 37186619
Change-Id: Ib3608d7cf27012b5dab1947446fcb8d8496bbf91
2017-04-11 16:40:18 -07:00
TreeHugger Robot
1f58ad1a2f Merge "Grant Shell ability to clear cached app data." into oc-dev 2017-04-11 23:15:38 +00:00
Mark Salyzyn
c9668a1805 jni: isLoggable: adapt to removal of property name size limit
(cherry picked from commit 8143fa57adfbb4a5cc253e4ef68663525a8f81eb)

There is no longer a name size limit to the properties, remove
illegalArgumentException if tag length is too large.

Test: build
Bug: 36696208
Change-Id: I4b4329c8c951082ed0d777cdd70ee3e773bed16c
2017-04-11 16:15:23 -07:00
Brad Ebinger
509a311976 Merge "Move @SystemApi access to ImsService" into oc-dev 2017-04-11 23:12:11 +00:00
Powei Feng
719e70c9f2 Revert "Transition from Activity to Broadcast for TV Search"
This reverts commit 1331d26142b9b3271292e3f58e7e79e1cb78d619.

Reason for revert: b/36725187

Bug: 36725187
Test: manual testing of search on Fugu

Change-Id: I02e7abeee264ceada88f220f2eddb9f92ef397bc
2017-04-11 23:01:41 +00:00
TreeHugger Robot
b287e9907a Merge "Toast whenever a notification fails to post" into oc-dev 2017-04-11 23:00:03 +00:00
Jorim Jaggi
9fc2870679 Fix doc for FLAG_DISMISS_KEYGUARD
Test: n/a
Change-Id: I7e8b0e22895e5efe839dc0f73bcfda6a67f52026
Fix: 36023803
2017-04-11 15:55:57 -07:00
Jorim Jaggi
dd5986e035 Fix NPE in TaskSnapshotController
Test: Pray
Change-Id: Ie65f072b35fbf1a9a65caf5be48dabbb7abb6be8
Fixes: 36592724
2017-04-11 15:50:58 -07:00
Dianne Hackborn
c75587ed5b Work on issue #36427964: SecurityException: Unable to find app...
...for caller android.app.IApplicationThread

Verify, if we don't find the caller on the LRU process list, that
it isn't actually on the main list.  (And if it is on the main list,
we can now recover from that.)  Also fix the error message when this
fails for startService() to print the correct calling pid.

Test: booted and ran

Change-Id: I0a81c679bb7e6eb15b854ed4b457d01b386d5dba
2017-04-11 15:39:16 -07:00
TreeHugger Robot
6acaa0382c Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-11 22:35:49 +00:00
TreeHugger Robot
911de0346c Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-11 22:28:43 +00:00
Michael Wright
936f27cbf7 Always request keyboard shorcuts, even if there's no menu.
Bug: 36964520
Test: cts-tradefed run cts-dev --module CtsAppTestCases -t android.app.cts.ActivityKeyboardShortcutsTest#testRequestShowKeyboardShortcuts
Change-Id: Idc2224260470dfd58a08cd8b2df5d8de67fbaea4
2017-04-11 23:23:42 +01:00
Jorim Jaggi
cdef591e52 Improve caching behavior of thumbnails
Remove the retrieval cache on system_server. It's not needed at
this point.

Instead, we cache the low-res thumbnails on SystemUI side that
will be visible when recents launches. For that, we introduce
a strong thumbnail cache, which gets filled up whenever the task
stack changes.

Also fix a couple of issues like that the visibility report was
pretty wrong as well as some tasks got unloaded because tasks were
bound before layout happend.

Also fix a merge issue where we didn't load the reduced resolution
thumbnail :/

Test: TaskSnapshotCacheTest
Test: Open a couple of apps, open recents, make sure all
thumbnails are already loaded.

Fixes: 36374895
Change-Id: Idbf1acd4ceab6a7c4656e9791e245a8b102017f2
2017-04-11 14:06:42 -07:00
TreeHugger Robot
8f8a71d170 Merge "Bring back the priority feature for static RRO" into oc-dev 2017-04-11 21:03:00 +00:00
TreeHugger Robot
ad724f61ad Merge "Rebase enabled overlays for every PackageParser.generateActivityInfo() call" into oc-dev 2017-04-11 21:02:28 +00:00
Nathan Harold
4e745fd4e9 Merge "Deprecate TelephonyManager.getCellLocation()" into oc-dev 2017-04-11 20:58:34 +00:00
Dianne Hackborn
7da13d7c3e Add new "work queue" feature to JobScheduler.
This gives semantics similar to the start command
queue of services.

The implementation is currently lacking in URI permission
grant handling of the work intents; that will be coming
in a follow-up change.

This includes a first step of adjusting/fixing locking
within JobSchedulerService.  The JobServiceContext class
has a bunch of stuff it does that assumes it doesn't need
locking because it schedules the work on a handler.  However,
to be able to correctly implement the work finish flow (that
takes care of stopping the job when there is no more work),
we can't dispatch these asynchronously so need to get rid of
that and just do explicit locking.

The switch to explicit locking is half-way there (again the
remaining part will be a follow-on CL).  Right now we have
the locking, but still also the handler.  But it turns out
there were a number of things we were doing without a lock
held where we actually should have been holding a lock, so
this is better anyway.

Test: new tests added

Change-Id: Iebd098046209b28e60fd2f4d855d7f91cd3a8b03
2017-04-11 13:57:15 -07:00
TreeHugger Robot
bfd70fb90b Merge "Fix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING" into oc-dev 2017-04-11 20:49:51 +00:00
Roozbeh Pournader
b2d00340fd Keep spans while transforming to uppercase
We now use ICU's new functionality for casing edits to preserve
the spans while applying AllCapsTransformationMethod.

Test: Manual
Test: CTS tests added and pass
Bug: 7198872
Bug: 19047649
Bug: 19713814
Bug: 34853618
Bug: https://code.google.com/p/android/issues/detail?id=67509
Change-Id: I0df388e79894961efb272d497f1dcc0570a6c085
2017-04-11 13:49:18 -07:00
Mady Mellor
637cd48922 Show x for short period of time when activity is PIP'd
- Moves dismiss view out of menu container layout and manages the alpha
  for it separately (i.e. when animating menu in / out or modifying the
  alpha when dragging to dismiss)
- Shows the dismiss view when PIP mode is entered, fades out after
  menu time out, on interaction the timeout is reset

Test: Enter PIP, note 'x' that is displayed, tap on it to dismiss the PIP
      or don't tap on it and it goes away
Bug: 36900043
Change-Id: Ia596ee60cd9c0d744e459564586ba6a0a9c23d5d
2017-04-11 13:41:55 -07:00
Casey Burkhardt
5d61440564 Improved multiuser support for A11y button/Magnification
- Ensures NavigationBarFragment updates Accessibility button state
  based on the settings of the current user.
- Launches AccessibilityButtonChooserActivity as the current user

Bug: 36652061
Bug: 36699310
Bug: 37103953
Test: Manual
Change-Id: Ieded484d548fb4631ceb8a873d667dd53fd2fd79
2017-04-11 13:40:45 -07:00
Philip P. Moltmann
fbb10615a5 Do not inset autofill highlight
... as requested by UX

Fixes: 37245779
Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
          --test=android.uirendering.cts.testclasses.AutofillHighlightTests

Change-Id: I750fdac9a0205233f403b5c16124cf1a9e959a06
2017-04-11 13:37:43 -07:00
Dianne Hackborn
c7214a3ade Allow appops command to modify uid ops.
The get and set commands can now operate on per-uid
app ops as well as per-package ones.

The to parse a uid string in to a more generic place, but
for now we'll leave it here.

Test: none

Change-Id: I7efbb3966ddb79639dafabbe4bf1df659bed6240
2017-04-11 13:34:14 -07:00
Adrian Roos
e76f4b0d0b Merge "Revert "AOD: Wake up fully on gestures by default"" into oc-dev 2017-04-11 20:25:59 +00:00
Chong Zhang
625e180454 MediaCas: combine openSession methods
Combine the two openSession methods into one that doesn't take
any arguments. This gives the client more flexibility in creating
sessions, they can better control how to share sessions across
different elementary streams.

bug: 22804304

Change-Id: I95ce75476b19e9ca851c40f873f46d5c7fa583ef
2017-04-11 13:13:28 -07:00
Chong Zhang
addc39ec27 MediaCas: address comments for API reviews
- Wrap session id byte array in Session object

- Move session operations from MediaCas to Session

- Remove position prarameters on descramble() method

- Retrieve cas info for a track by getCasInfo() instead
  of getDrmInitData().

bug: 22804304
bug: 36791613
bug: 36783335

Change-Id: Ib3ad8d6a2f679c0e60d2bb025ac5999339722306
2017-04-11 13:13:22 -07:00
Seigo Nonaka
042741ce4f Remove unused public APIs.
By I9ccafe7a53935960566243e2856e166878ca59ae, FontManager was gone.
So FontConfig is no longer need to be parcelable.
We can drop Parcel interface from FontVariationAxis.

Bug: N/A
Test: N/A
Change-Id: I33e92abf1e1063af312f0b7d9d6b8bd938d09c0e
2017-04-11 13:02:49 -07:00
Fabrice de Gans-Riberi
3f1febbedb Merge "AAPT2: expose return values through JNI." into oc-dev 2017-04-11 19:56:19 +00:00
Paul McLean
3b3ed7af3b Optimize HW_AV_SYNC playback by avoiding multiple timestamp block allocations.
Bug: 33627517
Test: CTS and Manual
Change-Id: Ic27d630d27efef48fc0d1db023aaec556e62e073
2017-04-11 12:52:05 -07:00
Jason Monk
824ffffcc4 Make QS light
Test: visual
Change-Id: I873bc44647d509bad0ac035058ea13ac57717416
Fixes: 37213814
Fixes: 37008758
2017-04-11 15:49:06 -04:00
Bill Yi
59bb198665 Import translations. DO NOT MERGE
Change-Id: I31705e9dbbd23f7e57892e12372a472c903df55e
Auto-generated-cl: translation import
2017-04-11 12:41:05 -07:00
Jakub Pawlowski
2d7d617e6a Merge changes from topic 'bt5-cherry-pickery-2' into oc-dev
* changes:
  Remove enable from PeriodicAdvertisingPariameters (1/2)
  Bluetooth 5 fix default AdvertisingSetParameters values
  Bluetooth: fix comment wording
2017-04-11 19:19:36 +00:00
Julia Reynolds
73ed76bc6f Allow companion device mgrs channel access
- Callbacks when channels and groups are modified
- Allow them to read and update channels and groups

Test: runtest systemui-notification
Change-Id: Ie4d02bd4583f71f9faf27603bcc59a1ec0eeaf46
2017-04-11 19:08:59 +00:00
Jeff Sharkey
a4daf89f0f Grant Shell ability to clear cached app data.
It already has CLEAR_APP_USER_DATA to clear everything inside app
storage, and clearing cached data is a subset of that.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36731175
Change-Id: Iefc5be6c80e2562a95424fd6fe413bdb018201a9
2017-04-11 13:03:54 -06:00
Conrad Chen
558acf96db TIF: add TvInputManager methods to notify apps
Adds TvInputManager methods to notify apps with protected broadcasts
for:
1. Disabling browsable state of preview and watch next programs.
2. Adding preview programs to watch next programs.

Test: build and verify manually to check if notifications are
      broadcasted.
Bug: 35881266

Change-Id: I20fd5b63f42b2c74277315bbbd251b71c649e5c1
2017-04-11 12:03:04 -07:00
Svetoslav Ganov
c62250ad52 Merge "Keep a removed API to not break GCore presubmit" into oc-dev 2017-04-11 18:58:56 +00:00
Jason Monk
ad71ae1fd0 Clean up activity a bit and disable it by default
Test: visual & demo mode
Change-Id: I3718e7f58d21a28ae937064882c4edff10534701
Fixes: 36020978
2017-04-11 14:55:25 -04:00
Bill Yi
fbfa8d152f Import translations. DO NOT MERGE
Change-Id: I9b511db2ea0cb1976da208ff2aed2b48309a8784
Auto-generated-cl: translation import
2017-04-11 11:46:06 -07:00
Jack Yu
4011fff255 Merge "Deprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" into oc-dev 2017-04-11 18:45:34 +00:00
Dmitri Plotnikov
b2653e6970 Fixing content intent on External Storage notification
Bug: 37245861
Test: attach an external drive, tap on the notification
Change-Id: I72934fe8bff1dd86edc67ad865c82c19593af7e2
2017-04-11 11:45:00 -07:00