Commit Graph

2604 Commits

Author SHA1 Message Date
Abhijith Shastry
b87c90ce9f Add hidden APIs for number blocking which will be used by the system.
These APIs will ensure that blocking is suppressed after the user contacts emergency services.

BUG: 26989170

Change-Id: Ib78c9faa31a6d4bfb62b690f97d5ca8084d69927
2016-02-10 12:06:45 -08:00
Makoto Onuki
bb66a0edfe Merge "Prevent NPE in ContactsContract" 2016-02-05 21:30:39 +00:00
Makoto Onuki
da072b3e38 Prevent NPE in ContactsContract
Bug 26730982

Change-Id: I36fdfffba79e0696175edd42bb131f92cba47499
2016-02-05 13:28:45 -08:00
Abhijith Shastry
89c6073cd0 Merge "Update javadoc for BlockedNumberContract." 2016-02-05 19:36:07 +00:00
Abhijith Shastry
dc4535ebda Update javadoc for BlockedNumberContract.
BUG: 26232372
Change-Id: I57330782fa439bed52c595986916eb24bfbceab0
2016-02-05 09:58:35 -08:00
Alan Viverette
1a2941541a Merge "Multi-user support for display density changes" 2016-02-05 16:03:58 +00:00
Felipe Leme
5f5d707bad Defined an intent to let apps launch the Data Saver settings screen.
BUG: 26451391
BUG: 26820898
Change-Id: Ie9dbe2d08d362aa548e385967d101faafb87c9b7
2016-02-04 17:20:13 +00:00
Alan Viverette
5e8d837894 Multi-user support for display density changes
Bug: 26942569
Change-Id: Ie44aed00619c5e5604b3d48a3a9d0fc38b0ef0eb
2016-02-03 15:38:59 -05:00
Tomasz Mikolajewski
9b055e1d84 Hide DocumentsContract.FLAG_ARCHIVE.
The API is internal for now.

Bug: 20176812
Change-Id: I9f2c796b144906fdf4a838240c85d26f02dbe175
2016-02-03 15:11:07 +09:00
Junda Liu
0c35fbcf08 Add strings/setting for carrier app install dialog.
Bug: b/22863855
Change-Id: I34e2ff5997e14afe70a64edb055dc876e26d7946
2016-02-02 14:50:39 -08:00
Abhijith Shastry
d907c64ff9 BlockedNumberContract API changes:
1. Add a method isProviderSupportedForCurrentUser for multi-user scenarios.
2. Remove STRIPPED_NUMBER column.

BUG: 26232372

Change-Id: Ida703d7a873915a02cd7918ed297cf039a7956c9
2016-02-01 15:09:08 -08:00
Clara Bayarri
6b6c5a2035 Make Notification Redaction independent for work profiles
Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
2016-02-01 10:13:23 +00:00
Tomasz Mikolajewski
7fa765a40e Merge "Cleanup copyDocument and moveDocument in SAF." 2016-02-01 00:17:30 +00:00
Anna Galusza
f3e5d1d483 Merge "Add API for IME control by Accessibility Services." 2016-01-29 16:58:07 +00:00
Yohei Yukawa
e8faad6b54 Merge "Add ACTION_KEYBOARD_LAYOUT_SETTINGS." 2016-01-28 20:17:01 +00:00
Tomasz Mikolajewski
570d67cc3f Merge "Add DocumentsProvider::removeDocument()." 2016-01-28 05:08:07 +00:00
Tomasz Mikolajewski
cbcd39488b Add DocumentsProvider::removeDocument().
Multi-parents are supported already in moveDocument(). For parity, this CL
adds removeDocument, so it's possible to delete a file from a specific
parent.

Bug: 26481380
Change-Id: Icd4213abc0c3413931902f4f8984746c84c65e52
2016-01-28 14:06:22 +09:00
Tomasz Mikolajewski
ab821a517d Merge "Unhide DocumentsContract.isTreeUri." 2016-01-28 04:20:43 +00:00
Tomasz Mikolajewski
eeb8b6052a Cleanup copyDocument and moveDocument in SAF.
1. Unhide the methods in DocumentsProvider.
2. Stop revoking grants, as we shouldn't do that if the documentId doesn't
   change. Note, we could have an if checking if the ID changed then revoke
   in call(), but it would be racey, as another file with the same ID might
   have been created in the meantime on another thread.

Change-Id: Ia99853bf11cf416e0b8c0a0e63458dcc09564da9
2016-01-28 13:08:27 +09:00
Anna Galusza
9b27811246 Add API for IME control by Accessibility Services.
Change-Id: I3bb806cf420e0551a2c9ef97d95613f73e362df9
2016-01-27 17:35:59 -08:00
Tomasz Mikolajewski
7db9c81937 Unhide DocumentsContract.isTreeUri.
Bug: 22212976
Change-Id: I5267e5de0037559eba5bd3adf16d552c25ca8037
2016-01-28 10:00:52 +09:00
Yohei Yukawa
d8701bfed0 Add ACTION_KEYBOARD_LAYOUT_SETTINGS.
This CL adds ACTION_KEYBOARD_LAYOUT_SETTINGS so that IME developers can
navigate users to the settings to configure the hardware keyboard layout
as needed, as we have exposed ACTION_INPUT_METHOD_SETTINGS and
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS.

Bug: 25752827
Change-Id: I8f371702904b3354043cd6d23fc9a8ff8be9b537
2016-01-27 16:15:01 -08:00
Ta-wei Yen
afaf052564 Merge "Added more granular states to DATA_CHANNEL_STATE" 2016-01-27 22:18:23 +00:00
Shweta Chahar
369a94a413 Merge "Add setting to enable higher text-to-speech rate." 2016-01-27 18:22:50 +00:00
shwetachahar
41604bcba5 Add setting to enable higher text-to-speech rate.
Change-Id: I1e3c78870a5c083bed9dfc6d13601b7874b86583
2016-01-27 18:16:41 +00:00
Renat Aksitov
5012919bc3 Merge "Voice Messaging Intent API." 2016-01-27 03:44:52 +00:00
Renat Aksitov
799da391d6 Voice Messaging Intent API.
- New activity action for initiating a message to someone by voice.
The message could be text, audio, video or image(photo). The action
supports messaging with a specific contact regardless of the underlying
messaging protocol used.
  - Set of extras to support identification of such contact.

    Primary use case for this action is to be originated by the Voice
Assistant as a voice interaction. In such scenario receiving activity
could verify the source and send a message right away, without any
further input from the user. It allows for a smooth user experience when
sending a message by voice.

Bug: 22791113
Change-Id: I86d55af04d13acbc1390938fa6b914990716cb39
2016-01-26 19:39:42 -08:00
Ta-wei Yen
61b239171d Added more granular states to DATA_CHANNEL_STATE
Added ACTION_SYNC_VOICEMAIL for manual visual voicemail sync.

Change-Id: Ib812988256c137da301a98a283e7e52dfd881440
2016-01-26 18:07:00 -08:00
Victor Chang
697815eddb Merge "Launch managed quick contacts without contact id" 2016-01-26 10:37:55 +00:00
Tomasz Mikolajewski
165e2849ff Unhide DocumentsContract.copyDocument and moveDocument.
Change-Id: I304e4219ac679b9da88d785529f946dac058bbff
2016-01-26 08:06:46 +00:00
Tomasz Mikolajewski
5eb8f9cc70 Merge "Add support for multi-parents to DocumentsProvider::moveDocument." 2016-01-26 08:03:19 +00:00
Tomasz Mikolajewski
d46ecbcc53 Add support for multi-parents to DocumentsProvider::moveDocument.
Bug: 26481380
Change-Id: I96290268fd49072a334bde9c04c5313de8540f56
2016-01-26 17:02:22 +09:00
Jeremy Klein
15f3d21599 Implement ui-based provisioning for the new tether api.
This is dependent on ag/850648 and the Settings changes under the
uiprovisioning topic id.

BUG: 26247383
Change-Id: Ib151d56a1ece5ca3a55219abed965286eac5dd60
2016-01-25 20:02:48 -08:00
Victor Chang
97bdacc6d1 Launch managed quick contacts without contact id
set contact id to enterprise base contact id if it's enterprise uri

BUG=26176780

Change-Id: Ie1160bef22d44c90eb4015783fafdafd160bcdd8
2016-01-25 21:32:44 +00:00
Casey Burkhardt
86b867fd45 Adds Settings.System.FONT_SCALE observer to ActivityManagerService
Changes to Settings.System.FONT_SCALE were not being handled by any service,
which required a device reboot for any changes to take effect.  Changes to
this field by the Settings app worked as expected only because it is able to
poke ActivityManager with an updated configuration, whereas unbundled
applications cannot.

This also ensures the setting value is backed up and doesn't conflict with
a configured value from accessibility onboarding during restore.

Bug:23033258
Change-Id: I98d4aed2f9f5893d054e6b10c4dfda406de8eba2
2016-01-24 04:21:36 -08:00
Felipe Leme
21f255dea9 Merge "Created a new API to grant scoped directory access to applications." 2016-01-22 19:13:10 +00:00
Felipe Leme
c7b1f89e9e Created a new API to grant scoped directory access to applications.
The Storage Access Framework currently provides an
API (OPEN_DOCUMENT_TREE) that lets the user pick a directory to be used
by the application. Although this APIs is very powerful (for example, it
allows the user to create sub-directories, delete and share files,
etc...), it's too complex for simpler use cases like a camera
application trying to have access to the standard Pictures directory.

The new API (OPEN_EXTERNAL_DIRECTORY) simplifies this scenario by
letting the application select a standard, pre-defined directory (as
defined by android.os.Environment). The user still needs to grant access
to the requested directory, but the resulting UI will be simpler and
more straightforward.

Usage example:

  // ...
  int requestCode = 42;
  Intent intent = new Intent(Intent.ACTION_OPEN_EXTERNAL_DIRECTORY);
  intent.setData(Uri.fromFile(
    new File(Environment.getExternalStorageDirectory(),
             Environment.DIRECTORY_PICTURES)));
  startActivityForResult(intent, requestCode);
  // ...

  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode != Activity.RESULT_OK) {
      return;
    }
    Uri uri = data.getData();
    int modeFlags = data.getFlags()
        & (Intent.FLAG_GRANT_READ_URI_PERMISSION
        | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
    getContentResolver().takePersistableUriPermission(uri, modeFlags);
  }

BUG: 23011462
Change-Id: Ie832026532f74e681ef220b761667eb66ff3c8b0
2016-01-22 10:59:29 -08:00
Makoto Onuki
b524741cb6 [FBE] Introduce shadow calllog provider [1/2]
Introduce a new provider that's a clone of the calllog provider but
is EA.

The provider is hidden and requires MANAGE_USERS to access.

Bug 26183949

Change-Id: Ie3181a2a68c522b7e513b45218ad06ecd27cda8c
2016-01-21 15:14:57 -08:00
Steve McKay
812c463307 Merge "Doc fix." 2016-01-17 16:33:57 +00:00
Steve McKay
996dab2e48 Doc fix.
Bug: 22060119
Change-Id: I1e58cd22a5bddd67e6dce840629e5a05210e61bd
2016-01-17 08:32:55 -08:00
Victor Chang
a6aee6bf73 Merge "Add Directory.ENTERPRISE_FILE_URI" 2016-01-15 00:45:47 +00:00
Makoto Onuki
6dc6b89962 Merge "Remove the index columns from the blocked provider." 2016-01-14 23:48:36 +00:00
Sanket Agarwal
1bec6a5b0d Add support for AVRCP 1.3.
* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
  initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
  A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
  A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
2016-01-14 21:59:33 +00:00
Victor Chang
dc0406d03e Add Directory.ENTERPRISE_FILE_URI
Add Directory.ENTERPRISE_FILE_URI to allow access
photo in work-side remote directory

BUG=25981851

Change-Id: I449e0ffcdf9acd6ee9a83d9067f58c41a3e75f02
2016-01-14 21:08:31 +00:00
Makoto Onuki
1abb57b06e Remove the index columns from the blocked provider.
Bug 26232372

Change-Id: Ic72d4b7cee2158ad544b4375a382597c110debf6
2016-01-14 11:39:33 -08:00
Robin Lee
b68d2d5b68 Merge "Always-on app VPNs" 2016-01-14 11:37:18 +00:00
Adam Lesinski
89a697a7e7 Merge "UsageStats: Use new settings key idle_duration2 for app idle" into mnc-dr1.5-dev am: d2e215978b am: a5c7106017
am: 6a8c328d73

* commit '6a8c328d7386d19f4590dfbfc71338b1ec208fb7':
  UsageStats: Use new settings key idle_duration2 for app idle
2016-01-14 01:05:24 +00:00
Adam Lesinski
f0ef3c1126 UsageStats: Use new settings key idle_duration2 for app idle
Ignores the old, re-appropriated key "idle_duration" which is now
set to a high value in order to force disable app idle on devices
with bug b/26355386

Bug:26355386
Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
2016-01-13 12:48:50 -08:00
Makoto Onuki
cbd0ed2944 API for blocked number provider
Bug 26232372

Change-Id: I4d243c00ab9f02af527a96d7b549abfe7876f565
2016-01-13 12:41:54 -08:00
Kweku Adams
eb80f7c6d6 Fix documentation typo.
Change-Id: Ia40d67069f4789d8f8d0a7cb5dcf447cedec9950
2016-01-12 19:57:34 +00:00