Commit Graph

3364 Commits

Author SHA1 Message Date
Chad Brubaker
8d7b36f0ec Expose package_verifier_user_consent to Instant Apps
Test: manual
Bug: 37119785
Change-Id: I0a6deb96f1267f3f80bcf017d898fcf365515353
2017-04-06 22:57:18 -07:00
TreeHugger Robot
b4e3b344fa Merge "Pass weight/italic pair instead of style." into oc-dev 2017-04-05 10:04:52 +00:00
Jeff Sharkey
8d5d065cdf Add legacy DownloadManager actions to SystemApi.
They're still used by at least one bundled app.

Test: builds, boots
Bug: 35256608
Change-Id: I45966b3e0ed506ead4544bbbfc9d82b7f9d5205d
2017-04-04 14:38:47 -06:00
Seigo Nonaka
fe04aa840e Pass weight/italic pair instead of style.
Typeface.NORMAL/BOLD/ITALIC/ITALIC_BOLD is used for specifying relative
from current Typeface. For example

  Typeface face = Typeface.create("serif");
  Typeface thickerFace = Typeface.create(face, Typeface.BOLD);
  Typeface moreThickerFace = Typeface.create(tickerFace, Typface.BOLD);

For the purpose of providing font information, we should use weight/italic
value instead of style in Typeface.
The Columns.STYLE field was kept for preventing runtime crash of demo
apps.

Test: Manually
Change-Id: I732e8ee04a66f61321fc0a98dbfb8fdc0a4dd7a4
2017-04-04 10:12:55 -07:00
Chad Brubaker
91d2e2832c Expose animator settings to Instant Apps
Bug: 36861394
Test: Instant Apps can access the settings
Change-Id: I0e414cb068a47e9a6f62239ffcb922de54586a71
2017-04-03 14:34:50 -07:00
Daniel Cardenas
4ff933afe7 Add documentation about Android TV devices may not support the alarm
intents.

Bug: 36003137

Test: Build
Change-Id: Ia469f6e066c7aa9ed1ebcda3ea12fb3254654fb6
2017-03-31 16:29:11 -07:00
BIN ZHOU
b4df7b2d9e Add feature constants in Call Log provider to identify HD and WIFI calls.
Makes use of existing features column in the provider.

Test: Manual
Bug: 35359461
Change-Id: I405893771a2dac2bb25a54065238917ac2d515c8
2017-03-31 13:09:08 -07:00
TreeHugger Robot
dfbc8517ee Merge "Rename ACTION_VOICEMAIL_SMS_RECEIVED" into oc-dev 2017-03-30 01:51:56 +00:00
Chad Brubaker
9408d51fbe Expose ACCESSIBILITY_CAPTIONING_* to Instant Apps
Fixes settings issues seen in Webview startup.
Bug: 34087569
Test: SecurityExceptions go away

Change-Id: I0e3c55e7dc1c17f445d9dc514682e12dad9dc247
2017-03-28 18:34:38 -07:00
Ta-wei Yen
a302ac69e4 Rename ACTION_VOICEMAIL_SMS_RECEIVED
Hidden API should not use the android.* namespace.

This CL also make SHOW_VOICEMAIL_NOTIFICATION protected broadcast.

Change-Id: I9e5459632d0e826274fd60a4cfbf73c0ea87d29f
Fixes:35269913
Fixes: 36201216
Test: CtsSignatureTestCases
2017-03-28 19:16:13 +00:00
TreeHugger Robot
15e3d0dba8 Merge "Remove ACTION_CONFIGURE_WIFI_SETTINGS and ACTION_WIFI_SAVED_NETWORK_SETTINGS." 2017-03-28 02:14:37 +00:00
TreeHugger Robot
31417b3ebf Merge "Deprecate Setting that is no longer used." 2017-03-28 00:45:34 +00:00
Stephen Chen
31484af101 Remove ACTION_CONFIGURE_WIFI_SETTINGS and ACTION_WIFI_SAVED_NETWORK_SETTINGS.
ConfigureWifiSettings page will instead use WIFI_IP_SETTINGS intent.
Intent for SavedAccessPointsSettingsActivity is unused and can be
removed.

Bug: 34392691
Bug: 36516068
Test: make
Change-Id: I86547df387b41241d531e361014581d0763008ee
2017-03-27 13:18:27 -07:00
Sudheer Shanka
d292c15558 Merge "Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid." 2017-03-25 08:01:13 +00:00
Casey Burkhardt
5e8b980c5d Target selection for Accessibility button
Allows for selecting a single accessibility service or feature
to be triggered by the accessibility button in the navigation bar

Bug: 34720082
Test: Manual
Change-Id: I320febede0398b1eff38a87d4db31fd7dfc53062
2017-03-24 19:17:12 -07:00
Amin Shaikh
3087e323ea Deprecate Setting that is no longer used.
Bug: 36526645
Test: make
Change-Id: I11cc75916c4721a8bfbe5e5f0b0f0e7baf0c4a90
2017-03-24 17:43:46 -07:00
Phil Weaver
582fae1cf4 Merge "Restructure a11y shortcut settings" 2017-03-24 22:31:18 +00:00
Sudheer Shanka
5918c6700b Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid.
And add global setting WAIT_FOR_NETWORK_TIMEOUT_MS.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
      cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
      runtest -c android.provider.SettingsBackupTest frameworks-core
      and manual

Change-Id: I6949cd517255670e2ce21ab2de24271082461b11
2017-03-24 13:05:27 -07:00
TreeHugger Robot
a25c24d882 Merge "Some logging for settings reset" 2017-03-24 02:17:18 +00:00
TreeHugger Robot
0e74c95c0c Merge "Unhide FLAG_SUPPORT_EJECT and related methods." 2017-03-24 01:23:53 +00:00
Amith Yamasani
3945202dc8 Some logging for settings reset
If settings db gets reset because it disappeared/got corrupted,
then write the Build.ID of the OTA, so we know when it was reset.

Bug: 36365648
Test: manual
Change-Id: I499a7f65f07a61c0e4651dbd046fc5b16408c09d
2017-03-23 17:43:39 -07:00
Garfield Tan
8787703ae0 Unhide FLAG_SUPPORT_EJECT and related methods.
Test: Builds and CTS tests pass. Some manual tests as well.
Bug: 36483910
Change-Id: Idd9b1c9d9573222ee12127044ff11b9ab2487f0a
2017-03-23 16:41:24 -07:00
TreeHugger Robot
f26f5c7e66 Merge "Introduce AuthenticationRequiredException, and @hide RecoverableSecurityException." 2017-03-23 22:12:27 +00:00
TreeHugger Robot
2204284fff Merge "Cleanup passing emails for Web Links API." 2017-03-23 21:03:42 +00:00
Phil Weaver
ce687c5e4a Restructure a11y shortcut settings
Separating the shortcut on/off from the shortcut service.
Enabling the shortcut to work from the lock screen if the
user wants it to.

Bug: 35872328
Bug: 35219988
Bug: 35443593
Test: Adjusted tests for shortcut controller, manually
activated shortcut in a variety of conditions.
Change-Id: Id39d33ec62eb5f11b76b2972089167dc7d4c625b
2017-03-22 16:36:12 -07:00
Ben Lin
df6d37e504 Introduce AuthenticationRequiredException, and @hide
RecoverableSecurityException.

Test: CTS tests in changes in same topic.
Bug: 36482356
Bug: 36482258
Change-Id: I44b3407746006d8709e4a3f3ca2950c61fa0be95
2017-03-22 10:52:58 -07:00
Clara Bayarri
fb483cc90c XML Support for non system font providers
The certs needed to identify non preinstalled providers
can now be declared in XML, using a resources array.

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
Bug: 35025705
Change-Id: Ibf12ad409aa5a873ddb32b1383c147728e664c23
2017-03-22 11:47:51 +00:00
Tomasz Mikolajewski
463b686abc Cleanup passing emails for Web Links API.
Test: CTS test.
Bug: 35813086
Change-Id: Ic65f1ec99492618effc60475f8746a98026e6e0a
2017-03-22 17:46:31 +09:00
Renat Aksitov
419acc38a3 Merge "Voice Messaging Intent API." 2017-03-22 00:13:35 +00:00
Garfield Tan
9361541998 Add special URI to MediaStore for directories.
Bug: 36048049
Bug: 31001477
Change-Id: I69032481271b7f53c22403c3526560e6830bd9e8
(cherry picked from commit 1ca2837111c8383f9c8daf1420356998f4fb218f)
2017-03-21 20:05:04 +00:00
TreeHugger Robot
45030ba62b Merge "Expose AIRPLANE_MODE_ON to Instant Apps" 2017-03-20 19:52:41 +00:00
TreeHugger Robot
c8076f164a Merge "Expose Android ID to Instant Apps" 2017-03-20 19:29:10 +00:00
Chad Brubaker
1f6a266398 Expose AIRPLANE_MODE_ON to Instant Apps
Test: AIRPLANE_MODE_ON is accessible from Instant Apps
Bug:36444225
Change-Id: I9ab2c89844d2bd202924156a5e44ef40075fd467
2017-03-20 11:11:30 -07:00
Chad Brubaker
1bed93742f Expose Android ID to Instant Apps
Android ID in O is scoped per-app but persistent across
installs. Since Instant Apps can use the cookie to implement similar
functionality its fine to expose.

In a follow up the Android ID generation will be made to depend on the
cookie so that clearing the cookie also breaks the persistence.

Bug: 36385889
Test: Manual
Change-Id: I09b993bb4153179b80eebe0da8dac3fad7b9c779
2017-03-20 10:57:40 -07:00
Christine Franks
6418d0b890 Add color temperature preference for Night Display
Bug: 32463283
Test: adb shell settings put secure night_display_color_temperature
XXXX, where XXXX is {0, 2900, 4000, 7000}, and the temperatures
outside the valid range are capped at the min/max, respectively.
Change-Id: I322c0a907b30742fc312a9938fd0c47f679e580b
2017-03-20 09:07:17 -07:00
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
Renat Aksitov
5cac923d1e Voice Messaging Intent API.
Additional clarifications for the EXTRA_SENDER_ACCOUNT_HASH.

Bug 35920443

Test: make -j11 docs

Change-Id: I5c772912a0d9fa5e5c50c73a7a009cbb4d56705d
2017-03-15 17:04:07 -07: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