Commit Graph

54926 Commits

Author SHA1 Message Date
Alan Viverette
dd26bfc13e Merge "Remove unnecessary @inheritDoc, add missing @Override to ViewGroup" 2016-01-21 19:49:00 +00:00
Adam Powell
db33840518 Merge "Init child fragments consistently with activity fragments" 2016-01-21 19:19:01 +00:00
Phil Weaver
75fab6b8bc Merge "Pass drawing order information to accessibility." 2016-01-21 19:17:48 +00:00
Siyamed Sinir
92b9747f1c Merge "Sort the result of SpannableStringBuilder.getSpans" 2016-01-21 19:12:28 +00:00
Kenny Guy
8c32981f12 Merge "Update PackageMonitor and LauncherApps for suspended apps." 2016-01-21 19:04:20 +00:00
Sergey Poromov
d3665f1f0f Merge "Introduce BackupManager#requestBackup & BackupObserver API" 2016-01-21 18:55:28 +00:00
Adam Powell
592df7d8c6 Init child fragments consistently with activity fragments
Fragments contained within an activity are restored from instance
state in FragmentActivity.onCreate, but fragments contained within
another fragment were previously restored from instance state in
performCreate after onCreate returned. This meant that developers
couldn't consistently rely on being able to control when this happens
with a call to super.onCreate, and calls to findFragmentByTag to
reconnect with a restored child fragment would fail in ways that
succeed when the fragment is directly added to an activity.

Change child fragment instance state restore to happen during
Fragment.onCreate instead of in performCreate to be consistent with
activity behavior. Preserve the old behavior for apps targeting
an SDK version < N.

Change-Id: I9c88d5554da9a32219d64c70ca638f75ecb233ed
2016-01-21 10:38:52 -08:00
Phil Weaver
1f2225486d Pass drawing order information to accessibility.
Bug: 22721935
Change-Id: I45a2be7c174c8b5a469b68a45dec0eb536825d92
2016-01-21 10:35:26 -08:00
Sergey Poromov
fe06bf64d2 Introduce BackupManager#requestBackup & BackupObserver API
Introduces a way to request immediate backup for list of packages
and receive callbacks on backup progress.

Bug: 25688526
Change-Id: Ib826933d44f4ebf2b981f8be366215b2d37847e2
2016-01-21 19:15:33 +01:00
Philip P. Moltmann
5b012d4654 Merge "Shorten LOG_TAGs to fit in 23 characters as commented on by lint." 2016-01-21 16:06:17 +00:00
Alan Viverette
be463f229e Remove unnecessary @inheritDoc, add missing @Override to ViewGroup
No functional changes. The default behavior for overridden methods is
@inheritDoc, so a standalone annotation is not necessary.

Change-Id: I3ace1989e9035ecf3cf8f7acc5391de1c1ff7c65
2016-01-21 10:50:10 -05:00
Kenny Guy
772427555f Update PackageMonitor and LauncherApps for suspended apps.
Allow launchers to read ApplicationInfo from LauncherApps
to support suspended flag.
Provide callback to launchers via LauncherApps for suspend
/unsuspend broadcasts.

Change-Id: I772a121c45f60f926e8343bb6f181bef4e8929d3
2016-01-21 15:15:04 +00:00
Oleksandr Peletskyi
a94c46b074 Merge "Added new password quality constant PASSWORD_QUALITY_MANAGED to make it possible to prevent user from unlock modification. BUG: 25549437" 2016-01-21 11:03:54 +00:00
David Brazdil
a0e10434c4 Extract APKs on install or OTA
ART will unzip APKs in memory during launch if an OAT file is not
present. To save the time and memory, this patch will invoke dex2oat
with '--compiler-filter=verify-at-runtime' to unzip the APK during
install or after an OTA.

Change-Id: I16583f9450ad60356123a29f7a6a649b2ab9999f
2016-01-21 09:36:12 +00:00
Yohei Yukawa
88f0430980 Merge "Ensure EditorInfo#locales is set before return." 2016-01-21 06:06:49 +00:00
Jinsong Mu
e09e245b92 Merge "Accessibility services can turn themselves off b/22514381 Added disableSelf() method to AccessibilityService This newly added api used used in https://googleplex-android-review.git.corp.google.com/#/c/833857/" 2016-01-21 06:01:22 +00:00
Jinsong Mu
a9e7a3bbe8 Accessibility services can turn themselves off b/22514381
Added disableSelf() method to AccessibilityService
This newly added api used used in
https://googleplex-android-review.git.corp.google.com/#/c/833857/

Change-Id: I5fe60181058ef90dd496318cf270e0825bcc411a
2016-01-20 21:56:50 -08:00
Yohei Yukawa
0445fdf321 Ensure EditorInfo#locales is set before return.
This is a follow up CL for the previous CL [1], which mistakenly put
the initialization code of EditorInfo#locales after return statement.

  [1]: I77db5b99a7cf745d800db75baf135bb60ad04820
       8d6eeb01df

With this CL, the IME starts receiving correctly initialized LocaleList
as expected.

Bug: 22859862
Change-Id: I738ffaaf07091d8b980f8bfc6e16227fcb85a96a
2016-01-20 21:09:33 -08:00
Jaesung Chung
69c8cc2930 Merge "Support for CEA-708 closed caption" 2016-01-21 03:41:01 +00:00
Adam Lesinski
e33d41f838 Merge "Record bytes transferred for bluetooth" 2016-01-21 02:22:04 +00:00
Selim Gurun
223531d88a Merge "Add the system apis for token binding" 2016-01-21 00:42:44 +00:00
Siyamed Sinir
fa05ba0b0d Sort the result of SpannableStringBuilder.getSpans
SpannableStringBuilder used to return the result of getSpans in the
order of start indices because of the interval tree it uses. However,
style spans has to be applied in the order of insertion to get
predictable results. Sorted the results of getSpans ordered first by
priority flag and then by insertion time. Moreover improved the
performance of SpannableStringInternal copy constructor.

Bug: 26240132
Change-Id: I0b0fa7bb30a3bd9ca37dedca66d8993718586027
2016-01-20 16:27:39 -08:00
Felipe Leme
0b23389fc7 Merge "Added API to whitelist apps for background restriction." 2016-01-21 00:26:23 +00:00
Philip P. Moltmann
1c8f1e06a6 Shorten LOG_TAGs to fit in 23 characters as commented on by lint.
Change-Id: Ie9415fc3de642493bc36c0159b773d8ce2436df5
2016-01-20 15:16:48 -08:00
Rob Carr
fb22b147f1 Merge "Layout SurfaceView in parent frame." 2016-01-20 23:04:56 +00:00
Selim Gurun
a5171370f2 Add the system apis for token binding
Bug: 22665752

Token binding protocol is the next generation channel-ID protocol,
currently it is a draft in IETF
 https://tools.ietf.org/html/draft-ietf-tokbind-protocol-03

Add the api as a system api (will be public once the draft finalizes)

Change-Id: If971cc7e6d14f15c778b9b027df9fc48dac0160c
2016-01-20 14:26:46 -08:00
Sandra Kwan
390c9d2d91 AccountManager: add isCredentialsUpdateSuggested API.
Change-Id: I27e0db0345f3431b796a944740dab767b45f7871
2016-01-20 13:58:49 -08:00
Robert Carr
d86c63a25e Layout SurfaceView in parent frame.
We always want the SurfaceView to be layed out
relative to the parent frame, fixes multiple issues
in freeform mode.

Bug: 26689889
Change-Id: Ib4728a515dc01c6884363b68a29f2e4ce5d5babc
2016-01-20 13:37:57 -08:00
Felipe Leme
b85a637eac Added API to whitelist apps for background restriction.
The new APIs are:

    void addRestrictBackgroundWhitelistedUid(int uid);
    void removeRestrictBackgroundWhitelistedUid(int uid);
    int[] getRestrictBackgroundWhitelistedUids();

The whitelist is persisted in the same XML used for the other policies,
using the new 'whitelist and 'restrict-background' tags. Examples:

3 whitelisted apps:

<whitelist>
  <restrict-background uid="10001" />
  <restrict-background uid="10009" />
  <restrict-background uid="10086" />
</whitelist>

No whitelisted app:
<whitelist />

BUG: 26451391

Change-Id: I01b114c346fd8abc05433ad43d010379384f8c2b
2016-01-20 13:10:10 -08:00
Alan Viverette
1c3f701807 Merge "Postpone hover state resolution in DropDownListView" 2016-01-20 20:49:54 +00:00
Raph Levien
1f0945e9f6 Update mResolvedLocale more aggressively
A client that mutates the locale of the Configuration being updated
can cause failure of the test that mResolvedLocale needs to be
recomputed. This patch stashes the previous locale list privately
so that updates can be detected even in this case.

Bug: 25993843
Change-Id: I1ea17dffd722177fb5b65ee77b9f5ce9a943f15b
2016-01-20 20:18:57 +00:00
Robin Lee
e0228a39ed Merge "Correct DeviceAdminReceiver.onPasswordChanged docs" 2016-01-20 19:33:41 +00:00
Robin Lee
9983aca494 Correct DeviceAdminReceiver.onPasswordChanged docs
Change-Id: I1bf0a7ffe251e6c9f88ce5fcdbacb99703915b10
2016-01-20 19:31:53 +00:00
Matthew Williams
506e47fcc4 Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c am: 0f292147f3 am: ce3842eb1a am: 85f169d19f am: c77a2228aa am: 4cc10825f0
am: 88d641ce26

* commit '88d641ce265fe1c6b188b5fa2a2397f3fa8e15ba':
  Redact Account info from getCurrentSyncs
2016-01-20 18:48:47 +00:00
Matthew Williams
88d641ce26 Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c am: 0f292147f3 am: ce3842eb1a am: 85f169d19f am: c77a2228aa
am: 4cc10825f0

* commit '4cc10825f0234d365016a18e1f86d61cbd2fd030':
  Redact Account info from getCurrentSyncs
2016-01-20 18:44:07 +00:00
Matthew Williams
4cc10825f0 Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c am: 0f292147f3 am: ce3842eb1a am: 85f169d19f
am: c77a2228aa

* commit 'c77a2228aa66a1d2b1e497c193604de0717ec3c7':
  Redact Account info from getCurrentSyncs
2016-01-20 18:38:50 +00:00
Matthew Williams
c77a2228aa Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c am: 0f292147f3 am: ce3842eb1a
am: 85f169d19f

* commit '85f169d19f200daa35a30652905d6daf090955c6':
  Redact Account info from getCurrentSyncs
2016-01-20 18:31:19 +00:00
Wale Ogunwale
08b55823eb Merge "Resize pinned stack with bounds in ActivityOptions." 2016-01-20 18:09:21 +00:00
Matthew Williams
85f169d19f Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c am: 0f292147f3
am: ce3842eb1a

* commit 'ce3842eb1a5184331ee4aad3e36d5f11f999cf2e':
  Redact Account info from getCurrentSyncs
2016-01-20 18:08:33 +00:00
Andrei Stingaceanu
69d5ebc59e Suspend apps - broadcast intent and API
Send a protected broadcast to registered receivers only
when packages get suspended.

Bug: 22776761
Change-Id: I043053ed45bdc202ead18518a0c1e39cce47947c
2016-01-20 17:52:41 +00:00
Filip Gruszczynski
c1b92381f5 Merge "Update width available for dialogs on all configuration changes." 2016-01-20 17:16:02 +00:00
Alan Viverette
fb4cbc4a06 Postpone hover state resolution in DropDownListView
Prevents a HOVER_EXIT => TOUCH_DOWN transition from triggering two
Drawable.setState() calls in the same frame.

Bug: 25849904
Change-Id: Ib10f127fd68e433992b6b11e62ac2263d790ef52
2016-01-20 11:26:06 -05:00
Jason Monk
8bcbb9bc87 Merge "Add LinearLayout#getGravity" 2016-01-20 15:55:44 +00:00
Jason Monk
efe916c3c7 Add LinearLayout#getGravity
Change-Id: I290790b8e84e14f2702c6fc9c679b1c435cc13a8
2016-01-20 10:55:09 -05:00
Oleksandr Peletskyi
0fdcd3df83 Added new password quality constant PASSWORD_QUALITY_MANAGED to make it possible
to prevent user from unlock modification.
BUG: 25549437

Change-Id: Iae9adccbb8f9e1db8a21d596137f69f6cad54988
2016-01-20 14:44:22 +01:00
Matthew Williams
ce3842eb1a Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e am: a947baa87c
am: 0f292147f3

* commit '0f292147f3ac803a8701afd7362ad3e0487fd496':
  Redact Account info from getCurrentSyncs
2016-01-20 11:55:52 +00:00
Matthew Williams
0f292147f3 Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb am: be136b7a3e
am: a947baa87c

* commit 'a947baa87caeb6733846d6de4ef2bf84f7ab0fa1':
  Redact Account info from getCurrentSyncs
2016-01-20 11:51:42 +00:00
Matthew Williams
a947baa87c Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257 am: 0e7cd0a9fb
am: be136b7a3e

* commit 'be136b7a3e3f117dea283d194d1e6979fb47662b':
  Redact Account info from getCurrentSyncs
2016-01-20 11:46:39 +00:00
Matthew Williams
be136b7a3e Redact Account info from getCurrentSyncs am: f39549e389 am: 1a0aed3257
am: 0e7cd0a9fb

* commit '0e7cd0a9fbdcb48c551d54627eb964364dd946d0':
  Redact Account info from getCurrentSyncs
2016-01-20 11:41:23 +00:00
Matthew Williams
0e7cd0a9fb Redact Account info from getCurrentSyncs am: f39549e389
am: 1a0aed3257

* commit '1a0aed3257ad1b8216930928090885cf4210bd87':
  Redact Account info from getCurrentSyncs
2016-01-20 11:37:17 +00:00