128831 Commits

Author SHA1 Message Date
Jean-Michel Trivi
1990fe4e96 PlayerRecord: remove obsolete accessors
Change-Id: I0a7789e28c1427b6e9f770368f9bab9c097b3594
2014-04-22 18:05:03 +00:00
Jean-Michel Trivi
0456e3aab1 Merge "MediaFocusControl: priority to playing players for media button" 2014-04-22 17:36:10 +00:00
Chris Craik
98ae02c599 Merge "Fix is_zero check" 2014-04-22 17:29:23 +00:00
John Spurlock
9a722ebc32 Merge "Apply insets manually in StatusBarWindowView." 2014-04-22 17:22:26 +00:00
Ji-Hwan Lee
87e7ba4f45 Merge "Add config resource to add inital mock location providers" 2014-04-22 17:17:29 +00:00
Chris Craik
222f33178b Fix is_zero check
Fixes x/y rotations which were incorrectly disabled due to this check.

Change-Id: Ie8a7c8904c729a91b18243323b0be6110e743137
2014-04-22 10:09:03 -07:00
Justin Koh
d90712d044 am 3b9a3cc0: Update GlobalActions for watches.
* commit '3b9a3cc02ecb025f8b1f322015c7d1fb46222f9e':
  Update GlobalActions for watches.
2014-04-22 17:06:56 +00:00
Jorim Jaggi
c0e4567560 Merge "Hide navigation bar on Keyguard." 2014-04-22 17:04:29 +00:00
Justin Koh
3b9a3cc02e Update GlobalActions for watches.
Update GlobalActions for watches: only have power off and settings, due to
limited real estate.

Change-Id: Ie3cbbb287f8c71c8c16a00637c83da6921d56e2e
2014-04-22 10:01:47 -07:00
John Spurlock
fba9120ce1 Apply insets manually in StatusBarWindowView.
Bug:14131489
Change-Id: Ie4be2185cae98764ea44b2e042210f13412a02aa
2014-04-22 12:58:26 -04:00
Jorim Jaggi
a6310293c5 Hide navigation bar on Keyguard.
This also moves the camera affordance from navbar to the navigation
panel, so it is still visible on the Keyguard.

Bug: 14086354
Bug: 14085922
Bug: 14110532
Bug: 14059294
Change-Id: I93b51381915a67c688cdffd055fd149f2a220b00
2014-04-22 16:56:26 +00:00
Jean-Michel Trivi
8be88d1144 MediaFocusControl: priority to playing players for media button
When registering a media button event receiver (through
 AudioManager.registerMediaButtonEventReceiver()), do not
 always push the receiver to the top of the stack of event
 receivers:
 - only push to the top if the associated RemoteControlClient
   is in a playing state
 - otherwise push it below the entries at the top of the stack
   that are in a playing state
When changing the playstate of a RemoteControlClient:
 - push to the top of the stack the corresponding PlayerRecord
   is the state is a playing state
 - otherwise push it below the entries at the top of the stack
   that are in a playing state

When AudioService starts (e.g. after boot) and the last media
 button receiver is restored, it goes in the stack.
After this CL, this entry is not "orphaned" anymore after the
 same application registers itself to receive media buttons:
 the entry from the restoration is now properly associated with
 the registration from the application.

Bug 10749554

Change-Id: I985f9cc17b64a60ed4f2f2f6d03e117fb4e27570
2014-04-22 09:46:59 -07:00
Dan Sandler
dc5f16bf09 Avoid sending broadcasts before BOOT_COMPLETED.
SystemUI instances can now take advantage of a new lifecycle
callback, onBootCompleted(), to avoid jumping the gun.

Bug: 14092537
Change-Id: I3f7db7a4753f874c4d75235f263c2bd374debec4
2014-04-22 11:51:42 -04:00
Selim Cinek
a8fb4a2d00 Merge "Avoiding intermediate states in NotificationStackScroller" 2014-04-22 15:15:05 +00:00
John Spurlock
860107a2cc Merge "Do not disturb: persist user config." 2014-04-22 15:03:08 +00:00
John Spurlock
056c519df1 Do not disturb: persist user config.
Load and store user configuration for do not disturb.  Separate
out service-related aspects into new helper.  Make config availble
over NoMan for settings.

Implement phone + message based filtering (package whitelist for now).

Implement automatic enter/exit zen mode overnight scheduler.

Bug:14211946
Change-Id: Ib28aab0e4c5c9a5fd0b950b2884b1ab618fdfeca
2014-04-22 11:01:24 -04:00
Selim Cinek
343e6e258a Avoiding intermediate states in NotificationStackScroller
The StackScrollAlgorithm was modified such that the notifications
now don't layout anymore during scrolling and therefore
intermediate states are avoided except for the first card.
Also made the top stack a bit smaller and fixed a bug where the
scrolling was not working on the very first try.

Bug: 14080821
Bug: 14081652
Change-Id: I924a9f8532486856fc2ecd88f6c10d26023a5bc3
2014-04-22 17:00:05 +02:00
Baligh Uddin
49c4aeef08 am 94723401: (-s ours) am 04acf38c: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '94723401bdfaf2d1a5c792654fe18d7f6d21607e':
  Import translations. DO NOT MERGE
2014-04-22 14:52:43 +00:00
Baligh Uddin
94723401bd am 04acf38c: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '04acf38ce281f86bd0f28485405c59e489657dfb':
  Import translations. DO NOT MERGE
2014-04-22 14:49:14 +00:00
Baligh Uddin
04acf38ce2 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-22 14:46:28 +00:00
Baligh Uddin
af57bb911a Merge "Import translations. DO NOT MERGE" 2014-04-22 14:46:26 +00:00
Ji-Hwan Lee
ab47ff18c4 Merge "Add config resource for disabling KeyguardService" 2014-04-22 14:14:21 +00:00
Andrew Solovay
cd8f0c58bb am 97b7208f: am da1a10f7: am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit '97b7208fa436d279b5a7cc4fc582e7ba89181a84':
  Fixed a typo in a code sample.
2014-04-22 13:41:50 +00:00
Andrew Solovay
97b7208fa4 am da1a10f7: am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit 'da1a10f727746f9f85c576adb2c4c91c552255f3':
  Fixed a typo in a code sample.
2014-04-22 13:36:44 +00:00
Guang Zhu
bc3c1ad960 am 65bcc3ff: am 6c0454ec: Merge "add bt instrumentation to run as a util" into klp-modular-dev
* commit '65bcc3ff9212514a000ccdcc4d8295ddaedcef92':
  add bt instrumentation to run as a util
2014-04-22 13:33:13 +00:00
Craig Mautner
6c83b77b87 am 43c6a98f: am 6985badc: Fix black ActivityView
* commit '43c6a98f0ffe079429735a485acaa81841740fac':
  Fix black ActivityView
2014-04-22 13:33:08 +00:00
Craig Mautner
6e2a3542e1 am 51bd56c9: am 6cdf51f2: Don\'t use finalize on ActivityView to cleanup.
* commit '51bd56c953e2bd860e4a2d97a0bf95267cf3fda2':
  Don't use finalize on ActivityView to cleanup.
2014-04-22 13:33:04 +00:00
Craig Mautner
7ad27288f1 am c00c89b1: am f4c909bc: Fix ActivityView lifecycle
* commit 'c00c89b1add5bcbf6a76287c9a3384877449c746':
  Fix ActivityView lifecycle
2014-04-22 13:32:54 +00:00
Guang Zhu
65bcc3ff92 am 6c0454ec: Merge "add bt instrumentation to run as a util" into klp-modular-dev
* commit '6c0454ecae4fe46b7032299d02fc6da80f171ed2':
  add bt instrumentation to run as a util
2014-04-22 13:27:56 +00:00
Craig Mautner
43c6a98f0f am 6985badc: Fix black ActivityView
* commit '6985badc632f2ff8425aa86423577a96eafc49e9':
  Fix black ActivityView
2014-04-22 13:27:53 +00:00
Craig Mautner
51bd56c953 am 6cdf51f2: Don\'t use finalize on ActivityView to cleanup.
* commit '6cdf51f21df1ca2397618635767e6e53a65799ad':
  Don't use finalize on ActivityView to cleanup.
2014-04-22 13:27:49 +00:00
Craig Mautner
c00c89b1ad am f4c909bc: Fix ActivityView lifecycle
* commit 'f4c909bcb87d6f103c9f9e8255fa61bd86f4de67':
  Fix ActivityView lifecycle
2014-04-22 13:27:44 +00:00
Andrew Solovay
da1a10f727 am c68e2089: am 3555e4ae: Fixed a typo in a code sample.
* commit 'c68e2089755dc35b34d620944bcceb63e1283015':
  Fixed a typo in a code sample.
2014-04-22 13:27:09 +00:00
Andrew Solovay
c68e208975 am 3555e4ae: Fixed a typo in a code sample.
* commit '3555e4aef0d5664645e35d33779bf1bd140a7e50':
  Fixed a typo in a code sample.
2014-04-22 13:20:44 +00:00
Ji-Hwan Lee
25eb3d0ce4 Add config resource for disabling KeyguardService
Bug: 14102545
Change-Id: I0c7936e16a8bda98e49e6a2c396117d7a8fd5664
2014-04-22 12:39:26 +09:00
Guang Zhu
6c0454ecae Merge "add bt instrumentation to run as a util" into klp-modular-dev 2014-04-22 03:33:47 +00:00
Guang Zhu
03800b8873 add bt instrumentation to run as a util
some bt test util methods are useful as device setup util, this
change exposes some of them via a BluetoothInstrumentation so
that they can be invoked like commands for setting up or
controlling bt state in test harness

Change-Id: I1d40baf374e145ab550ae4fa5f581e2eaf2e29bb
2014-04-21 19:06:17 -07:00
Winson Chung
6513f35cbb Merge "Fixing transition from tasks excluded from Recents into Recents." 2014-04-22 00:33:37 +00:00
Alan Viverette
4899e66db9 Merge "Add touch feedback to edit text" 2014-04-22 00:31:55 +00:00
Alan Viverette
c3f35b01b5 Add touch feedback to edit text
Change-Id: Id25692bfa40f5145d6ca807111bbd5d0c4774d07
2014-04-21 17:30:22 -07:00
Youngsang Cho
6b2c07cb36 Merge "Add overlay view in Tv Input Framework" 2014-04-22 00:29:49 +00:00
Andrew Solovay
3555e4aef0 Fixed a typo in a code sample.
Fix is staged to: http://asolovay.mtv.corp.google.com:9000/guide/topics/ui/actionbar.html#Dropdown

Bug: 14043905

Change-Id: I8b71d55d51bf88ab9790309e6e63e755d03b2c85
2014-04-22 00:04:39 +00:00
Jeff Davidson
2ca3962bc0 Merge "Initial implementation of NetworkScoreManager's backing service." 2014-04-22 00:02:47 +00:00
Lajos Molnar
e0e77cb5bb Remove VideoEditor
remove android.media.videoeditor.*

No longer supported and should not be used.

Bug: 13542518
Change-Id: I12de122443f0289ab1dfdd8b553e572a830cf412
2014-04-21 16:11:51 -07:00
Jeff Davidson
6a4b220f12 Initial implementation of NetworkScoreManager's backing service.
This service will ultimately be responsible for propagating scores
down to lower-level network subsystems. For now, it just keeps scores
in memory and exposes these for debugging purposes via "adb shell
dumpsys network_score".

This change also adds provisioning of a default scorer. When
NetworkScoreService is first initialized, it checks to see if it has
ever set a default scorer; if not, it reads a package name from a
build config property and attempts to set it as the default.

Also add autogenerated equals/hashCode methods to all parcelables.

Bug: 14111427
Bug: 13786258
Change-Id: I02271171653d42e12acd240b73b9e23950744f6b
2014-04-21 16:04:05 -07:00
Craig Mautner
6985badc63 Fix black ActivityView
Don't add the surface to the VirtualDisplay until the activity
has drawn. That will keep the TextureView from turning black.

Fixes bug 12821632.

Change-Id: Ia06e9f91be3e14ad724f735ae4e201ac798863a2
2014-04-21 15:28:43 -07:00
Craig Mautner
6cdf51f21d Don't use finalize on ActivityView to cleanup.
Use a static object to contain the IActivityContainer reference
rather than storing it directly in the ActivityView itself. Then
when the ActivityView gives up the reference we can use a clean
finalize() call to release the IActivityContainer.

Fixes bug 14184756.

Change-Id: I7e05fcce3040b2b958f7c9cd030d5e3b745f3169
2014-04-21 15:28:43 -07:00
Craig Mautner
f4c909bcb8 Fix ActivityView lifecycle
Major changes to maintain the VirtualDisplay across repeated
attach/detach cycles of an ActivityView. This keeps the activities
and VirtualDisplays in the ActivityView from getting into bad states.

Fixes bug 14107002.

Change-Id: Idc2aaf85ac496eab0eeb436736cb10a2020040e8
2014-04-21 15:28:42 -07:00
Robert Greenwalt
3a025393b5 Merge "Make sure events handled on same looper" 2014-04-21 22:21:24 +00:00
Robert Greenwalt
2c9f5475be Make sure events handled on same looper
Two handlers are used to call a function, but the init was not forcing them on the
same looper/thread, so we could get synchronization problems as a result.

Moved to a single looper.

Also added finally clauses to clean up if a broadcast throws an uncaught exception.

bug:13399768
Change-Id: I0044e2442335ee45a15588f910064e848cf6ac55
2014-04-21 15:12:06 -07:00