Commit Graph

60568 Commits

Author SHA1 Message Date
Julia Reynolds
3588e597d2 Merge "Re-SystemApi some fields/method that aren't in use." 2016-02-01 20:37:41 +00:00
Mihai Niță
a6a63d8ef0 Merge "Fix: RTL sublocales need to display RTL" 2016-02-01 20:22:36 +00:00
Wale Ogunwale
f6f5f4ed94 Merge "Made some changes to window caption APIs" 2016-02-01 19:06:18 +00:00
Mihai Nita
24215ecadc Fix: RTL sublocales need to display RTL
When the langage selected in the first step is right-to-left the
localized region names should also be rendered right-to-left,
regardless of the UI language of the system itself.
We only need this to happen for the sub-locale because all labels
are localized in the same language (the parent one), so it is all
consistent, not the mixture we have in the language selection.

Bug: 26278041
Change-Id: I54c4306763458be691a1ba0c2bc2dba613beb8c5
2016-02-01 10:51:54 -08:00
David Brazdil
8486786493 Merge "Add 'package compile' shell command" 2016-02-01 18:44:22 +00:00
David Brazdil
493411ace4 Add 'package compile' shell command
Bug: 26707406
Change-Id: I554969c9f3b3153179370d3d23a88fa7e8693885
2016-02-01 18:32:55 +00:00
Ruben Brunk
33e0a5f7ed Merge "Add feature tag for high-performance VR devices." 2016-02-01 18:20:00 +00:00
Abodunrinwa Toki
79798a793f Merge "Revert "Revert "FloatingToolbar: Fix orientation change handling.""" 2016-02-01 18:16:44 +00:00
Julia Reynolds
a62496d8f7 Re-SystemApi some fields/method that aren't in use.
Bug: 26816334
Change-Id: Ib01e7856cd65e294c018017c600f8b3dce2be844
2016-02-01 12:55:39 -05:00
Jeff Sharkey
ac3be9a283 File paths to system partition are okay-ish.
Unless SELinux blocks it, all apps have identical access to files
included on the system partition.  Since there are a handful of
useful files stored there, like ringtones and license files, carve
out an exception to allow file:///system/ style paths.

Note that StrictMode isn't a security mechanism, which is why we're
not concerned about resolving canonical paths.

Bug: 26895798
Change-Id: If0b659d30c4e51377edcf01445392759d1e4962e
2016-02-01 10:44:45 -07:00
Alan Viverette
37a4a1c8a7 Merge "Don't move non-modal popups in response to global layout" 2016-02-01 17:30:28 +00:00
Alan Viverette
bfd99b480d Merge "Scroll alert dialog buttons vertically when there's not enough space" 2016-02-01 17:28:53 +00:00
Jeff Sharkey
532f52cdd8 Merge "Only create custom database paths." 2016-02-01 17:18:59 +00:00
Jeff Sharkey
c4bab9843a Only create custom database paths.
If the getDatabasePath() caller is using the default getDatabasesDir()
path, that method already handles possible path creation, so no
need for us to retry.

Also fix two small bugs that would have NPE'ed when listing files in
a directory that wasn't created.

Bug: 26895777
Change-Id: Iced16b05cfe95062717da8d0414c48daefcb5648
2016-02-01 10:17:57 -07:00
Jeff Sharkey
4b72e453bb Merge "Skip setting up cache paths on system package." 2016-02-01 17:02:42 +00:00
Jeff Sharkey
e6cb0974b3 Skip setting up cache paths on system package.
The system package doesn't have any real data directories, so we
shouldn't try setting any cache paths.

Bug: 26895494
Change-Id: Iafca72f51d77eac5f602d842369de74ae8669b02
2016-02-01 09:59:15 -07:00
Daniel Sandler
7c85828596 Merge "Temporarily remove file:// Uri checks in Notification.sound." 2016-02-01 16:45:45 +00:00
Jason Monk
c767a1f988 Merge "Add some cmds for statusbar" 2016-02-01 16:39:06 +00:00
Dan Sandler
a5086b4385 Temporarily remove file:// Uri checks in Notification.sound.
Bug: 26895798
Change-Id: I83034ab812108a5f692bbb608faf5951682f212e
2016-02-01 11:37:11 -05:00
Adam Powell
d1b140914d Merge "Clear/restore calling identity for ChooserTargetService" 2016-02-01 16:33:41 +00:00
Rubin Xu
cae0627461 Merge "Canel all work notification when the profile is turned off" 2016-02-01 16:32:21 +00:00
Rubin Xu
7eadc1bf68 Canel all work notification when the profile is turned off
When the work profile is turned off, all work apps are killed and the
profile marked as stopped. Cancel all pending work notifications
immediately in this case, with a new reason.

Bug: 22541941
Change-Id: I97935c3bac3eba1e9c38f7449ebcc182f6c66769
2016-02-01 16:13:45 +00:00
Shreyas Basarge
40a11e525c Merge "Updated Javadoc to reflect min period" 2016-02-01 16:07:21 +00:00
Shreyas Basarge
e96c3b7eff Updated Javadoc to reflect min period
Javadoc updated and logging added for
min period and min flex enforcements
in JobScheduler and SyncManager.

Bug: 26874152
Change-Id: Ifdd248b776a1bd04df21b7b9f0ac96bdef0f8bb6
2016-02-01 16:03:36 +00:00
Shreyas Basarge
a491c07f36 Merge "SyncManager on JobScheduler" 2016-02-01 15:32:58 +00:00
Abodunrinwa Toki
30f8ef46e5 Revert "Revert "FloatingToolbar: Fix orientation change handling.""
This reverts commit 6608a80fb3.
...and fix the syntax errors.

Change-Id: If2ca31d426b2e3eeac8444f7cb24ab21f169d30d
2016-02-01 15:28:42 +00:00
Jason Monk
9bcdf36af2 Merge "Let SysUI watch TileService's dialog lifecycle" 2016-02-01 15:19:47 +00:00
Jason Monk
34a5cef629 Let SysUI watch TileService's dialog lifecycle
That way it can better handle tokens and service binding.

Change-Id: I9b882181ecbe52a65e731a2c45f1d296315884b4
2016-02-01 15:04:29 +00:00
Wale Ogunwale
3b93a4d351 Renamed Activity class multi-window APIs
As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
2016-02-01 06:58:31 -08:00
Jason Monk
7e53f20c83 Add some cmds for statusbar
They will be used for tests?!

Also move around where some of the tile lifecycle happens so that
it can easily be shared with these commands.

Change-Id: I72386afce5a2d335df45ecc5946679efcd826bae
2016-02-01 09:55:28 -05:00
Narayan Kamath
b61437de5f Merge "Revert "FloatingToolbar: Fix orientation change handling."" 2016-02-01 13:43:49 +00:00
Narayan Kamath
6608a80fb3 Revert "FloatingToolbar: Fix orientation change handling."
This reverts commit a874e30959.

Change-Id: I8e61e4d1f4af8dea71f69babbe6224c01bb6c6ac
2016-02-01 13:40:43 +00:00
Abodunrinwa Toki
cc3fb7a463 Merge "FloatingToolbar: Fix orientation change handling." 2016-02-01 12:54:10 +00:00
Rubin Xu
c3cd05f8a4 Add DevicePolicyManager APIs for process logging.
Add Device Owner APIs for controlling and retrieving the logs. Retrieving the
logs should be rate limited unless we are at the risk of losing logs due to
constrained buffer space.

Bug: 22860162
Change-Id: I80658f5a14e86d7cfd42402fbc5e98dc11698c0e
2016-02-01 10:28:24 +00:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Tomasz Mikolajewski
7fa765a40e Merge "Cleanup copyDocument and moveDocument in SAF." 2016-02-01 00:17:30 +00:00
Wale Ogunwale
14a79bd12a Merge changes I8d546487,Ib62d357f
* changes:
  Allow resizeableActivity to be specified at the application level
  Renamed manifest attributes initialWidth/Height to defaultWidth/Height
2016-01-31 20:02:45 +00:00
Wale Ogunwale
174d36d87a Merge "Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT" 2016-01-31 19:57:16 +00:00
Wale Ogunwale
1902169600 Merge "API council recommended changes to bounds APIs in ActivityOptions" 2016-01-31 19:51:37 +00:00
Jeff Sharkey
a8b42780c2 Ignore null actions.
Bug: 26862905
Change-Id: I30a21e67b0f60ebca5eaccc843834059e52a6b78
2016-01-30 17:58:09 -07:00
Jeff Sharkey
634dc42c9e Throw when using deprecated file modes.
installd no longer grants o+x to private app data directories for
apps targeting N, so the long-deprecated MODE_WORLD_READABLE and
MODE_WORLD_WRITEABLE flags no longer have any effect, which may lead
to frustrating debugging sessions.

So to help clearly communicate that these flags no longer work, let's
throw when an app targeting N tries using them.

Bug: 26886867
Change-Id: I97dae6182fc3c55639ff37a39c4aae6dd0bed507
2016-01-30 17:48:32 -07:00
Jeff Sharkey
35871f2c2b Offer to migrate databases and SharedPreferences.
Databases and SharedPreferences often involve multiple files under
the hood, so developers wanting to migrate them between different
storage contexts should ask us to make sure all relevant files are
migrated correctly.

This makes a best-effort attempt to recover from battery pulls
during migration, while still trying to alert developers to
conflicting files.

Bug: 26668510, 25860525
Change-Id: I9ffa3e8cb6191dfd4237b9466a081d6d77df3ba0
2016-01-30 17:03:23 -07:00
Wale Ogunwale
a504ca3988 Made some changes to window caption APIs
As recommended by API council.

Bug: 26509365
Change-Id: I4efca89e2e14ffcf66ab8372f694e8bbf58d6fef
2016-01-30 16:02:13 -08:00
Wale Ogunwale
6afdf91b17 Allow resizeableActivity to be specified at the application level
Makes it easier for developers to set a state for all their activities
vs. doing it individually.

Bug: 26508215
Change-Id: I8d546487b6461a03f75cce7760522e7af9fc2740
2016-01-30 13:01:33 -08:00
Wale Ogunwale
b12e1099ce Renamed manifest attributes initialWidth/Height to defaultWidth/Height
Per feedback from API council.

Bug: 26508215
Change-Id: Ib62d357f0e6309ad6f6305ba5ac376c5e3ab04e7
2016-01-30 12:24:44 -08:00
Wale Ogunwale
2a25a62739 Renamed FLAG_ACTIVITY_LAUNCH_TO_SIDE to FLAG_ACTIVITY_LAUNCH_ADJACENT
Per feedback from API council.

Bug: 26508215
Change-Id: Id17166fe981587c9c16c382ccbdf0846ed2ae5d6
2016-01-30 11:27:21 -08:00
Wale Ogunwale
5122df094b API council recommended changes to bounds APIs in ActivityOptions
Bug: 26509660
Change-Id: Id90fbda0e15e83145ecc85c214b0ae5763fcc902
2016-01-29 22:33:38 -08:00
Jaewan Kim
54fa566ab7 Merge "PIP: Use StatusBarService to handle PIP key" 2016-01-30 01:06:29 +00:00
Adam Powell
cb95ae2ada Clear/restore calling identity for ChooserTargetService
Bug 26604668

Change-Id: I60a8be72bf43cec802697af3b06579453af2d5dc
2016-01-29 14:51:02 -08:00
Dianne Hackborn
311cbe1b83 Merge "Some small binder shell command improvements." 2016-01-29 22:20:39 +00:00