Commit Graph

38573 Commits

Author SHA1 Message Date
Jeff Sharkey
3e5991c1eb am 21de56a9: Add directory selection to DocumentsProvider.
* commit '21de56a94668e0fda1b8bb4ee4f99a09b40d28fd':
  Add directory selection to DocumentsProvider.
2014-04-23 07:15:32 +00:00
Jeff Sharkey
d5f8b4d26a am 846318a3: Allow prefix-based Uri permission grants.
* commit '846318a3250fa95f47a9decfbffb05a31dbd0006':
  Allow prefix-based Uri permission grants.
2014-04-23 07:15:26 +00:00
Jeff Sharkey
21de56a946 Add directory selection to DocumentsProvider.
Introduce new ACTION_PICK_DIRECTORY that allows users to grant access
to an entire document subtree.  Instead of requiring grants for each
individual document, this leverages new prefix URI permission grants
by defining new "via"-style URIs:

content://com.example/via/12/document/24/

This references document 24 by using a prefix grant given for
document 12.  Internally, we use isChildDocument() to enforce that
24 is actually a descendant (child, grandchild, etc) of 12.  Since
this is an optional API, providers indicate support with
Root.FLAG_SUPPORTS_DIR_SELECTION.

Extend DocumentsUI to support picking directories.  Expose
createDocument() API to work with returned directories.

Offer to canonicalize via-style URIs into direct URIs, generating
exact permission grants along the way.  Override openAssetFile()
to pass through CancellationSignal.  Move testing code into ApiDemos.

Bug: 10607375
Change-Id: Ifffc1cff878870f8152eb6ca0199c5d014b9cb07
2014-04-22 22:18:21 -07:00
Jeff Sharkey
846318a325 Allow prefix-based Uri permission grants.
Define new FLAG_GRANT_PREFIX_URI_PERMISSION which indicates that a
Uri permission grant should also apply to any other Uris that have
matching scheme, authority, and path segments.  For example, a prefix
grant for /foo/ would allow /foo/bar/ but not /foo2/.

Allow persistable and prefix grants to be issued directly through
grantUriPermission().  Relaxing persistable is fine, since it still
requires the receiver to actively take the permission.

Since exact- and prefix-match grants for the same Uri can coexist,
we track them separately using a new UriGrant key.  (Consider the
case where an app separately extends READ|PREFIX and WRITE for
the same Uri: we can't let that become READ|WRITE|PREFIX.)

Fix revoke to always take away persisted permissions.  Move prefix
matching logic to Uri and add tests.  Add new flags to "am" tool, and
various internal uses around Intent and Context.  Switch some lagging
users to ArraySet.

Bug: 10607375
Change-Id: Ia8ce2b88421ff9f2fe5a979a27a026fc445d46f1
2014-04-22 21:06:49 -07:00
Alan Viverette
d8b34e9f3e am 2b38072e: Merge "Add ripple to switches, radio buttons, check boxes, seek bars"
* commit '2b38072e1fb4f158c8de9d92825f72145c9343bb':
  Add ripple to switches, radio buttons, check boxes, seek bars
2014-04-23 02:24:37 +00:00
Alan Viverette
2b38072e1f Merge "Add ripple to switches, radio buttons, check boxes, seek bars" 2014-04-23 02:19:20 +00:00
Alan Viverette
6195660681 Add ripple to switches, radio buttons, check boxes, seek bars
BUG: 14231772
Change-Id: Ie40eac9f68815294460175965a999dd75f4144b5
2014-04-22 19:07:06 -07:00
Michael Wright
6dd00bb20e am eeb81561: Merge "Add ViewRootImpl#unhandledInputEvent API stub."
* commit 'eeb815615c3582f0cd000c12f05f3d102c6d4e78':
  Add ViewRootImpl#unhandledInputEvent API stub.
2014-04-23 02:00:48 +00:00
Michael Wright
3da2834f0e Add ViewRootImpl#unhandledInputEvent API stub.
Doesn't actually work yet for non-KeyEvents.

Change-Id: I3482ff780a9a7aef8ae27436f91a3619490b369f
2014-04-22 17:00:11 -07:00
Ruchi Kandoi
3286df9e08 am 62b8a498: Adds Content Observer for the Low power mode in developer options.
* commit '62b8a49856cc0822905dcb7a213f082b92fa69e3':
  Adds Content Observer for the Low power mode in developer options.
2014-04-22 21:03:44 +00:00
Ruchi Kandoi
62b8a49856 Adds Content Observer for the Low power mode in developer options.
Change-Id: Ibed319e734340dfd5348dbeb8fe20c01b1adaac5
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2014-04-22 20:55:31 +00:00
John Spurlock
4f3693de49 am 860107a2: Merge "Do not disturb: persist user config."
* commit '860107a2cced79f4a19542bfd19676367951ee49':
  Do not disturb: persist user config.
2014-04-22 15:09:53 +00:00
John Spurlock
860107a2cc Merge "Do not disturb: persist user config." 2014-04-22 15:03:08 +00:00
John Spurlock
056c519df1 Do not disturb: persist user config.
Load and store user configuration for do not disturb.  Separate
out service-related aspects into new helper.  Make config availble
over NoMan for settings.

Implement phone + message based filtering (package whitelist for now).

Implement automatic enter/exit zen mode overnight scheduler.

Bug:14211946
Change-Id: Ib28aab0e4c5c9a5fd0b950b2884b1ab618fdfeca
2014-04-22 11:01:24 -04:00
Craig Mautner
b25910ea52 am 6c83b77b: am 43c6a98f: am 6985badc: Fix black ActivityView
* commit '6c83b77b87a1f8b247874c9544d4975d13da7d23':
  Fix black ActivityView
2014-04-22 13:39:28 +00:00
Craig Mautner
36ea20ce0e am 6e2a3542: am 51bd56c9: am 6cdf51f2: Don\'t use finalize on ActivityView to cleanup.
* commit '6e2a3542e1ee6797d157a3e19f9ff0508523d8f3':
  Don't use finalize on ActivityView to cleanup.
2014-04-22 13:39:24 +00:00
Craig Mautner
26f31dccfd am 7ad27288: am c00c89b1: am f4c909bc: Fix ActivityView lifecycle
* commit '7ad27288f1b66733a4fcb2bdcb17dd5db6c6423d':
  Fix ActivityView lifecycle
2014-04-22 13:39:20 +00:00
Craig Mautner
6c83b77b87 am 43c6a98f: am 6985badc: Fix black ActivityView
* commit '43c6a98f0ffe079429735a485acaa81841740fac':
  Fix black ActivityView
2014-04-22 13:33:08 +00:00
Craig Mautner
6e2a3542e1 am 51bd56c9: am 6cdf51f2: Don\'t use finalize on ActivityView to cleanup.
* commit '51bd56c953e2bd860e4a2d97a0bf95267cf3fda2':
  Don't use finalize on ActivityView to cleanup.
2014-04-22 13:33:04 +00:00
Craig Mautner
7ad27288f1 am c00c89b1: am f4c909bc: Fix ActivityView lifecycle
* commit 'c00c89b1add5bcbf6a76287c9a3384877449c746':
  Fix ActivityView lifecycle
2014-04-22 13:32:54 +00:00
Craig Mautner
43c6a98f0f am 6985badc: Fix black ActivityView
* commit '6985badc632f2ff8425aa86423577a96eafc49e9':
  Fix black ActivityView
2014-04-22 13:27:53 +00:00
Craig Mautner
51bd56c953 am 6cdf51f2: Don\'t use finalize on ActivityView to cleanup.
* commit '6cdf51f21df1ca2397618635767e6e53a65799ad':
  Don't use finalize on ActivityView to cleanup.
2014-04-22 13:27:49 +00:00
Craig Mautner
c00c89b1ad am f4c909bc: Fix ActivityView lifecycle
* commit 'f4c909bcb87d6f103c9f9e8255fa61bd86f4de67':
  Fix ActivityView lifecycle
2014-04-22 13:27:44 +00:00
Alan Viverette
8c6c260aa4 am 4899e66d: Merge "Add touch feedback to edit text"
* commit '4899e66db9897279e4ae704b139c50b384a1ae34':
  Add touch feedback to edit text
2014-04-22 13:24:30 +00:00
Youngsang Cho
ac27f9f488 am 6b2c07cb: Merge "Add overlay view in Tv Input Framework"
* commit '6b2c07cb3655b0f98990961e15c2b6077aaad5ca':
  Add overlay view in Tv Input Framework
2014-04-22 13:24:24 +00:00
Jeff Davidson
71dd3d9121 am 2ca3962b: Merge "Initial implementation of NetworkScoreManager\'s backing service."
* commit '2ca3962bc0168d360cf9567a313608347da51944':
  Initial implementation of NetworkScoreManager's backing service.
2014-04-22 13:24:14 +00:00
Alan Viverette
4899e66db9 Merge "Add touch feedback to edit text" 2014-04-22 00:31:55 +00:00
Alan Viverette
c3f35b01b5 Add touch feedback to edit text
Change-Id: Id25692bfa40f5145d6ca807111bbd5d0c4774d07
2014-04-21 17:30:22 -07:00
Youngsang Cho
6b2c07cb36 Merge "Add overlay view in Tv Input Framework" 2014-04-22 00:29:49 +00:00
Jeff Davidson
2ca3962bc0 Merge "Initial implementation of NetworkScoreManager's backing service." 2014-04-22 00:02:47 +00:00
Jeff Davidson
6a4b220f12 Initial implementation of NetworkScoreManager's backing service.
This service will ultimately be responsible for propagating scores
down to lower-level network subsystems. For now, it just keeps scores
in memory and exposes these for debugging purposes via "adb shell
dumpsys network_score".

This change also adds provisioning of a default scorer. When
NetworkScoreService is first initialized, it checks to see if it has
ever set a default scorer; if not, it reads a package name from a
build config property and attempts to set it as the default.

Also add autogenerated equals/hashCode methods to all parcelables.

Bug: 14111427
Bug: 13786258
Change-Id: I02271171653d42e12acd240b73b9e23950744f6b
2014-04-21 16:04:05 -07:00
Craig Mautner
6985badc63 Fix black ActivityView
Don't add the surface to the VirtualDisplay until the activity
has drawn. That will keep the TextureView from turning black.

Fixes bug 12821632.

Change-Id: Ia06e9f91be3e14ad724f735ae4e201ac798863a2
2014-04-21 15:28:43 -07:00
Craig Mautner
6cdf51f21d Don't use finalize on ActivityView to cleanup.
Use a static object to contain the IActivityContainer reference
rather than storing it directly in the ActivityView itself. Then
when the ActivityView gives up the reference we can use a clean
finalize() call to release the IActivityContainer.

Fixes bug 14184756.

Change-Id: I7e05fcce3040b2b958f7c9cd030d5e3b745f3169
2014-04-21 15:28:43 -07:00
Craig Mautner
f4c909bcb8 Fix ActivityView lifecycle
Major changes to maintain the VirtualDisplay across repeated
attach/detach cycles of an ActivityView. This keeps the activities
and VirtualDisplays in the ActivityView from getting into bad states.

Fixes bug 14107002.

Change-Id: Idc2aaf85ac496eab0eeb436736cb10a2020040e8
2014-04-21 15:28:42 -07:00
Dianne Hackborn
129e1dc6d0 am ec687133: Merge "Try to always print time stamp in battery history."
* commit 'ec687133e01d6650d630511ce96f184c6d829482':
  Try to always print time stamp in battery history.
2014-04-21 20:56:53 +00:00
Dianne Hackborn
ec687133e0 Merge "Try to always print time stamp in battery history." 2014-04-21 20:52:49 +00:00
Adam Lesinski
892bf987f3 am 49d8fa47: am a281be67: am 370cda70: Merge "Allow InputEvents to propagate w/o IME" into klp-modular-dev
* commit '49d8fa473970265a182549cc1673719e5101320e':
  Allow InputEvents to propagate w/o IME
2014-04-21 20:29:19 +00:00
Adam Lesinski
49d8fa4739 am a281be67: am 370cda70: Merge "Allow InputEvents to propagate w/o IME" into klp-modular-dev
* commit 'a281be67030a834d455a84ce62c173140564211a':
  Allow InputEvents to propagate w/o IME
2014-04-21 20:25:03 +00:00
Adam Lesinski
a281be6703 am 370cda70: Merge "Allow InputEvents to propagate w/o IME" into klp-modular-dev
* commit '370cda7074a02139fa5374bbdd94c37be376ca7a':
  Allow InputEvents to propagate w/o IME
2014-04-21 20:21:13 +00:00
Adam Lesinski
370cda7074 Merge "Allow InputEvents to propagate w/o IME" into klp-modular-dev 2014-04-21 20:18:11 +00:00
Dianne Hackborn
99009ea7dc Try to always print time stamp in battery history.
Also fix printing of string pool to quote the strings
and escape characters, and change history time stamps
to print starting at 0 and going up.

Change-Id: I2d0c080f2b5de7b27b20a7357c2c0cf481c82d8c
2014-04-21 13:10:38 -07:00
Ariel Gertzenstein
6788110191 am fe755054: Merge "DO NOT MERGE Tear down PAN if we can\'t successfully complete a DHCP request after establishing a PANU connection." into klp-modular-dev
* commit 'fe7550548d036b6c536840fd1daa954160d0b2c8':
  DO NOT MERGE    Tear down PAN if we can't successfully complete a DHCP request after establishing a PANU connection.
2014-04-21 18:47:40 +00:00
Ariel Gertzenstein
a2d8706ca8 DO NOT MERGE Tear down PAN if we can't successfully complete a DHCP request
after establishing a PANU connection.

http://b/13731957

Change-Id: I0c808d5196c66783b52942ba7b7212bdce9f1c07
2014-04-21 14:26:56 -04:00
Jianing Wei
f1fa3bb824 am 2bcd4023: Merge "Camera2 API: fix bug in Camera2 CTS test failure."
* commit '2bcd40235e5a9a73adfb3f685fe78577b35d3ba5':
  Camera2 API: fix bug in Camera2 CTS test failure.
2014-04-21 13:37:27 +00:00
Christopher Tate
3405022b0a am 23975123: Merge "Handle /oem and /vendor as well"
* commit '239751237c3431c9b9683fc08219c05f884f37d8':
  Handle /oem and /vendor as well
2014-04-21 13:37:24 +00:00
Jianing Wei
2bcd40235e Merge "Camera2 API: fix bug in Camera2 CTS test failure." 2014-04-19 01:21:56 +00:00
Christopher Tate
239751237c Merge "Handle /oem and /vendor as well" 2014-04-19 00:55:08 +00:00
Christopher Tate
740888f62e Handle /oem and /vendor as well
Bug 13170859

Change-Id: I95dec4cd68e3d64517d08b3f08eefb849ce37b86
2014-04-18 17:50:29 -07:00
Jianing Wei
baf0c650b3 Camera2 API: fix bug in Camera2 CTS test failure.
* The bug is caused by the fact that we did not update the frame
  tracker when the listener is null or camera is closed.
* This change fixes the bug 14151933.

Bug: 14151933
Change-Id: I00e3024e403503a056834be805c44604cb1a8a6d
2014-04-18 17:35:00 -07:00
Michael Wright
452e1f40f4 am 5b5def54: Fixed a typo implying intents must and must not be explicit.
* commit '5b5def547201b213bc2325400371c37d1612732e':
  Fixed a typo implying intents must and must not be explicit.
2014-04-18 22:50:58 +00:00