Commit Graph

15141 Commits

Author SHA1 Message Date
TreeHugger Robot
a9da39cb64 Merge "Add wide color gamut and HDR resource qualifiers" 2017-01-20 04:10:04 +00:00
TreeHugger Robot
4c0659f531 Merge "Enable background restrictions" 2017-01-20 02:55:30 +00:00
Romain Guy
c9ba559021 Add wide color gamut and HDR resource qualifiers
Bug: 32984164
Test: Config_test, AaptConfig_test and aapt2_tests
Change-Id: Ie9c82bfe2d36b1d6180ee223250ab5bb2ce90dd4
2017-01-19 18:44:00 -08:00
Siyamed Sinir
24fac986ec Merge "Revert "Introduce set/getFontVariationSettings."" 2017-01-20 01:59:52 +00:00
Siyamed Sinir
a3b9f2e3c6 Revert "Introduce set/getFontVariationSettings."
This reverts commit ba3028c1fc.

Bug: 34378805
Change-Id: I8250c87af5d65fb45789632580be4ae1b8711372
2017-01-20 01:13:23 +00:00
TreeHugger Robot
d48fed9b55 Merge "Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText" 2017-01-20 01:07:20 +00:00
Christopher Tate
42a386b771 Enable background restrictions
Apps that target O+ are always subject to background restrictions.
Legacy apps' background restriction is subject to the OP_RUN_IN_BACKGROUND
app op.

Apps with these properties are exempted from background restrictions:
  - persistent process
  - currently on the idle battery whitelist
  - global whitelist for things like bluetooth services

Bug 30953212

Change-Id: Icc19b2fbc05f40dcf8c3fc4abf718c373dc8d4f6
2017-01-19 16:23:02 -08:00
Sudheer Shanka
513dc5417f Merge "Add new api Instrumentation.ActivityMonitor.onMatchIntent." 2017-01-20 00:15:14 +00:00
Shreyas Basarge
6fbd65aa1a Merge "Non incremental backup flag for requestBackup" 2017-01-19 23:44:18 +00:00
Shreyas Basarge
38e7486d38 Non incremental backup flag for requestBackup
This cl adds a new requestBackup API to
BackupManager that takes in an int flag
to indicate whether the caller wants the
entire key value set to be passed to the
transport and not just a diff.

Change-Id: Ia225797a58c4431fe742f2f116b257d006b30cd1

Bug: 33749084
Ref: go/request-backup-api-changes
Test: GTS Test at ag/1774002
2017-01-19 22:13:01 +00:00
TreeHugger Robot
699fd45347 Merge "Update Account Manager to use latest version of account discovery API." 2017-01-19 20:17:22 +00:00
Vladislav Kaznacheev
6a944ca175 Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText
Bug: 34454987
Test: android.view.cts.TooltipTest
Change-Id: I7203d5c61804b79584ba8449643c6c0f27a90747
2017-01-19 11:12:53 -08:00
Tyler Gunn
15470f9bfc Merge "Adding self-managed connection service APIs." am: 3a7253a09d am: 2155be0218 am: d70e5d9317
am: 61650097ed

Change-Id: Icfeff293b66b1bb062095a857c8a22ac0dcbdd63
2017-01-19 18:44:10 +00:00
Tyler Gunn
61650097ed Merge "Adding self-managed connection service APIs." am: 3a7253a09d am: 2155be0218
am: d70e5d9317

Change-Id: I20ba841ceefb5905bf81262d6c42ea4b252ba3d4
2017-01-19 18:39:50 +00:00
Tyler Gunn
2155be0218 Merge "Adding self-managed connection service APIs."
am: 3a7253a09d

Change-Id: I5d7aa094d71e40bc2ce8e6d051c757a82d9c6083
2017-01-19 18:29:54 +00:00
Treehugger Robot
3a7253a09d Merge "Adding self-managed connection service APIs." 2017-01-19 18:23:34 +00:00
Hangyu Kuang
9deb7b5e73 Merge "media: Add new API to set next output file." 2017-01-19 18:17:45 +00:00
TreeHugger Robot
96415fb603 Merge "Pass more data through the recommendation request." 2017-01-19 15:29:42 +00:00
Przemyslaw Szczepaniak
abb47f3606 Merge "Track libcore java.util.logging update to ojdk8u60" am: 76edc3b8a5 am: 0823ed394b am: b72c17afdc
am: baa1aea5e1

Change-Id: Id00a02599847b902878eb501d687645f66e15420
2017-01-19 14:35:52 +00:00
Przemyslaw Szczepaniak
baa1aea5e1 Merge "Track libcore java.util.logging update to ojdk8u60" am: 76edc3b8a5 am: 0823ed394b
am: b72c17afdc

Change-Id: I84dc0804b1f9db5359d9c9d8caf0356398eab2d5
2017-01-19 14:29:13 +00:00
Przemyslaw Szczepaniak
0823ed394b Merge "Track libcore java.util.logging update to ojdk8u60"
am: 76edc3b8a5

Change-Id: I0598b566f4d02a6d14c6be86f917bcef48bbf748
2017-01-19 14:16:56 +00:00
Przemyslaw Szczepaniak
76edc3b8a5 Merge "Track libcore java.util.logging update to ojdk8u60" 2017-01-19 14:11:13 +00:00
Orion Hodson
1ed0f2d447 Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" am: e5c3aed8dc am: a08d67495c am: da4cfdfbdf
am: c61c0baeee

Change-Id: I0252e8a7684b05e567f7563e7a82376bcef4b03c
2017-01-19 13:56:37 +00:00
Orion Hodson
c61c0baeee Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" am: e5c3aed8dc am: a08d67495c
am: da4cfdfbdf

Change-Id: I5bf99527268cb26f3b1cab4a24080b9598ee03d2
2017-01-19 13:52:05 +00:00
TreeHugger Robot
a85963aba9 Merge "Unhide public methods for API Council review. Test: Existing unit tests still pass. Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171" 2017-01-19 13:50:26 +00:00
Orion Hodson
a08d67495c Merge "API: Unhide dalvik.system.InMemoryDexClassLoader"
am: e5c3aed8dc

Change-Id: I90cd3d3b09000bd3e1961a63d95eede19f0bd12e
2017-01-19 13:43:05 +00:00
Orion Hodson
e5c3aed8dc Merge "API: Unhide dalvik.system.InMemoryDexClassLoader" 2017-01-19 13:35:52 +00:00
Pavel Grafov
b271f34625 Merge "Store pending OTA state and make it accessible via polling api." 2017-01-19 11:09:32 +00:00
Tomasz Mikolajewski
03e59f6e3f Merge "Add Web Links API to framework." 2017-01-19 05:26:11 +00:00
TreeHugger Robot
12b6e2e91a Merge "Add <autofill-service> that declares AutoFillService metadata." 2017-01-19 04:37:35 +00:00
gomo
127ba323d9 Unhide public methods for API Council review.
Test: Existing unit tests still pass.
Change-Id: I49b81f99e4e8d8300fbc6b3d74f336d4f291d171
2017-01-18 19:48:28 -08:00
Jason Long
4b93f46130 Add <autofill-service> that declares AutoFillService metadata.
The initial version of <autofill-service> may contain a settingsActivity
attribute.

Test: Manual verification
Change-Id: I63a67aa4b7110fbf21d0b01ee53add712bfb0364
2017-01-18 19:35:47 -08:00
Tomasz Mikolajewski
cf31656cf4 Add Web Links API to framework.
Test: CTS in a separate CL.
Bug: 30152711
Change-Id: Ia256422d50110d6adcd1984f6481ab825dbf30b1
2017-01-19 11:50:46 +09:00
TreeHugger Robot
b55db281da Merge changes I1606b184,Id78dd4ab
* changes:
  Publish StorageManager#openProxyFileDescriptor API.
  Add StorageManager#openProxyFileDescriptor.
2017-01-19 02:15:34 +00:00
Hangyu Kuang
e176ee1222 media: Add new API to set next output file.
Only support recording to MP4 file now. When the recorded file is approcaching
file size limit, application will receive
MEDIA_RECORDER_INFO_MAX_FILESIZE_APPROACHING callback from mediarecorder.
Application could use setNextOutputFile to set the next output file before or
after receiving this callback. Upon reaching filesize limit, recorder will swap
the output file internally and notify application with
MEDIA_RECORDER_INFO_NEXT_OUTPUT_FILE_STARTED.

Test: Hack camera app to record more than filesize limit.
Bug: 28150626
Change-Id: I2daf8f798fe3631d6b7ef48ebea3a64ab4566f2d
2017-01-18 17:32:17 -08:00
Chris Tate
9e83cbbc10 Revert "Enable background restrictions"
This reverts commit 21f778060b.

Change-Id: I65586f9739da84fb32b51b0ea166b8288c41d1b3
2017-01-19 01:12:19 +00:00
Daichi Hirono
500bffdba9 Publish StorageManager#openProxyFileDescriptor API.
Bug: 29970149
Test: Build succeeded
Change-Id: I1606b184968839fb99744387dcc058f15f6521c8
2017-01-19 09:30:58 +09:00
Sunny Goyal
6804d4de65 Merge "Adding support for apps to return PinItemRequest to launchers as a result of Intent.ACTION_CREATE_SHORTCUT" 2017-01-19 00:27:52 +00:00
Shane Brennan
57bf4ea479 Merge "Add support for audio-focused notifications." 2017-01-19 00:12:09 +00:00
Jason Monk
9cfbe9573e Merge "Allow FragmentContainer to play a role in fragment construction" 2017-01-18 23:58:38 +00:00
TreeHugger Robot
cc2a4210d7 Merge "Revert "MediaBrowserService: Add a constant for suggestion keywords"" 2017-01-18 23:35:29 +00:00
Jeremy Joslin
26a45e5b13 Pass more data through the recommendation request.
Expanding the API so it can accept the WiFi config of the currently
connected network (if any) and the set of connectable WiFi
configurations. Also renamed currentRecommendedWifiConfig to
defaultWifiConfig so the name was more representative of the
parameter's purpose and added more documentation throughout.

Test: adb shell am instrument -e class android.net.RecommendationRequestTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -w com.android.networkrecommendation.tests/android.support.test.runner.AndroidJUnitRunner
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34387385
Change-Id: I1089b70303b0396def7e6bf3737fdc67e40c9dcd
2017-01-18 15:00:06 -08:00
TreeHugger Robot
b0ac86b7f6 Merge "Add primaryContentAlpha attribute" 2017-01-18 22:56:28 +00:00
Tyler Gunn
f50354363c Adding self-managed connection service APIs.
1. Adding new APIs for self-managed connection services.
2. Adding Telecom package-level documentation.

Test: Manual (unit, cts pending; this is just scaffolding for now)
Bug: 34159263
Change-Id: Ic226ec8bfcb2fbcc02fe802b47499e47aab17d0a
2017-01-18 14:44:43 -08:00
Jason Monk
6ca235de02 Add primaryContentAlpha attribute
And create a generic primary text selector that can be used for all
themes.

Test: Manual
Change-Id: I274da909209188d7a8f4924ee8c64eff7011b7e2
2017-01-18 16:34:45 -05:00
Shane Brennan
472a3b330a Add support for audio-focused notifications.
Add extras keys and methos to Notification and RemoteInput for notifications
whose contents have an audio representation and whose RemoteInputs
can accept data results (useful for, e.g., voice messaging
applications, photo results, etc).

This motivator for this change is it enables an end-to-end flow for
audio messaging including
  * System receives the audio message
  * Replying to the message with the user's voice
  * App receives the audio reply data

Note that this CL just adds the capabilities, but does not
add any UI or implementation to perform the above flow.

Test: As agreed, this will be tested both with a set of unit tests,
      and with an "end-to-end" test that simulates two apps, one
      creating an audio message with audio reply action, and a
      second app that executes that action, providing an audio
      result.

Change-Id: I55779ac4b781d8273c13c69fded0b56ee639cf01
2017-01-18 12:15:16 -08:00
Christopher Tate
21f778060b Enable background restrictions
Apps that target O+ are always subject to background restrictions.
Legacy apps' background restriction is subject to the OP_RUN_IN_BACKGROUND
app op.

Apps with these properties are exempted from background restrictions:
  - persistent process
  - currently on the idle battery whitelist
  - global whitelist for things like bluetooth services

Bug 30953212

Change-Id: Ib444829a2d222125f64ff19e8218823fa78373f9
2017-01-18 11:30:41 -08:00
Sudheer Shanka
d1d12d1149 Add new api Instrumentation.ActivityMonitor.onMatchIntent.
During testing, sometimes it's sufficient to know that intent is being
triggered and no need to actually launch the target activity as part of
the test. Currently, ActivityMonitor solves this problem but we have to
know all the intents that will be triggered during the test and provide
ActivityMonitors for each of them. So, this change adds a new api
ActivityMonitor.onMatchIntent which can be used for intercepting any
outgoing intents during tests.

Bug: 31810293
Test: cts-tradefed run singleCommand cts-dev --module CtsAppTestCases -t \
      android.app.cts.Instrumentation_ActivityMonitorTest
Change-Id: I46ba4b9a21da000492f9e7b242c01999ebc54423
2017-01-18 11:24:59 -08:00
Glen Kuhne
424650dd52 Merge "Unhide WifiConfiguration proxy accessors" am: c82d1ddaf4 am: d2f5fd3c42
am: 878fcfaa22

Change-Id: Ib4a59d41088ba00b21ccaeea6a9e7578c24ab8da
2017-01-18 18:57:40 +00:00
Sunny Goyal
a6be88a10d Adding support for apps to return PinItemRequest to launchers
as a result of Intent.ACTION_CREATE_SHORTCUT

> Adding API to allow launchers to query shortcut config activities in
  managed profiles.
> Adding API to allow the default Launcher to start the shortcut config
  activity in managed profiles.
> Updating the ACTION_CREATE_SHORTCUT documentation to represend changes
  in the expected result.

Test: Manual tests and all the unit tests
adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
... to test10

Change-Id: I785c4f2fba782b864cc401ac7905330ea4498289
2017-01-18 10:26:51 -08:00