142396 Commits

Author SHA1 Message Date
Jungshik Jang
b3e114af17 Clear timout when all pending actions are cleared.
Remove disable_device_timeout message when all pending
actions are cleared, PendingActionClearedCallback#onCleared
is called.

Change-Id: I32e37c94c6a6dfc149da3bb0553d2a3238bae479
2014-07-11 23:17:55 +09:00
Jungshik Jang
b69aafbfad Hook up missing volume-change with AudioManager.
Whenever new volume change is notified from system audio,
hdmi control service should delegate it to AudioManager.
Note that, it should set FLAG_HDMI_SYSTEM_AUDIO_VOLUME,
which prevents audio manager from notifying volume-
change event back to hdmi control service.

Change-Id: I6621f517a4d20226aea9159bbae6b699e2c2ffd0
2014-07-11 23:09:56 +09:00
Yohei Yukawa
5528fe43fa Merge "Consolidate test cases for InputMethodSubtype" 2014-07-10 21:52:20 +00:00
Yohei Yukawa
a52aeda808 Consolidate test cases for InputMethodSubtype
We have accepted any arbitrary text as a locale
string when instantiating InputMethodSubtype object.
As a consequence, some existing code might assume
that InputMethodSubtype never canonicalize/normalize
the given locale string.

This CL add a test case for such scenario.

Change-Id: Ie08d6e149e22a60d6c4d40049a3e6afeee87dc44
2014-07-11 23:08:34 +09:00
Yohei Yukawa
7c940e94c9 Merge "Polish new IME API for L part 2: CursorAnchorInfo" 2014-07-10 21:43:01 +00:00
Zoltan Szatmary-Ban
c3b07a0c9c BatteryStatsHelper.refreshStats for multiple users
Battery usage list is now populated for apps belonging to a list of users or profiles.

Change-Id: Ie899af74a4b3a0f3cd6ae3c93394f01f4f54a5c7
2014-07-11 14:04:01 +01:00
Narayan Kamath
ad8dff5b13 Use the correct ABI list while copying native libs.
copyNativeBinariesIfNeededLI returns an index into the list
it was handed, so using Build.SUPPORTED_ABIS here is incorrect.

bug: 16013931

Change-Id: I35e0dad4b5e0c1dc1199f381d8b99cd228719092
2014-07-11 13:14:22 +01:00
Yohei Yukawa
0023d0e0c4 Polish new IME API for L part 2: CursorAnchorInfo
This CL addresses feedbacks from internal customers for new
input method APIs that are mainly used for physical keyboard
support in L.

For performance reasons, #onUpdateCursorAnchorInfo is not called
back by default and each input method has to enable this
event notification explicitly whenever fine-grained character
locations are needed.

In L-preview, InputMethodSession#setCursorAnchorMonitorMode was
introduced for this purpose.  However, we got several feedbacks
to be addressed.
- The effect of #setCursorAnchorMonitorMode is not preserved
  during focus change.  IMEs need to call
  #setCursorAnchorMonitorMode every time when #onStartInput is
  called.  This is tricky and hard to understand.
- As #onUpdateCursorAnchorInfo is a new API, not all
  applications/text editors have supported it. Therefore IMEs
  can't always rely on it. However, there is no way to query
  if the attached target is supporting this new API or not.
  It would helpful for IME authors if we can provide a
  reliable way to query if the attached input target is
  supporting the new API or not.

In order to address these issues, the triggering method has
moved from InputMethodSession to InputConnection in this CL,
as an analogy of existing InputConnection#getExtractedText API,
which has provided similar functionality including optional
reactive event callbacks from the application to the IME.

BUG: 15812658
BUG: 16118603
Change-Id: I3c6b69bd9d79b199afe68d838f25effa6048e5cc
2014-07-11 21:13:17 +09:00
Jorim Jaggi
4e35782787 Merge "Fix panel height when only one notification is shown" 2014-07-10 20:28:35 +00:00
Jorim Jaggi
2c5baca5ed Fix panel height when only one notification is shown
Also fix the place holder height for the stack when QS is expanded.

Change-Id: Ia28373c21b5d2155e735425d5657dde2dec49c6d
2014-07-11 15:35:45 +02:00
Kenny Guy
8219a25e31 Merge "Enforce block uninstall in PackageManager" 2014-07-10 20:16:40 +00:00
Sailesh Nepal
4dd9df58a6 Fix exception in ConnectionServiceAdapter.binderDied
Bug: 16215975

Change-Id: I49e7c77c01f306995bb743523436c7620c48a568
2014-07-11 13:35:38 +00:00
Leon Scroggins III
b101ebe8a6 Recycle original screenshot after rotation.
After copying the Bitmap to a new Bitmap, there is no need to keep
the original pixels.

This may help memory pressure when running automated tests and taking
lots of screenshots, although it does not fix the main source of the
problem.

BUG:15454296
Change-Id: I7e61886fbb46a8068db3e8dfa1fcb0afd88ea430
2014-07-10 16:06:50 -04:00
Tim Murray
8fdcf4a08a Fix broken blend intrinsic.
Change-Id: I3a1749aed701e17b48c267ca749c9cf29ca12e43
2014-07-10 13:00:10 -07:00
destradaa
17ff2b2b3a Mark FLP constants as public, so they can be consumed by geofencing.
Change-Id: I6e73692064a9f58eeac6ba1118c37ac500df0d9f
2014-07-10 12:41:11 -07:00
Wei Wang
35d552f7ad Make WifiScanner System API
Change-Id: I0e2ebae998165abbb48a8cee0a3723ace2ca99e5
2014-07-10 11:29:21 -07:00
Santos Cordon
f3e83e4503 Dynamically obtain telecomm service from PhoneManager.java
Bug: 16206418
Change-Id: Ie8845f4baf8956d03fcaf26cb899f5fb056df6cc
2014-07-10 18:11:21 +00:00
Colin Cross
0769e55001 android.os.Process: add killProcessGroup
Add Process.killProcessGroup to interface between ActivityManager and
libprocessgroup.

Bug: 15313911
Change-Id: I5226a6d86153b863e30d936cf1c84e256f0d7ea5
2014-07-10 18:08:08 +00:00
Jorim Jaggi
266f677f1b Fix that everything lights up when clicking on the header
Bug: 16133698
Change-Id: I2eafb7efd3b605b0b39c5dcf5a828b3f866775d9
2014-07-10 17:33:20 +00:00
Kenny Guy
1b88da54a6 Enforce block uninstall in PackageManager
Bug: 14127299
Change-Id: I144233b97e5774f6a5d1d2b49f3f0f8a360557ac
2014-07-10 17:08:33 +01:00
Jason Monk
582d9111d7 Add API for device owner to switch users
Once verified that caller is device owner just calls through to
the activity manager and acts like that call.

Change-Id: I34023313cd6742b73d2105655ec6b631879aa37a
2014-07-10 11:05:07 -04:00
Yohei Yukawa
c09a04da29 Merge "Polish new IME API for L: CursorAnchorInfo" 2014-07-10 01:20:57 +00:00
Yohei Yukawa
0b01e7fc58 Polish new IME API for L: CursorAnchorInfo
This CL allows application authors and input method authors to
communicate with each other more precisely on the visibility of
insertion marker and composing characters. Now we can describe
the situation where the coordinates of them are available but
they are overlapped by other UI elements.

This change is based on feedbacks from internal customers of
this preview API.

Change-Id: I82eba0e844a6f8b99ba11a68fad272399034cc24
BUG: 16118303
2014-07-10 20:23:26 +09:00
John Spurlock
cd22c3ec53 Merge "Volume: allow dialog to play sound over keyguard." 2014-07-10 00:46:47 +00:00
Narayan Kamath
aef5fcdcb5 Don't assume all system apps are bundled.
Calling setBundledAppAbisAndRoots will end up
setting a path that points to /system/ if it's called
on a system app that was subsequently updated.

bug: 16208505

Change-Id: I0bf85e0341029b3d4d209a402d30c2ce357daaf2
2014-07-10 18:05:38 +00:00
Sreeram Ramachandran
d7e71641f6 Block address families by default in VpnService.
If a VpnService only configures IPv4 addresses, routes and DNS servers, block
IPv6 by default, and vice versa. Also add an API to unblock a family without
needing to add an address, route or DNS server.

New API with stub implementation to be filled out later.

Bug: 15972465
Change-Id: I70d4d5c30ee71802610f6e16f100db6cbccef42c
2014-07-10 17:54:03 +00:00
Sreeram Ramachandran
81c295e1c8 Allow VPNs to dynamically add/remove IP addresses on their tun interface.
New API with stub implementation to be filled out later.

Bug: 15409819
Change-Id: Ic0d2d459953eac86832905115a0d413b9b0b2660
2014-07-10 17:53:18 +00:00
John Spurlock
6bd096c8d6 Volume: allow dialog to play sound over keyguard.
Now that we are allowing the volume dialog above the keyguard,
the old suppression rule does not apply.

Bug:16186697
Change-Id: I071f1a2856850218e267d1fbaf547db44b644382
2014-07-10 09:39:04 -04:00
Julia Reynolds
3ff3db5f5c Merge "INSTALL_NON_MARKET_APPS lives in Secure again." 2014-07-10 00:38:28 +00:00
Julia Reynolds
25838509d8 INSTALL_NON_MARKET_APPS lives in Secure again.
Change-Id: Ib3c7a48b8dc2d649f2f6c8e8cd822ab342634afd
2014-07-10 12:29:40 -04:00
RoboErik
a12a9a5d4a Merge "Pipe volume keys to adjustVolume instead of sendMediaKeyEvent" 2014-07-10 01:20:57 +00:00
RoboErik
3c45c29109 Pipe volume keys to adjustVolume instead of sendMediaKeyEvent
We were calling sendMediaKeyEvent with a KEYCODE_VOLUME key, which was being
ignored because it's not a media key. This redirects the volume keys to use
the adjustVolume methods instead. It also sends the appropriate flags to
make the lock screen consistent with the home screen and the volume keys
only affect active playback when the screen is off.

bug:15900519
Change-Id: I9f3853a2385869353a58debae6e6ca9933ba06ce
2014-07-10 16:15:45 +00:00
George Mount
b5ef7f8c6d Don't change View visibility during activity transitions.
Bug 16187776

Changing View visibility can change the View's focused item.
To prevent this, a backdoor is introduced into Transition
and Visiblity to set the target Visibility used in Activity Transitions.

Change-Id: Idfd2c6fba2cad80fecdfd086990ddc604f86ca68
2014-07-10 16:01:46 +00:00
Niels Egberts
2e3f2c6727 Add more semiotic class types for TtsSpan.
Change-Id: I4c5f141f56d6ec679be59634693f591e3386f152
2014-07-10 15:29:56 +00:00
Przemyslaw Szczepaniak
cafd15216e Fix TTS regression, TTS#stop can result in #onDone callback.
Regressinon in the L, side effect of the rewrite. In pre-L android,
UtteranceProgressListener#onDone was called (but only if client
received UtteranceProgressListener#onStart for the utterance in progress)
after client called TextToSpeech#stop. This changeset reinstates
this behaviour.
+ Removed not used fallback callback

Bug: 16149006
Change-Id: I2eb5ede0abe6f5717b07f09adad861465575c238
2014-07-10 14:32:31 +00:00
Eino-Ville Talvala
8ce1544edb Merge "Camera2: Update capabilities metadata" 2014-07-10 00:46:47 +00:00
Eino-Ville Talvala
08bc3b0f02 Camera2: Update capabilities metadata
Change-Id: Ic2dc18f535cbc34a1504a6a746e7f7303fa6e839
2014-07-10 17:06:59 +00:00
Fabrice Di Meglio
2331e9ebad Add userId as a new field for SearchIndexableData
See bug: #15837747 Search - update for Enterprise support

Change-Id: I1231f8870754aafa449a4c17350be70b524da230
2014-07-10 16:39:08 +00:00
Tyler Gunn
58e61108f8 Merge "Adding features and data_usage columns to call log." 2014-07-10 00:35:26 +00:00
Tyler Gunn
e5daf9112d Adding features and data_usage columns to call log.
Tracks features of the call (eg video) and total bytes of data
usage.

Bug: 16015261
Change-Id: Icb8ef7559490f26614bc1cfb1f7e2f514ebea30f
2014-07-10 14:02:05 -07:00
Winson Chung
787c497fe1 Merge "Fixing issue where we were responding to SCREEN_OFF and going home even if Recents was not visible. (Bug 16204632)" 2014-07-10 20:49:26 +00:00
Sreeram Ramachandran
1384605a89 Update VpnService API documentation.
The goal of blocking an address family by default is to prevent unintended
security holes. For example, a VPN that only deals with IPv4 doesn't know or
care about IPv6 at all, so it doesn't do anything for IPv6. An app shouldn't be
able to get around (bypass) the VPN by using IPv6.

Therefore, it is not necessary to block an address family in removeAddress().
The VPN was clearly aware of the address family (since it had configured such an
address before), so if it wants to block that family, it should add a default
route for that family and explicitly drop/block/reject those packets.

Bug: 15972465
Bug: 15409819
Change-Id: I845426fa90dc2358d3e11bc601db0b4bd5d3b7ac
2014-07-10 20:59:51 +00:00
Winson Chung
1e44934f02 Fixing issue where we were responding to SCREEN_OFF and going home even if Recents was not visible. (Bug 16204632)
Change-Id: Id29d4190f63bfa3986d15975418f47a3a79fcb83
2014-07-10 20:59:42 +00:00
Robert Greenwalt
5f90bccd96 Add networkSpecifier string to NetworkCapabilties.
Allows transport specific network selectivity where multi-sim or sta+sta
is supported.

bug:1575597
Change-Id: I9c60fe7710e988c17d63236788b492a3ddd264a1
2014-07-10 20:58:20 +00:00
Vinit Deshpande
ebb5306195 Fix name mismatch in WifiAdapter
Change-Id: I895a2b7a8aa07a14f54543d0f86ad4a8e7660051
2014-07-10 13:45:01 -07:00
Vinit Deshpande
c7cc37b3cd Introduce Wifi Adapters
This change extracts all the wifi interfaces on the device; and provides
its supported features.

Change-Id: I7fbdbec684d653a6e4bf851797e3065ce222e873
2014-07-10 13:45:01 -07:00
Vinit Deshpande
19024b6d82 Lower minimum scanning period in WifiScanner
Change-Id: I4af8200a23c2b61b2505424a3832ca47d390fd80
2014-07-10 13:45:01 -07:00
Paul Jensen
6bc2c2c34f Convert Vpn from NetworkStateTracker to NetworkAgent.
This eliminates the need for the ConnectivityService.VpnCallback class.
This requires shifting VPNs to the new "network" netd API.
VpnService.protect() is modified to no longer go through ConnectivityService.
NetworkCapabilities is extended to add a transport type for VPNs and a
capability requiring a non-VPN (so the default NetworkRequest isn't satisfied
by a VPN).

bug:15409918
Change-Id: Ic4498f1961582208add6f375ad16ce376ee9eb95
2014-07-10 20:39:33 +00:00
Ruben Brunk
5952cecc16 Merge "camera2: Add BlackLevelPattern class." 2014-07-10 17:35:05 +00:00
Ruben Brunk
52842e7a6f camera2: Add BlackLevelPattern class.
Bug: 15448889

- Adds BlackLevelPattern class and marshaller.
- Updates BlackLevelPattern tag to use this class.

Change-Id: I5d3393f4a1695664bc5315eb592fb0a4e154d22e
2014-07-10 19:57:16 +00:00