Commit Graph

3328 Commits

Author SHA1 Message Date
Robin Lee
c74d85fee8 Make SYNC_PARENT_SOUNDS a @SystemApi
Since there is a CTS test depending on it which is currently hardcoding
the string. Let's not do that.

Bug: 30658854
Test: make full -j30
Change-Id: I6f6b1044ac664589b8fe76ced9961e80024b0b29
2017-03-17 19:11:20 +00:00
Clara Bayarri
c4a6d29ac6 Merge "Provide ApplicationContext to Typeface for font requests" 2017-03-16 09:40:39 +00:00
Casey Burkhardt
98d1dba2ab Merge "Display magnification via the nav bar Accessibility Button" 2017-03-16 00:26:53 +00:00
Okan Kolak
bfd10ebcb4 Merge "Voice Messaging Intent API." 2017-03-15 23:34:32 +00:00
Casey Burkhardt
74922c63e1 Display magnification via the nav bar Accessibility Button
Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
2017-03-15 14:12:51 -07:00
Clara Bayarri
ff221613ec Provide ApplicationContext to Typeface for font requests
We were using a generic context that caused crashes for
the content providers.

Bug: 34657204
Test: manual, calling getCallingPackage() from the provider
doesn't crash anymore.

Change-Id: I2b61e6510d8c6647007987373d03ee5dc97c0889
2017-03-15 17:38:56 +00:00
TreeHugger Robot
4bd73c3f62 Merge "Fix whitespace." 2017-03-14 22:36:53 +00:00
TreeHugger Robot
9e9f86199a Merge "Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS" 2017-03-14 04:55:46 +00:00
Donghyun Cho
f24d7255c2 Merge "CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED" 2017-03-14 04:54:38 +00:00
Justin Klaassen
058760737f Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS
Bug: 35356645
Test: adb shell am start -a "android.settings.NIGHT_DISPLAY_SETTINGS"
Change-Id: I8f725c4e4190e849d9160f09d2ca79f1987fc93a
2017-03-14 01:22:08 +00:00
Renat Aksitov
813fb1e9bd Voice Messaging Intent API.
Adding optional extras for specifying sender's account.

Bug 35920443

Test: make -j11 docs

Change-Id: I8460087a7e4059f8b73c57d96c20a06d3bd8029b
2017-03-13 15:39:20 -07:00
Ben Lin
227e6e8387 Fix whitespace.
Change-Id: Ie37dc21c629e1bccaed5e338bd8381aa82bc1aec
2017-03-13 15:36:24 -07:00
TreeHugger Robot
fa71ecb08a Merge "Move battery percent constant to Settings" 2017-03-13 19:09:52 +00:00
Evan Laird
bcf631d48b Move battery percent constant to Settings
This switch is moving to system settings so it should also be declared
by Settings. Also changed the constant's name to make sense in the
System context.

Test: runtest systemui
Bug: 32539932
Change-Id: I7cce21b50702f31465328dd8faed3fbac47528ea
2017-03-13 13:42:11 -04:00
Ben Lin
3e57595674 Merge "Stop DocumentsContract from consuming Exceptions if app is targetting O or above." 2017-03-13 17:27:22 +00:00
Donghyun Cho
c1fa9afbcd CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED
Currently the system setting, HDMI_SYSTEM_AUDIO_ENABLED, is used to
store the latest system audio mode status so that TV can keep this
status over reboot. But because the name is a little confusing and the
behavior isn't intuitive, it is likely to use this in a wrong way.
This change renames this setting to HDMI_SYSTEM_AUDIO_CONTROL_ENABLED
and tweak the purpose of it. Now, it will act more like a switch for
System Audio Control feature, so user can disable or enable this feature
entirely. With this way, implementation of audio output option will
also become easier.

Bug: 31449672
Test: Tested on archer
Change-Id: Ice8717135272d4b86665a3452bfe7527c0d6c08b
(cherry picked from commit 7b7aa8fb31ccf0cd3f36162a52f080263dd89e77)
2017-03-13 20:00:58 +09:00
Tomasz Mikolajewski
3eaef54349 Merge "Fix documentation for the Web Links API." 2017-03-13 01:29:33 +00:00
Philip Quinn
80274caf49 Add Secure setting for the assist gesture's sensitivity.
Test: make
Change-Id: I458419fce5ef092780220cdef99621d5eb251623
2017-03-11 01:22:47 +00:00
Ben Lin
8ea8200fed Stop DocumentsContract from consuming Exceptions if app is targetting O
or above.

Test: Builds properly.
Bug: 36023174
Change-Id: I455d358672f35fbeb5678c965b25268229ed4882
2017-03-10 10:48:31 -08:00
TreeHugger Robot
a2b2a29078 Merge "Allow Font providers to return status codes" 2017-03-10 18:10:43 +00:00
Clara Bayarri
bacf2352ab Allow Font providers to return status codes
This was requested by the current users, need to state
that a font is unavailable (needs downloading) or that
the query is unsupported.

Also add tests :)

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
Also CTS attached to topic
Bug: 35097775
Change-Id: Ib15bf4c70185d81a4c20426722eb44c4210771c2
2017-03-10 16:24:04 +00:00
TreeHugger Robot
642028fccd Merge "Replaced auto-fill by autofill to keep it consistent with API style." 2017-03-10 07:05:41 +00:00
TreeHugger Robot
05eb84582e Merge "Address comments from API council." 2017-03-10 02:32:58 +00:00
Felipe Leme
640f30a776 Replaced auto-fill by autofill to keep it consistent with API style.
This change will affects 2 types of apps: autofill service implementations
and apps that use autofill APIs.

Since just the former is known to be used at the moment, we're not trying
to keep backward compatibility with the latter.

Bug: 35956626
Test: CtsAutoFillServiceTestCases pass
Test: android.provider.SettingsBackupTest pass

Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
2017-03-09 08:14:49 -08:00
TreeHugger Robot
fe01038616 Merge "Updated javadoc for ACTION_MANAGE_EXTERNAL_SOURCES" 2017-03-09 01:22:00 +00:00
Lei Yu
30d69eaf86 Merge "Add BatterySaverPolicy for power save mode" 2017-03-08 20:02:46 +00:00
jackqdyulei
455e90add2 Add BatterySaverPolicy for power save mode
The BatterySaverPolicy is designed to consolidate all battery saver
knobs into a central location. Usually it is consistent to
mLowPowerModeEnabled unless it gets different data for specific
service. By adding these knobs, we can effectively tune the battery
saver.

This cl sets up the framework for BatterySaverPolicy and updates
following service to get battery saver data from BatterySaverPolicy

1. GnssLocationProvider
2. VibratorService
3. WindowManagerService
4. BackupManagerService
5. SoundTriggerService
6. NetworkPolicyManagerService

Screen brightness will come in a following cl.

Bug: 34693888
Test: FrameworksServicesTests

Change-Id: I6b040e93391614b44d136a485faa4a332c396e51
2017-03-08 09:20:36 -08:00
Suprabh Shukla
84d11b4716 Updated javadoc for ACTION_MANAGE_EXTERNAL_SOURCES
Added an optional parameter that can be passed as data to directly open
the app specific page

Test: N/A

Bug: 35487166

Change-Id: Ib20fe902670d98d949c5776cd633c38a5332b751
2017-03-07 23:40:29 -08:00
TreeHugger Robot
1966cccd32 Merge "Keep Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED updated." 2017-03-07 23:01:50 +00:00
Jeremy Joslin
9925c6a7e7 Keep Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED updated.
Make sure Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED reflects
the current active scorer state. When valid the setting will have a
value of 1, when invalid it will be 0 (or more
accurately not 1, see below).

Introduced a new valid setting value, -1, which indicates the feature
has been forced off.

Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 35896421
Change-Id: I271725f798e5d0acc7c08c79678dba5115f8faad
2017-03-07 10:13:41 -08:00
Clara Bayarri
3c4be77db9 Support non-system Font Providers
To do this, the developer must specify the set of certificate
hashes that represent the authority's app. This allows us to
verify that the authority we find is indeed the one intended
by the developer.

Bug: 35025705
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
CTS attached to topic
Change-Id: I605f9a93bbca8705936ead08efb4a5b4fdcc4882
2017-03-07 14:59:33 +00:00
Santos Cordon
25e333cb3c Merge "Add VR_DISPLAY_MODE settings to be backed up." 2017-03-06 21:56:07 +00:00
Tomasz Mikolajewski
f1d5540045 Fix documentation for the Web Links API.
Per API council feedback.

Test: None
Bug: 35812888
Change-Id: I18e7bf931a74772e315b359cf0d72d2129c0b90c
2017-03-03 15:09:40 +09:00
Garfield Tan
40d7b35fdd Address feedback from API council for INITIAL_URI.
Test: It builds.
Bug: 35813138
Change-Id: Ia30032fb9c556547a8249c2d2ec96cf4cc5a7d90
2017-03-02 15:40:22 -08:00
Garfield Tan
b690b4de06 Address comments from API council.
Test: Code builds and tests pass. Also some manual tests around ESP.
Bug: 35813037
Bug: 35812990
Change-Id: Ia9d3a3964e9a83d0c1c08e5db4c2e231504aa99a
2017-03-02 12:48:13 -08:00
Garfield Tan
5d3b37b947 Remove DocumentsContract.ACTION_BROWSE.
Test: It builds.
Bug: 35760993
Change-Id: Icdd125d6e6329f703c4682b47b5b9fb80d7e1f27
2017-03-01 12:11:30 -08:00
Santos Cordon
5bce494b93 Add VR_DISPLAY_MODE settings to be backed up.
Test: use adb backup to backup/restore and verify value is carried over.
Bug: 34437367
Change-Id: Icefc6bb1ae2f6410580214d0fe4fe4bd40038f46
2017-02-28 12:05:37 -08:00
Julia Reynolds
a11d0b18ec Api review feedback.
Change-Id: I4628fcec43ec5dbacd208401d9ace2dbe658da64
Fixes: 35812235
Fixes: 35812334
Fixes: 35812179
Test: make
2017-02-28 17:59:31 +00:00
Amin Shaikh
d3c8193093 Setting for RecommendedNetworkEvaluator cache TTL
Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
2017-02-27 17:03:10 -08:00
Jack Yu
a585180c75 Merge "Added a settings for CMAS message broadcast" 2017-02-25 00:11:12 +00:00
Jack Yu
3902857290 Added a settings for CMAS message broadcast
This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
2017-02-24 12:18:46 -08:00
TreeHugger Robot
798cccb659 Merge "Don't copy ringtones when profile sync goes off" 2017-02-23 04:21:39 +00:00
Robin Lee
7af9a74431 Don't copy ringtones when profile sync goes off
Experimentally, it makes more sense to more people to have the parent
setting as an overlay not a concrete thing.

Test: make cts -j30 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Bug: 34730524
Change-Id: I5f804713def9e54921b90e4f5cea742ba8aaa685
2017-02-23 02:47:24 +00:00
TreeHugger Robot
0e9acb53bd Merge "Add "Use open Wi-Fi automatically" setting." 2017-02-23 02:37:26 +00:00
Daniel Nishi
5840f4238f Merge "Add a flag to enable/disable the cache quota calc." 2017-02-22 23:39:34 +00:00
Sudheer Shanka
f764962b0d Merge "Revert "Ensure network connectivity on app start."" 2017-02-22 22:47:56 +00:00
Amin Shaikh
bc9a8e6f5b Add "Use open Wi-Fi automatically" setting.
- Add constant in NetworkScoreManager for the meta-data key required
for NetworkRecommendationProviders to specify which package provides
this feature.
- Add Setting to specify which package is enabled for providing this
feature.

Bug: 34773276
Test: make
Change-Id: I3f8209c21b8b219c242650f97ba407b5985a5250
2017-02-22 14:23:50 -08:00
Sudheer Shanka
c9d9407e8e Revert "Ensure network connectivity on app start."
This reverts commit 27e6931583.

Change-Id: I4c41ce7c1839d3b91931bc8a8f117f32bf6cd381
2017-02-22 22:13:55 +00:00
TreeHugger Robot
9857ab99e4 Merge "Unhide root MIME type." 2017-02-22 19:45:48 +00:00
Daniel Nishi
0f703e64e3 Add a flag to enable/disable the cache quota calc.
Bug: 34770259
Test: ServicesTests
Change-Id: I74155203c4802b1a3b89117859002bf40b1ca435
2017-02-22 11:24:10 -08:00