Commit Graph

62187 Commits

Author SHA1 Message Date
Jorim Jaggi
958f00f396 Do not clear INSCREEN and INSET_DECOR for resolver
Since we switched this activity to draw the system bar backgrounds,
and clearing these flags leads to that we don't get the insets
communicated, we need to remove the clearing of the flags.

Bug: 27914346
Change-Id: I72114ac7cec40933fa45891b3d1441bd30f883d4
2016-04-02 01:18:24 +00:00
Adam Powell
7af7e3d18e Merge "Don't performPendingDeferredStart on fragments that aren't added" into nyc-dev 2016-04-02 01:09:00 +00:00
Makoto Onuki
b1a684c646 Merge "ShortcutManager: implement backup & restore" into nyc-dev 2016-04-01 23:18:43 +00:00
George Mount
1747022004 Merge "Removed improper check on mCalledExitCoordinator." into nyc-dev 2016-04-01 23:06:59 +00:00
Ajay Panicker
4bb4830b75 Get name and address without enabling Bluetooth
Bug: 27665077
Change-Id: I2a06c1a65f22b2f9095a859f5bdd39d4626da165
2016-04-01 22:53:52 +00:00
Adam Powell
b963c99c3a Don't performPendingDeferredStart on fragments that aren't added
Framework edition

When setting a user visibility hint on a fragment it was possible to
have a FragmentManager already set due to a transaction being composed
but before the commit, so only checking that we have one isn't
sufficient for determining whether we should perform a pending
deferred start. This could happen easily with ViewPager adapters. Use
isAdded() instead.

Also fix a bug where we could set our internal tracking of fragments
that need a deferred start incorrectly.

Bug 27814550

Change-Id: I3be65728650c48d27a3a9dd4ca15f52006d14ab9
2016-04-01 15:29:04 -07:00
Toni Barzic
1c2db8992f Merge "Teach keyguard about PASSWORD_QUALITY_MANAGED" into nyc-dev 2016-04-01 22:28:57 +00:00
Joe LaPenna
f38aa6ba2b Merge "Fix NPE in AlarmManager.cancel(...)" into nyc-dev 2016-04-01 22:22:46 +00:00
Jorim Jaggi
e6e108e0eb Launch everything from the shade in full-screen stack
Bug: 27864383
Change-Id: I2925661f1c325f4385876188a5866ab6b57a8f19
2016-04-01 22:17:58 +00:00
Chong Zhang
fbe10f175f Merge "Avoid extra relaunch when rotating side-by-side apps" into nyc-dev 2016-04-01 21:56:45 +00:00
Joe LaPenna
33ee4bf18b Fix NPE in AlarmManager.cancel(...)
If AlarmManager.cancel is called before any component has had a chance
to register an alarm, sWrappers will not have been set, as it is only
initialized in setImpl.

When cancelling an alarm and sWrappers does not exist, log a warning and
return early.

BUG: 27972657
Change-Id: Ied10719ba1d154f97eecfc32f429fd9ce39bf747
2016-04-01 14:07:35 -07:00
Makoto Onuki
2e210c4d0f ShortcutManager: implement backup & restore
Also:
- Fix cross profile pinning.  Now ShortcutLauncher correctly keeps
track of target package user IDs.

- Add performance stats for package manager calls and show them on
dumpsys.

Bug 27548047

Change-Id: I2472980b2955b6c70947aaaa9b76f75d0616db6e
2016-04-01 14:06:56 -07:00
Chong Zhang
167bbfac24 Avoid extra relaunch when rotating side-by-side apps
Update configuration with WM first and check if the stacks need to be
resized due to the update. If so, let activity manager resize the stacks
inline, instead of letting WM schedule another pass of resizeStack. This
way the configuration will be updated to the latest before ensureActivity-
ConfigurationLocked, and we don't need another relaunch there.

bug: 27834014

Change-Id: Ib761a96cada0c3247b0480f18370670c593159da
2016-04-01 13:58:41 -07:00
Ashutosh Joshi
2c697fb4a8 Revert "Added handling apps query response from context hub"
This reverts commit adf75e31f5.

Change-Id: I8391eb57c3a53e686bd817d27860fa6f785113f1
2016-04-01 20:49:28 +00:00
George Mount
056b7d5403 Removed improper check on mCalledExitCoordinator.
Bug 27969302

mCalledExitCoordinator can be nulled before the onResume is called,
so it cannot be used to determine whether or not the Activity is
a caller or called.

Change-Id: Ie3696ed59b89cfc8c6145d22bc230111f0813701
2016-04-01 13:19:35 -07:00
Alan Viverette
f04580852d Merge "Clean up Dialog annotations, lint warnings, and declarations" into nyc-dev 2016-04-01 20:17:16 +00:00
Carlos Valdivia
bb5e52f928 Merge "introduce GET_PASSWORD_PRIVILEDGED permission." into nyc-dev 2016-04-01 20:02:00 +00:00
Philip P. Moltmann
0d1407e609 Fix Print CTS tests.
Fixes: 27971210
Change-Id: Ied11b2f1c528fe5e204e683d988b4efbd2562ef0
2016-04-01 12:22:13 -07:00
Alan Viverette
48728c2179 Clean up Dialog annotations, lint warnings, and declarations
No functional changes.

Change-Id: If38c9d829d83e762f8c2d05c2fe060c56804b38f
2016-04-01 15:00:10 -04:00
Adam Lesinski
ce2a399032 Merge "ResourcesManager: Fix a cache issue" into nyc-dev 2016-04-01 18:53:22 +00:00
Adam Lesinski
0cd9a7ea3b ResourcesManager: Fix a cache issue
Forgot to cache the creating of ResourcesImpl during an Activity
override config update.

Bug:27644297
Change-Id: I65d9086f6d32f5adc7231aa3a1797d4f00c4b9a9
2016-04-01 11:48:10 -07:00
Alan Viverette
1722613b0c Merge "Fix default gravity value for FrameLayout.LayoutParams" into nyc-dev 2016-04-01 18:26:51 +00:00
Alan Viverette
228137fa26 Merge "Refactor DatePickerDialog constructors to avoid early callback" into nyc-dev 2016-04-01 18:22:20 +00:00
Andre Eisenbach
9d7d2ec6d0 Merge "Fix GATT Characteristic write type serialization" into nyc-dev 2016-04-01 17:59:31 +00:00
Jakub Pawlowski
db29556fe8 Fix GATT Characteristic write type serialization
Default writeType for GATT characteristic was not being
serialized into Parcel. This cause errors when trying to
write into Characteristic.

Bug: 27910548
Change-Id: Ib2f88cf991123eaea244f16fa36deb0d773c5a33
2016-04-01 17:59:09 +00:00
Ashutosh Joshi
adf75e31f5 Added handling apps query response from context hub
Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: I8d8ecaa2e75f6ef86ee65a3a050538cbbadc32eb
2016-04-01 17:57:35 +00:00
Carlos Valdivia
51b651aea1 introduce GET_PASSWORD_PRIVILEDGED permission.
That will be used to filter in passwords for Session based
AccountManager flows.

Bug: 27590532
Change-Id: I4a6d0540bcff186e416351a6f719600ce35d86a0
2016-04-01 10:55:34 -07:00
Alan Viverette
bd53c98985 Fix default gravity value for FrameLayout.LayoutParams
Sets default gravity value to the aptly-named DEFAULT_CHILD_GRAVITY.

Also cleans up FrameLayout lint warnings, annotations, and whitespace.

Bug: 27576632
Change-Id: I457b13791ff85f2228e61e85e44a502a28439e01
2016-04-01 13:50:28 -04:00
Alan Viverette
a1009c28cc Merge "Clean up ArrayAdapter lint warnings and annotations" into nyc-dev 2016-04-01 17:24:17 +00:00
Alan Viverette
a9a75f506e Refactor DatePickerDialog constructors to avoid early callback
Bug: 27475444
Change-Id: I2536f969ca734f3977163305c1d33ee0e2e222fc
2016-04-01 13:22:10 -04:00
Philip P. Moltmann
a0d2a83cf6 Merge "Make sure PrinterCapabilitiesInfo always have sane values." into nyc-dev 2016-04-01 16:49:42 +00:00
Philip P. Moltmann
4f05eb194c Merge "Make sure PrintDocumentInfo is always sane." into nyc-dev 2016-04-01 16:49:31 +00:00
Philip P. Moltmann
c0e237f63d Merge "Make sure PrintAttributes have sane values." into nyc-dev 2016-04-01 16:48:57 +00:00
Russell Brenner
3ccb35421d Merge "Add new protection level for setup wizard" into nyc-dev 2016-04-01 16:22:49 +00:00
Clara Bayarri
032a76f94b Merge "Remove unused import for KeyboardShortcutGroup" into nyc-dev 2016-04-01 16:18:28 +00:00
Adam Powell
991989f318 Merge "Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"" into nyc-dev 2016-04-01 15:41:04 +00:00
Kenny Guy
fa7b6723e6 Merge "Allow PO to check if it is in a managed profile." into nyc-dev 2016-04-01 14:23:51 +00:00
Todd Kennedy
02424676c6 Merge "Allow retrieving info /system components" into nyc-dev 2016-04-01 14:21:21 +00:00
Alan Viverette
9e623b64b9 Clean up ArrayAdapter lint warnings and annotations
Refactoring only, no code changes.

Change-Id: Ia384a6597c9af84d23aed481f84d67ae817b4ac7
2016-04-01 10:11:25 -04:00
Clara Bayarri
89203de878 Remove unused import for KeyboardShortcutGroup
Left it in accidentally when removing default method.

Change-Id: I6af0712624ffaefff4cb4ad2a9e5a86d7104d2e7
2016-04-01 14:40:34 +01:00
Gustav Sennton
1c177d8dae Add system api to reach WebViewUpdateService Binder interface.
Instead of using reflection in XTS tests we add some system-apis to
enable fetching information about webview packages.

Bug: 26381867
Change-Id: If983a01b6855e4a4c08ef0b5873304918d499b76
2016-04-01 12:39:54 +01:00
Clara Bayarri
3916bb045c Merge "Keyboard Shortcuts Helper: Include all System shortcuts" into nyc-dev 2016-04-01 11:17:26 +00:00
Peng Xu
3dd991d117 Merge "Fix a few known issue in sensor framework" into nyc-dev 2016-04-01 01:54:39 +00:00
Lorenzo Colitti
f5120236c4 Merge "Honour the DHCP MTU option." into nyc-dev 2016-04-01 00:55:08 +00:00
Russell Brenner
b23346639b Add new protection level for setup wizard
Adds PROTECTION_LEVEL_SETUP, a privileged permission for use only by
the setup wizard.

Bug: 20016740

Change-Id: Ib95e349c54d5d12465bf43162975dfb628ef2434
2016-03-31 17:32:07 -07:00
Wei Wang
3054d01032 Merge "Add death monitor to AsyncChannel Server." into nyc-dev 2016-03-31 23:13:35 +00:00
Todd Kennedy
d6ee0ba579 Allow retrieving info /system components
Generally we return info for the latest installed package; which could
either be a built-in [i.e. on the /system partition] package or a user
updated package. In certain circumstances, we want to be able to get
the version on the /system partition regardless of whether or not the
user has updated it. We do this by passing MATCH_FACTORY_ONLY to
getPackageInfo().

Bug: 27469181
Change-Id: I8dd1d110e2d72e5c6f024812d0b5d15d8b217347
2016-03-31 15:53:45 -07:00
Wei Wang
19c4883c85 Add death monitor to AsyncChannel Server.
Bug:27878941
Change-Id: Ia6d12b49979b47434db7969372d6c02f799bc7d4
2016-03-31 15:49:36 -07:00
Adam Powell
4b2e12cc9e Revert "Only call Drawable.setVisible(false) for visible outgoing drawables"
This reverts commit 35e2ea0203.

This patch was based on two different wrong assumptions.

Bug 27822069

Change-Id: I20b1017f91f3fce3c23dd8446459d6f3e3150a48
2016-03-31 15:36:18 -07:00
Chris Tate
1486557d10 Merge "Handle interaction of Bundle.hasFileDescriptors() with removal" into nyc-dev 2016-03-31 22:22:32 +00:00