25949 Commits

Author SHA1 Message Date
Benjamin Franz
07ba37a713 Merge "Recover status bar enabled state for all users" 2015-04-22 11:43:03 +00:00
Benjamin Franz
6d6290d282 Merge "Check for null packages in setLockTaskPackages" 2015-04-22 11:00:02 +00:00
Benjamin Franz
837f1035a6 Recover status bar enabled state for all users
Move the update of status bar enabled setting to loadSettingsLocked and
thereby recovering the enabled state for all users, not only the user
owner.

Bug: 20416833
Change-Id: Iee3d6e0f3ea8ebc5d72c0ed165bea4595ed073ba
2015-04-22 11:44:57 +01:00
Svet Ganov
16a6725b41 Merge "Fix permission check imposed by broadcast sender." 2015-04-22 09:16:18 +00:00
Svet Ganov
4f2dcfd480 Fix permission check imposed by broadcast sender.
Change-Id: Id105b00aad7b369fa0337fa63753ce7ea71b3383
2015-04-22 02:14:47 -07:00
Lorenzo Colitti
f443bfc25e Always send the DHCP client identifier.
Currently we send it only in request packets, but not in discover
packets. This might confuse servers because they might think that
the discover and the request come from different clients.

Also reorder the options in the request packet to match the order
used by the legacy DHCP client.

While I'm at it, fix the generation code for inform and decline
packets, which we do not use.

Bug: 19704592
Bug: 20335221
Change-Id: I1d45306e76dbd5da9cc4611e6df84a9f67346b2c
2015-04-22 16:44:10 +09:00
Lorenzo Colitti
a94929ba9d Log DHCP replies that we can't parse.
Bug: 19704592
Bug: 20335221
Change-Id: I73def02a08345bd96f45cb970f9f251e6d5df2db
2015-04-22 04:09:55 +00:00
Lorenzo Colitti
fa57c489f6 Allow apps with ACCESS_WIFI_STATE to listen for wifi networks
The compatibility measure introduced in bug 20081183 for apps
that connect to a Wi-Fi network without Internet access and then
expect to be able to use that network requires that such apps
register a NetworkCallback so that their WifiManager can pin them
to whatever wifi Network connects.

Currently, registering the callback requires ACCESS_NETWORK_STATE
and the app may not have that permission. Allow registering wifi
(only) callbacks if the app has ACCESS_WIFI_STATE.

If the app does not have ACCESS_WIFI_STATE (unlikely, since
CHANGE_WIFI_STATE is not very useful without ACCESS_WIFI_STATE),
then don't enable the compatibility measure.

Bug: 20081183
Bug: 20423580
Change-Id: Iad328d30c2d170dead883868fece3d922da68f6f
2015-04-22 12:01:35 +09:00
Svetoslav
8b625dbe7f Merge "Report all permissions by type correctly" 2015-04-22 01:43:35 +00:00
fenglu
b32243498f Merge "update API name to requestBandwidthUpdate()" 2015-04-22 01:32:19 +00:00
Svetoslav
1b7025f264 Report all permissions by type correctly
Change-Id: I357ad52d022ffd7703cce7e1551fa10cc7edd72f
2015-04-21 17:52:17 -07:00
fenglu
db57147a55 update API name to requestBandwidthUpdate()
Change-Id: If26942978ffcc43f06f17dfad5da790f34758395
2015-04-21 17:12:05 -07:00
Robert Greenwalt
bba3270c34 Merge "Revert "requestBwUpdate() public API review"" 2015-04-21 23:59:35 +00:00
Robert Greenwalt
2c22a91d4c Revert "requestBwUpdate() public API review"
This reverts commit 32f21da41031595a315aaf0eb67f6a094365f2b4.

Change-Id: I8c22d285ff1f56f1bd31a0fa9f2e6a79959347b1
2015-04-21 23:59:14 +00:00
Robert Greenwalt
1c7f96f3e8 Merge "requestBwUpdate() public API review" 2015-04-21 23:55:48 +00:00
Olawale Ogunwale
d080ef216e am 8ac2478b: am f7be8b67: am fa147b5c: Merge "[ActivityManager] Move UI operation to UI handler"
* commit '8ac2478b97ccb3f5e94b4df50c935c8f5cdff99c':
  [ActivityManager] Move UI operation to UI handler
2015-04-21 23:09:06 +00:00
Olawale Ogunwale
bfb8c0bdc2 am 9e6c83ab: am acaa886c: am 0408187e: Merge "[ActivityManager] Avoid unnecessary restart provider process"
* commit '9e6c83abaf59574ed5c1e9934560ea50abe296be':
  [ActivityManager] Avoid unnecessary restart provider process
2015-04-21 23:08:50 +00:00
fenglu
32f21da410 requestBwUpdate() public API review
Change-Id: I1e780b2705d13bfc85a0a8712ac1dbd623b474a1
2015-04-21 15:33:19 -07:00
Jinsuk Kim
34ea2cc278 Merge "CEC: Prevent premature standby process completion" 2015-04-21 21:12:31 +00:00
Jeff Brown
a93311f917 Merge "Make activity manager sleep top activity when dreaming." 2015-04-21 20:38:14 +00:00
Jeff Sharkey
e0ef7e8c60 Merge "Blend in force adoptable flag when set." 2015-04-21 19:45:02 +00:00
Jeff Sharkey
74acbbb2cd Blend in force adoptable flag when set.
Bug: 19993667
Change-Id: Ic7f348d171a89e889281b7efb1aa0cbade048975
2015-04-21 12:18:31 -07:00
Jim Miller
93ea09a376 Merge "Make fingerprint enroll/authenticate haptic feedback part of framework." 2015-04-21 17:45:52 +00:00
Dan Sandler
994349c61e Rediscover your own notifications.
This new API, NotificationManager.getActiveNotifications(),
allows an app to recover the set of notifications it has
posted that are still active (un-cleared, un-canceled,
visible by the user). Along with the Notification object
you'll get the original tag and id you used to post it,
wrapped up in the somewhat awkwardly-named
StatusBarNotification data structure (previously only used
internally by NoMan/SysUI and NotificationListenerServices).

Bug: 17320461
Change-Id: I8cd610956fafed4e31526b663cebdc31231ad930
2015-04-21 17:14:17 +00:00
Andrei Kapishnikov
8d505ff025 Merge "Introduced DO_NOT_ASK_CREDENTIALS_ON_BOOT flag" 2015-04-21 16:38:06 +00:00
Jae Seo
b55b838c17 Merge "TIF: Fix incorrect uses of INPUT_STATE_XXX" 2015-04-21 16:13:01 +00:00
Jae Seo
82fce64530 TIF: Fix incorrect uses of INPUT_STATE_XXX
Also changed TvInputManager.getTvInputState to return
INPUT_STATE_DISCONNECTED for removed inputs and fixed documentation.

Bug: 18563677, Bug: 20435950
Change-Id: Idb81cee852b797eb3f5113d68468905f327928e7
2015-04-21 09:11:29 -07:00
Olawale Ogunwale
f7be8b6739 am fa147b5c: Merge "[ActivityManager] Move UI operation to UI handler"
* commit 'fa147b5caf7b44f76aee515afecda639fbc52c22':
  [ActivityManager] Move UI operation to UI handler
2015-04-21 15:53:53 +00:00
Olawale Ogunwale
acaa886ce7 am 0408187e: Merge "[ActivityManager] Avoid unnecessary restart provider process"
* commit '0408187e7d2e7bdb6d0cb0521f49859a3d9a7396':
  [ActivityManager] Avoid unnecessary restart provider process
2015-04-21 15:53:45 +00:00
Craig Mautner
c5e73bf9f8 am da506ffa: am 14818725: am 80f99121: Merge "Prevent infinite layout and wallpaper flashing"
* commit 'da506ffabadd551241e23aecf08e378e7d0f30b1':
  Prevent infinite layout and wallpaper flashing
2015-04-21 15:41:26 +00:00
riddle_hsu
758f714ca8 [ActivityManager] Move UI operation to UI handler
Because ANR will dump cpu usage, stack traces in ActivityManager
thread, if system is busy or in low-end device, it may spend more
than 5s to dump. So when there is UI operation (e.g. pop dialog)
in ActivityManager thread, it may meet key dispatch timeout.

Change-Id: Ie550e31a7cff65bdcfc9af2c32989e9deb5fb2cf
2015-04-21 15:31:39 +00:00
Olawale Ogunwale
0408187e7d Merge "[ActivityManager] Avoid unnecessary restart provider process" 2015-04-21 15:29:09 +00:00
Andrei Kapishnikov
4eb6a36922 Introduced DO_NOT_ASK_CREDENTIALS_ON_BOOT flag
A new flag for DPM.resetPassword() method that specifies that the
device should be decrypted without asking for the password or pattern.

Bug 19250601

Related CL in Settings App: https://googleplex-android-review.git.corp.google.com/#/c/670206

Change-Id: I9ca3472dc18e66e618ff772dee16ca4a450e9997
2015-04-21 11:07:09 -04:00
Benjamin Franz
78c05f9742 Check for null packages in setLockTaskPackages
Bug: 20416611
Change-Id: Ibbadc952da29a34de0cf02408093b7bfc01f8779
2015-04-21 09:45:19 +01:00
Erik Kline
17e11fad0a Final removal of CONNECTIVITY_ACTION_IMMEDIATE.
Since the demise of the connectivity change delay,
CONNECTIVITY_ACTION_IMMEDIATE has been sent out back to back with
CONNECTIVITY_ACTION.

Interested parties should watch for CONNECTIVITY_ACTION.

Bug: 20013379
Change-Id: I072dddf95adb3bbd17fa1f7159d4ea848ade8f19
2015-04-21 17:02:34 +09:00
Erik Kline
32830cc820 Listen for CONNECTIVITY_ACTION instead of _IMMEDIATE
I missed this in yesterday's reaping of CONNECTIVITY_ACTION_IMMEDIATE.

Bug: 20013379
Change-Id: I6a7a0b76c1e2d183d9357ecf912ebb6dc0a5c08f
2015-04-21 13:27:48 +09:00
Jim Miller
af281ca0d3 Make fingerprint enroll/authenticate haptic feedback part of framework.
Change-Id: Icc2e9ec4b30a6f3a21e3bbe8476efc56361d6944
2015-04-20 19:04:21 -07:00
Rubin Xu
97e2f7d5af Merge "Rename public OTA policy APIs in DevicePolicyManager" 2015-04-20 23:56:27 +00:00
Rubin Xu
5faad8e4cd Rename public OTA policy APIs in DevicePolicyManager
Use the term "SystemUpdate" instead of "OTA", in public
DevicePolicyManager APIs that handle OTA policies.

Bug: 19650524
Change-Id: Iebdaea91337d617147cb411b6f47e0f3fae8671c
2015-04-20 23:27:14 +01:00
Jinsuk Kim
7e4b480a0b CEC: Prevent premature standby process completion
Handles the situation where standby is prematurely completed
by handleTerminateArc initiated in HdmiCecLocalDeviceTv.disableDevice().
Power status is now checked to stop the flow before removing
RequestArcTerminateAction which can call mPendingActionClearedCallback.

Also Make sure mPendingActionClearedCallback is set to null at the beginning
so that disable callback is not invoked unintentionally in
HdmiCecLocalDevice.checkIfPendingActionsCleared() which is supposed to work
at standby process only. It is now invoked by handleDisableDeviceTimeout
to make sure standby process is completed with PendingActionClearedCallback
at HdmiControlService.onStandby().

Bug: 20159835, Bug: 19930352
Change-Id: Iac29dfb6acff76182ff4e9563edc611406c23f3c
2015-04-21 06:56:04 +09:00
Christopher Tate
f9767d680d Infrastructure for notification backup/restore
Introduce a fairly general "store byte[] blobs as backup keys" helper, and
use that to integrate with the Notification Manager.  The helper provides all
the machinery of managing prior state, compressing the blob on the wire, etc.

Bug 19848954
Bug 20105530
Bug 17755700

Change-Id: I4aa808172244af6db0ab2f4440cc266a797655d7
2015-04-20 14:08:25 -07:00
Stuart Scott
c6213ba09f Merge "Fixing build break" 2015-04-20 20:16:25 +00:00
Svet Ganov
7a0fe44d6a Merge "Report all permissions for user in PermissionsState" 2015-04-20 20:10:32 +00:00
Svet Ganov
7aa6dfeb01 Report all permissions for user in PermissionsState
Change-Id: I08a228018401820ef82cf1f95fe29556d3aeba5e
2015-04-20 13:09:11 -07:00
Stuart Scott
9a9a1d923d Fixing build break
Change-Id: I7ab3673627d1fda2d96a17c7e1823417fcb5cfef
2015-04-20 11:33:06 -07:00
Stuart Scott
f1fb39763d Move factoryReset to service and protect.
bug:16161518
Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
2015-04-20 10:52:35 -07:00
Erik Kline
f851d6dd2a CONNECTIVITY_ACTION is the new _IMMEDIATE
Bug: 20013379
Change-Id: I3e904dc0a0ddb30c7bb8cdb24d0762052ddc59eb
2015-04-20 16:11:58 +09:00
Jeff Sharkey
eba260d6d3 Wait for first scan before partitioning is done.
This means newly created volumes are at least created for other
platform components to start poking with.

Bug: 19993667
Change-Id: I561a5d0e3659ff9146832aeb6a31ab78fd9da580
2015-04-19 14:35:16 -07:00
Jeff Sharkey
e6c04f9417 Broadcast hidden volumes, notification polish.
Send limited broadcast intent when certain volume state changes
occur; the only customer for now is ExternalStorageProvider.

Change notification flow to be less bumpy.  Pick USB icon based on
disk type, and avoid using "generic" disk labels.

Bug: 19993667
Change-Id: I263bc9e9aae2ae57eb4d1afe76da686aee5475fb
2015-04-18 23:11:00 -07:00
Jeff Sharkey
529f91fc8e Always send volume UUID with installd commands.
Since packages can be moved to other volumes, all relevant commands
to installd now require an explicit volume UUID parameter.

Bug: 20275577
Change-Id: Ie84f5bc43c7aada5800b8d71692c7928b42b965e
2015-04-18 21:11:58 -07:00