Commit Graph

12581 Commits

Author SHA1 Message Date
Sudheer Shanka
47dafc978a Merge "Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden." into nyc-dev am: af9c30aa74
am: 19e2adac15

* commit '19e2adac15d36e7307c275e253ae998536e539a6':
  Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden.
2016-02-18 18:54:06 +00:00
Shawn Willden
291c7ddc33 Merge "Add support for extending key validity while on body." into nyc-dev am: 0f900c02d9
am: b838736b6e

* commit 'b838736b6eea75bb652b2bd7724979074c37d502':
  Add support for extending key validity while on body.
2016-02-18 18:45:34 +00:00
Jeff Sharkey
2c1ba9a961 Make BackupManager encryption aware.
Backup requires both CE and DE storage to be available, so delay
spinning up the backup system until the user is unlocked, since
that's when CE storage becomes available.  Note that devices without
FBE immediately transition USER_SYSTEM into the unlocked state,
since their CE is always available.

Offer to backup and restore files under both CE and DE.  Since DE
is effectively the same as CE, most logic is simply duplicated for
now, but it could be simplified in the future.  Since system apps
can force their default storage location to DE, we always build
explicit CE and DE paths.

Add getDataDir() to give clean access to the top-level private data
directory, but disclaim that apps shouldn't create files there.

Bug: 26279618
Change-Id: Ic34a4b330223725db93b1d0f5c9dffc88002c61f
2016-02-18 10:54:11 -07:00
Jeff Sharkey
7368938550 Merge "Make BackupManager encryption aware." 2016-02-18 17:38:42 +00:00
Sudheer Shanka
af9c30aa74 Merge "Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden." into nyc-dev 2016-02-18 13:58:05 +00:00
Julia Reynolds
ef37f28436 Remove Notification Topics.
Bug: 23220370
Change-Id: Ifbcdbab1cf6974c192483091512f75762784a98e
2016-02-18 08:55:33 -05:00
Shawn Willden
0f900c02d9 Merge "Add support for extending key validity while on body." into nyc-dev 2016-02-18 12:51:50 +00:00
Shawn Willden
adef49640d Add support for extending key validity while on body.
Bug: 21563854
Change-Id: I3b622d2af77ec4ac3ba42407fc391112c153ef0f
2016-02-18 05:50:21 -07:00
Sudheer Shanka
aebd5dd786 Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden.
Bug: 27225657
Change-Id: I85ad8bf88845e9164011b303ec9ca90d993fc20e
2016-02-18 12:39:57 +00:00
Donghyun Cho
22188f1187 MediaSession: Add new methods for preparing media content
Introduced new methods for preparing media content: prepare,
prepareFromMediaId, prepareFromSearch, and prepareFromUri. These methods
allow MediaSession prepare media content rather than play
it. MediaSession will set up a queue or buffer their content during
these preparing requests.
The constants, FLAG_HANDLES_PREPARE_ONLY and EXTRA_PREPARE_ONLY, are
removed because the introduced methods can replace them.

Bug:25841735, Bug:25153060, Bug:25153353
Change-Id: I8fa2097c98fe2fba92b267d2865a9b75d118af09
2016-02-18 18:22:41 +09:00
Lajos Molnar
514a3fb7a6 media: expose audio sample format in MediaFormat
Bug: 27172163
Change-Id: I0ae4c0299839612893bb8a43e7016e49487e1a51
2016-02-17 18:52:36 -08:00
Felipe Leme
bd6a1fc76e Merge "Removed Intent.OPEN_EXTERNAL_DIRECTORY." into nyc-dev am: 014a0d11c7
am: ac6f61dd27

* commit 'ac6f61dd27c0a11b8ee8c3121849094ddb4bb9d9':
  Removed Intent.OPEN_EXTERNAL_DIRECTORY.
2016-02-17 23:56:52 +00:00
Felipe Leme
ba2707d9dc Merge "Initial implementation of StorageManager.getVolumesList()." into nyc-dev am: 3c3770d8fe
am: f3fb06dd3d

* commit 'f3fb06dd3da173011eb04ea1d44f498ac7cb1152':
  Initial implementation of StorageManager.getVolumesList().
2016-02-17 23:55:41 +00:00
Arunesh Mishra
de15666923 Merge "SoundTriggerHelper changes for GenericSoundModels." into nyc-dev am: df8d02b074
am: 9f43371bae

* commit '9f43371bae759ba773ef179f091d9d5fdf668cad':
  SoundTriggerHelper changes for GenericSoundModels.
2016-02-17 23:51:33 +00:00
Jeff Sharkey
5808319629 Make BackupManager encryption aware.
Backup requires both CE and DE storage to be available, so delay
spinning up the backup system until the user is unlocked, since
that's when CE storage becomes available.  Note that devices without
FBE immediately transition USER_SYSTEM into the unlocked state,
since their CE is always available.

Offer to backup and restore files under both CE and DE.  Since DE
is effectively the same as CE, most logic is simply duplicated for
now, but it could be simplified in the future.  Since system apps
can force their default storage location to DE, we always build
explicit CE and DE paths.

Add getDataDir() to give clean access to the top-level private data
directory, but disclaim that apps shouldn't create files there.

Bug: 26279618
Change-Id: Ic34a4b330223725db93b1d0f5c9dffc88002c61f
2016-02-17 16:34:29 -07:00
Felipe Leme
014a0d11c7 Merge "Removed Intent.OPEN_EXTERNAL_DIRECTORY." into nyc-dev 2016-02-17 22:43:20 +00:00
Felipe Leme
3c3770d8fe Merge "Initial implementation of StorageManager.getVolumesList()." into nyc-dev 2016-02-17 22:42:40 +00:00
Arunesh Mishra
df8d02b074 Merge "SoundTriggerHelper changes for GenericSoundModels." into nyc-dev 2016-02-17 22:42:34 +00:00
Felipe Leme
34a9d52719 Removed Intent.OPEN_EXTERNAL_DIRECTORY.
Such intent is now encapsulated by StorageVolume.createAccessIntent().

BUG: 26742218

Change-Id: I2e2bd71126ecd74981f77b0af7d069f51aaece74
2016-02-17 14:38:25 -08:00
Arunesh Mishra
3fff7f5634 SoundTriggerHelper changes for GenericSoundModels.
- Refactoring SoundTriggerHelper to handle generic sound models.
     - Ability to store multiple models, callback and state information.
     - Separate out initialization to be done per voice model, per any model
     and per generic model.
 - Minor change to the API exposed -- removing the Handler from the
   createSoundTriggerDetector call.
 - Added callback processing for onRecognitionEvent().
 - Added logic for stopAll().
 - Changes to the SoundTriggerTestApp to start/stop recognition.
     - Multiple models (3).
     - Ability to start/stop/load/unload individual models.

Bug: 22860713
Bug: 27222043
Change-Id: Ie5d811babb956bead653fb560a43f1e549ed11bd
2016-02-17 14:24:03 -08:00
Tony Mak
dab9ccbfe9 Merge "[ContactsContract] Add new API PhoneLookup.CONTACT_ID and DATA_ID" into nyc-dev am: 181d907d24
am: cc5bd97810

* commit 'cc5bd9781038c4bf9b2edd07b482cdf50bc9af8b':
  [ContactsContract] Add new API PhoneLookup.CONTACT_ID and DATA_ID
2016-02-17 21:36:48 +00:00
Mitchell Wills
67f5d1b3bc Merge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev am: 07e27b7541 am: 4dbf436cac
am: 130bff074a

* commit '130bff074a2d2bf9582f7bc86338baa8f795fea4':
  Remove REPORT_EVENT_CONTEXT_HUB gscan option
2016-02-17 21:20:30 +00:00
Felipe Leme
04a5d40cf3 Initial implementation of StorageManager.getVolumesList().
This change makes StorageManager.getVolumesList(),
StorageManager.getPrimaryVolume(),  and StorageVolume public and adds a
buildAccessIntent() in the latter to automatically generate the
ACTION_OPEN_EXTERNAL_DIRECTORY intent, but it doesn't change the
ACTION_OPEN_EXTERNAL_DIRECTORY implementation yet (i.e., it still takes an URI with the physical path of the directory, instead of a StorageVolume and
a directorny name).

BUG: 26742218

Change-Id: I36c59c42b6579e125ec7f03c3af141260875a491
2016-02-17 13:14:39 -08:00
Tony Mak
fd9ec5a600 [ContactsContract] Add new API PhoneLookup.CONTACT_ID and DATA_ID
It is a mistake that we put contact id in PhoneLookup._ID.
But for SIP query, the contact id is put in Data.CONTACT_ID instead.
For backward-compability issue, we can't revert the change, but to
save developer from having logic like below, PhoneLookup.CONTACT_ID is
introduced.

if (sip) {
    get contact id in Data.CONTACT_ID column
} else {
    get contact id in PhoneLookup._ID column
}

So for sip query, we put contact id in PhoneLookup.CONTACT_ID.
For other phone lookup query, we put contact id in both PhoneLookup.ID
and PhoneLookup.CONTACT_ID.

BUG:27149017

Change-Id: I4155da29bbacdda0d43164b0ce11c7224a4eee67
2016-02-17 21:08:09 +00:00
Mitchell Wills
4dbf436cac Merge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev
am: 07e27b7541

* commit '07e27b75412de52b3ba5606e35a721e2b31ff094':
  Remove REPORT_EVENT_CONTEXT_HUB gscan option
2016-02-17 20:43:47 +00:00
Mitchell Wills
07e27b7541 Merge "Remove REPORT_EVENT_CONTEXT_HUB gscan option" into mm-wireless-dev 2016-02-17 20:30:56 +00:00
Tao Bao
60e0644d60 Merge "Add a Settings option of "Disable automatic update"." into nyc-dev am: c86f234c51
am: a250308200

* commit 'a250308200542681c7409a394d8277afa203123d':
  Add a Settings option of "Disable automatic update".
2016-02-17 20:16:00 +00:00
Tao Bao
c86f234c51 Merge "Add a Settings option of "Disable automatic update"." into nyc-dev 2016-02-17 20:06:52 +00:00
Anna Galusza
0d0f4756d5 Merge "Expose Intent for launching screen reader tutorial." into nyc-dev am: 9f972de6e5
am: 747d8814a8

* commit '747d8814a8bb23dea66daed8123b5a498ecf0b50':
  Expose Intent for launching screen reader tutorial.
2016-02-17 18:06:51 +00:00
Steve McKay
2d9344d5d9 Merge "Remove "HOME" directory. Use "Documents" instead." into nyc-dev am: 25a7ee08f6
am: 40cc8409e1

* commit '40cc8409e1c0255e44ce3ca2818dae9f636f9c7a':
  Remove "HOME" directory. Use "Documents" instead.
2016-02-17 18:00:54 +00:00
Anna Galusza
9f972de6e5 Merge "Expose Intent for launching screen reader tutorial." into nyc-dev 2016-02-17 17:56:33 +00:00
Edward Cunningham
e619e33b60 Merge "DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details." into nyc-dev 2016-02-17 17:50:45 +00:00
Steve McKay
25a7ee08f6 Merge "Remove "HOME" directory. Use "Documents" instead." into nyc-dev 2016-02-17 17:46:24 +00:00
Andrei Stingaceanu
6cc3a00f96 Merge "Suspend packages - one call for multiple packages" into nyc-dev am: 3e7bfe98e0
am: cb4634aa72

* commit 'cb4634aa72c8435705e41d7b0bf714b5c276022e':
  Suspend packages - one call for multiple packages
2016-02-17 15:30:07 +00:00
Andrei Stingaceanu
3e7bfe98e0 Merge "Suspend packages - one call for multiple packages" into nyc-dev 2016-02-17 15:17:35 +00:00
Andrei Stingaceanu
eb84b1843a Suspend packages - one call for multiple packages
Refactor setPackageSuspended into setPackagesSuspended. The rationale
is that the consumers of this API are likely to want to remove
multiple packages at once. Rather than calling the API N times, call
it just once.

The good part is that we already have the broadcast intent for
suspended packages take an array so only one broadcast. Less stress
on the system.

Another good part is that (right now) we only have one consumer of
this API and it will be easy to make changes once this CL goes in.

As a shell command, for consistency only allowed one package at
a time.

Bug: 22776761
Change-Id: Ic8b8cf64d0a288ea3a282bb7b72f9d663b3b0049
2016-02-17 15:14:33 +00:00
Przemyslaw Szczepaniak
76c407b12f Hide java.security.Signatue#getCurrentSpi
Internal implementation detail, shouldn't
be public.

Bug: 26689841

(cherry picked from commit 4e559bcbf3)

Change-Id: I86b9a3fdcab8afe580d153fac28ab85606626672
2016-02-17 15:00:42 +00:00
Tomasz Mikolajewski
d659cad62f Merge "Implement getDocumentStreamTypes() in DocumentsProvider." into nyc-dev am: 804d648138
am: d0c2533b5c

* commit 'd0c2533b5c770723fffc795957948691de58bd6e':
  Implement getDocumentStreamTypes() in DocumentsProvider.
2016-02-17 11:45:34 +00:00
Tomasz Mikolajewski
d0c2533b5c Merge "Implement getDocumentStreamTypes() in DocumentsProvider." into nyc-dev
am: 804d648138

* commit '804d648138212a00bb260291e39fde0b327df709':
  Implement getDocumentStreamTypes() in DocumentsProvider.
2016-02-17 11:41:04 +00:00
Tomasz Mikolajewski
804d648138 Merge "Implement getDocumentStreamTypes() in DocumentsProvider." into nyc-dev 2016-02-17 11:34:12 +00:00
Tomasz Mikolajewski
366828b056 Merge "Remove unused return in DocumentsProvider.removeDocument." into nyc-dev am: 36aafd5086
am: ae65936e8f

* commit 'ae65936e8f86d93890b690041a31a9c3225a36db':
  Remove unused return in DocumentsProvider.removeDocument.
2016-02-17 07:09:42 +00:00
Tomasz Mikolajewski
ae65936e8f Merge "Remove unused return in DocumentsProvider.removeDocument." into nyc-dev
am: 36aafd5086

* commit '36aafd5086dbd2e604419a0e02a9c7f292f092cd':
  Remove unused return in DocumentsProvider.removeDocument.
2016-02-17 07:05:54 +00:00
Tomasz Mikolajewski
36aafd5086 Merge "Remove unused return in DocumentsProvider.removeDocument." into nyc-dev 2016-02-17 07:02:55 +00:00
Jae Seo
5f08b3c079 Merge "TIF: Rename setTvInputInfo to updateTvInputInfo" into nyc-dev am: 519e0591fe
am: ee87545754

* commit 'ee8754575485512c36c878628351cf070cab53ce':
  TIF: Rename setTvInputInfo to updateTvInputInfo
2016-02-17 02:59:13 +00:00
Jae Seo
ee87545754 Merge "TIF: Rename setTvInputInfo to updateTvInputInfo" into nyc-dev
am: 519e0591fe

* commit '519e0591fe59bb03571e900ee53327d132e3e4b8':
  TIF: Rename setTvInputInfo to updateTvInputInfo
2016-02-17 02:55:59 +00:00
Jae Seo
aa5605ffee TIF: Rename setTvInputInfo to updateTvInputInfo
As TvInputInfo includes many complex objects as fields, it is not
practical to check whether an existing TvInputInfo has actually
"changed" by using simple comparisons when a new TvInputInfo object is
set by a TV input service.
This code change renames
  - setTvInputInfo to updateTvInputInfo
  - onTvInputInfoChanged to onTvInputInfoUpdated
to indicate that the callback is mechanically invoked whenever
updateTvInputInfo method is called.

Change-Id: Ia351b3591d0ed9da962311546f0ba51158e6478e
2016-02-16 15:44:47 -08:00
Anna Galusza
a77ef3c83e Expose Intent for launching screen reader tutorial.
Change-Id: Iad479b3f3dc7d1ca23fa044946a93544067adee3
2016-02-16 15:13:08 -08:00
Steve McKay
ab3b8936dc Remove "HOME" directory. Use "Documents" instead.
Use "Folder" as home icon for now.

Bug:27148009
Change-Id: I9f57bba1c8e51ae7887861923f5baa8f69ec2e6e
2016-02-16 14:52:35 -08:00
Tao Bao
fdf7c5d31f Add a Settings option of "Disable automatic update".
Bug: 27193001
Change-Id: Ibd205a749ebd674ca4500fd3b701888ac3ee8721
2016-02-16 12:22:22 -08:00
Edward Cunningham
baccf15a4a DO NOT MERGE Extend the DownloadManager.addCompletedDownload() method to support origin details.
Bug: 20294239
Change-Id: Ic770a223c23013ebab08d22dd14e7192dc8e3109
(cherry picked from commit 735a31e093)
2016-02-16 19:27:32 +00:00