12690 Commits

Author SHA1 Message Date
Joe Onorato
04a72a2a51 Merge "Add an API for apps to get their System Health / Battery Stats data." into nyc-dev 2016-03-10 00:52:03 +00:00
Todd Kennedy
3d2e374e70 Merge "Update API" into nyc-dev 2016-03-10 00:08:58 +00:00
Todd Kennedy
ef342404c6 Update API
Change-Id: Ia1c913d1508d80489fcc0e01e5d10f72f8f9af5c
2016-03-09 16:08:09 -08:00
Joe Onorato
713fec85b8 Add an API for apps to get their System Health / Battery Stats data.
Change-Id: Ib27e1be469b826f6d83d73ce6024102bbdb1d47a
2016-03-09 15:47:24 -08:00
Makoto Onuki
4a07c34ca8 Merge "ShortcutManager: add remaining APIs." into nyc-dev 2016-03-09 22:28:45 +00:00
Lifu Tang
e1b5358bae Merge "Modified the API to make coverage test possible" into nyc-dev 2016-03-09 21:53:17 +00:00
Lifu Tang
0f1ab04516 Modified the API to make coverage test possible
Bug: 27462840
Change-Id: Idfd2c3c108b25f8be9046fd4bb72dbc57edc24bd
2016-03-09 11:32:43 -08:00
Alan Viverette
5f63721a6c Add missing annotations, getters to GradientDrawable
Fixes getColor() NPE when colors array is null.

Bug: 27543512
Change-Id: Ieec8a2315d0a2e4ab0ddbe053bccdd8c43080857
2016-03-09 13:30:35 -05:00
Martijn Coenen
2612bbc0f5 Merge "API to query which cores are exclusively assigned." into nyc-dev 2016-03-09 10:31:03 +00:00
Shubham Ajmera
d9f35f9831 Port OpenJDK8 java.util.*SummaryStatistics & add tests
Ported OpenJDK8 java.util.DoubleSummaryStatistics,
java.util.IntSummaryStatistics, java.util.LongSummaryStatistics.

Based on openJdk 8u40 source & iam@ stream change in
ag/872080

Bug: 27426738

(cherry picked from commit 2ff7afd8620b3fdcd59ee2445a408bdb1ac13bb4)

Change-Id: Ia284503a3e5190e7c7f9adf812210ad3060f4a07
2016-03-09 10:04:47 +00:00
Makoto Onuki
5504622fb0 ShortcutManager: add remaining APIs.
- Icons are now persisted. (under /data/system_ce, as PNGs)
- the "load icon" APIs in LauncherApps are supported.
- Implement updateShortcuts()

- Addressed all the comments on the previous CL
- @hide the newly added constructor for PersistableBundle

- Enhance incoming shortcut validation
- A lot of internal clean-up.

Bug 27548047

Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
2016-03-08 18:37:32 -08:00
Makoto Onuki
76cb56bb21 Merge "Implement LauncherApps.startShortcut()." into nyc-dev 2016-03-09 01:38:37 +00:00
Makoto Onuki
43204b8357 Implement LauncherApps.startShortcut().
Bug 27548047

Change-Id: I357732e22be0959fb573fd6cdaee7c6b439ef7c4
2016-03-08 17:26:28 -08:00
Sudheer Shanka
97e89c624e Merge "Update DPM.getWifiMacAddress to take admin component as argument." into nyc-dev 2016-03-08 22:52:11 +00:00
Dongwon Kang
08713d2a0e Merge "TIF: Unhide TvView.setZOrderMediaOverlay/setZOrderOnTop/tune/unblockContent" into nyc-dev 2016-03-08 22:11:13 +00:00
Yi Kong
2f55bdf2e3 Track libcore change f121f31fd91c5a557225cd6a97418e716529eb2d (part 2)
Bug: 27427010
Change-Id: I5527f34ef6bf15aaa1a39b705e951122ae4b3d5a
2016-03-08 19:14:21 +00:00
Dongwon Kang
e12d810e99 TIF: Unhide TvView.setZOrderMediaOverlay/setZOrderOnTop/tune/unblockContent
Bug: 25726685
Change-Id: If96d0b086488c931d20315ee1c29cf7374715d93
2016-03-08 10:53:09 -08:00
Makoto Onuki
ed58f5f0aa Merge "Introducing ShortcutManager" into nyc-dev 2016-03-08 18:01:05 +00:00
Julia Reynolds
4ed0e8cf8f Merge "Condition cleanup." into nyc-dev 2016-03-08 17:39:01 +00:00
Jean-Michel Trivi
84dee4f16c Merge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev 2016-03-08 16:46:58 +00:00
Julia Reynolds
1d6d16d699 Condition cleanup.
Change-Id: If978bebac52c0b1438e86339669f409b4b17c6fc
2016-03-08 10:41:31 -05:00
Chris Wren
be3696d425 Merge "rename the asisstant service for the ranker" into nyc-dev 2016-03-08 14:13:45 +00:00
Martijn Coenen
cd4bdf3eb9 API to query which cores are exclusively assigned.
On devices with cpuset support, the foreground app
may have a core exclusively assigned to it. Add an
API that allows apps to query which core that is,
so it can use that to set scheduling affinity.

Bug: 27381794
Change-Id: Iea148776da6d7abb745ccf9e6ad5ad46491e340a
2016-03-08 13:09:32 +01:00
Sudheer Shanka
3cb4da16dc Update DPM.getWifiMacAddress to take admin component as argument.
Bug: 27532280
Change-Id: I3a5e9557c3c6ac43c458c911a5309bdb2655fb66
2016-03-07 18:51:49 -08:00
Daichi Hirono
d517e6aeed Merge "Add a new key to Settings.Global to obtain the number of boot." into nyc-dev 2016-03-08 02:06:39 +00:00
Amit Mahajan
0f90653ca1 Merge "New permission for bypassing premium short code check." into nyc-dev 2016-03-08 01:13:53 +00:00
Ruben Brunk
875825d0c1 Merge "Add a VR listener service." into nyc-dev 2016-03-08 00:14:57 +00:00
Jean-Michel Trivi
598c0c9f65 Rename AudioRecordConfiguration to AudioRecordingConfiguration
In package android.media:
- rename AudioRecordConfiguration to
   AudioRecordingConfiguration to avoid ambiguity with the
   android.media.AudioRecord class
- rename AudioManager.getActiveRecordConfigurations() to
   getActiveRecordingConfigurations.

Bug 27385560

Change-Id: I5ef404ff36522193990c9b563d4545893529b365
2016-03-07 16:05:51 -08:00
Ruben Brunk
e24b9a6cfa Add a VR listener service.
Bug: 22855417
Bug: 26724891
Bug: 27364145

- Add an API for VrListenerService, which is bound/unbound
  from the framework when the system VR mode changes.
- Allow only a single bound VrListenerService at a time.
- Monitor allowed VrListenerService implementations from
  VrManagerService and evict services as needed when packages,
  users, or settings change.
- Remove previous VR functionality in NotificationListenerService.
- Add component target to Activity#setVrMode to allow
  explicit selection of the running VrListenerService from
  the current VR activity.

Change-Id: I776335f4441be0e793d3126f2d16faf86a8c621a
2016-03-07 15:54:12 -08:00
Amit Mahajan
e5cd9fa439 New permission for bypassing premium short code check.
Bug: 18326557
Change-Id: I1b05f73103183b851bbef1280d0785ce0a48159a
2016-03-07 21:51:44 +00:00
Chris Wren
e0ba7eb365 rename the asisstant service for the ranker
Bug: 22960980
Change-Id: Ibe57933303a488b01c43a7621a488d425d6f707d
2016-03-07 16:50:27 -05:00
Jean-Michel Trivi
310355d28e Merge "Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"" into nyc-dev 2016-03-07 19:59:42 +00:00
Jean-Michel Trivi
431ec6cdb9 Revert "Rename AudioRecordConfiguration to AudioRecordingConfiguration"
This reverts commit 99278e1c724e01b792dd27031bc579e7d738edc1.

Change-Id: Ifcb3f17a26df8171cbc21dac093477b98a1333db
2016-03-07 19:59:21 +00:00
Jean-Michel Trivi
46f5429768 Merge "Rename AudioRecordConfiguration to AudioRecordingConfiguration" into nyc-dev 2016-03-07 19:29:04 +00:00
Jeff Tinker
b849eeab26 Merge "Add error code to MediaCodec.CryptoException" into nyc-dev 2016-03-07 18:18:10 +00:00
Daichi Hirono
82ab9801eb Add a new key to Settings.Global to obtain the number of boot.
BUG=26212981

Change-Id: I5ca51ca624a30dc2d96e547a85a712e273af1931
2016-03-07 12:45:19 +09:00
Jeff Sharkey
d6de3abed9 Merge "Add AssetFileDescriptor to MediaExtractor." into nyc-dev 2016-03-05 23:09:25 +00:00
Jeff Sharkey
a3c1c2297d Add AssetFileDescriptor to MediaExtractor.
Mirrors API on MediaPlayer.

Bug: 27506874
Change-Id: Ibc07cf8151c362ff7375b89e7a9044bef1d9e94d
2016-03-05 16:07:46 -07:00
Jeff Tinker
d393216f8a Add error code to MediaCodec.CryptoException
Added a code to represent unsupported operations

bug: 25929554
Change-Id: Id8bfa092f29de073db19c4d7444f89249ea2cdd5
2016-03-05 11:53:23 -08:00
Makoto Onuki
6f7362d925 Introducing ShortcutManager
What's supported:
- Most APIs are implemented, except for SM.updateShortcuts(),
the icon APIs in LA, and LA.startShortcut().
- Persisting information, except for icons
- Throttling

In addition, now PersistableBundle has a public copy
constructor from a Bundle. (Do we want to @hide it?)

TODOs:
- Add icon support
- Implement missing APIs
- Listen to PACKAGE_* broadcasts and do clean-up
- Support multi-launcher apps (pinned shortcuts per launcher)
- Dev option to reset throttling
- Load throttling config from Settings
- Backup & restore
- Figure out LauncherApps permissions (BIND_APPWIDGETS??)
- Other minor TODOs in the code
- Better javadoc

Note: This requires Idf2f9ae816e1f3d822a6286a4cf738c14e29a45e

Bug 27325877

Change-Id: Ia5aa555a4759df5f79a859338f1dc5e624cd0e35
2016-03-04 15:24:49 -08:00
Jean-Michel Trivi
b74926232e Merge "API changes for audio recording notifications" into nyc-dev 2016-03-04 22:49:31 +00:00
Julia Reynolds
cedacefd70 Api Review: NotificationManager.Policy
Bug: 27365873
Change-Id: Ie53a410d53f430fa90f24d95a885be150a3d66aa
2016-03-04 14:37:45 -05:00
Narayan Kamath
cda4198937 Track libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33 (part 2).
Also includes a regenerated test-current.txt.

bug: 27426688

(cherry picked from commit 7d18ce744fff219ab60470ec095d585b854b91e1)

Change-Id: I754803d51d365ac1fe26c638b12efb88d23b35c6
2016-03-04 13:24:13 +00:00
Narayan Kamath
3e7ef62e04 Track libcore change e86a81ca1ae9ddbdd1c3239d31fb2e49b4a5cf33.
bug: 27426688

(cherry picked from commit 7d18ce744fff219ab60470ec095d585b854b91e1)

Change-Id: If22e493a80958ebd57ae5cc9d0f74d9479c86211
2016-03-04 12:46:37 +00:00
Narayan Kamath
6f9845ce85 Track libcore commit 6c5284cca0ec8cf20dd6c5e9b2b6254d813e9d24.
Includes generated changes for test-current.txt.

bug: 27426688

(cherry picked from commit de33c660df4a6ff8a138e3033c9e1d446bd6b570)

Change-Id: Idd323fe7458a2b124aae0009b4de83039e2ade21
2016-03-04 11:56:49 +00:00
Steve McKay
75b19dd208 Merge "Make COLUMN_CAPACITY_BYTES public." into nyc-dev 2016-03-04 02:12:02 +00:00
Roozbeh Pournader
fa207d6097 Merge "Unhide LocaleList.getAdjustedDefault()" into nyc-dev 2016-03-03 23:46:57 +00:00
Todd Kennedy
dfa93abf2f Fix javadoc
Make referenced constants @SystemApi and change argument name to
match its actual meaning.

bug: 25441401
Change-Id: I4277799b95f394edb4305be05f57437717a86691
2016-03-03 15:24:33 -08:00
Roozbeh Pournader
5a06c663b5 Unhide LocaleList.getAdjustedDefault()
Apps/libraries/widgets that wish to display text their own way (think
WebView/Chrome) or do some resource management themselves should be
able to use LocaleList.getAdjustedDefault(), the same way we use it
in Paint and Resources.

Bug: 26988869
Change-Id: I4b6aac7adb5da15459dca92574923f33f0702433
2016-03-03 14:20:52 -08:00
Steve McKay
7542f751e3 Make COLUMN_CAPACITY_BYTES public.
So providers can tell us total capacity.

Change-Id: Id990c417fcae4c6beee3e09dcb633b22e875e08f
2016-03-03 13:35:30 -08:00