15407 Commits

Author SHA1 Message Date
Tomasz Mikolajewski
78699be5ff Add StubProvider::isChildDocument().
Change-Id: Ib17df4307c1f658c42468f86e1f66d4469eefe58
2015-04-08 19:38:55 +09:00
Tomasz Mikolajewski
0fc8beb2df Add an initial version for a StubProvider for DocumentsUI.
It will be used for testing as well as for development.

Change-Id: I1556836e1070d9e4483d2574bba40aa2fdfde229
2015-04-08 13:14:52 +09:00
Tomasz Mikolajewski
4caa91000b Merge "Fix broken tests in DocumentsUI." 2015-04-08 00:55:52 +00:00
Tomasz Mikolajewski
8090ffe633 Fix broken tests in DocumentsUI.
Change-Id: Ia41eda4d9f500882ca7eb62b13a4bca60978bc33
2015-04-08 09:54:43 +09:00
Jim Miller
c68b9d6acc am 5dd10bd1: am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '5dd10bd11a524e224a88615444bf8b52b1ec11d6':
  third part apps can disable the secret lockscreen
2015-04-07 23:18:57 +00:00
Jim Miller
e2e945a887 am 40c4021a: Merge "third part apps can disable the secret lockscreen"
* commit '40c4021a70c56bcc4d6f6569d795dff52ab4e369':
  third part apps can disable the secret lockscreen
2015-04-07 22:58:53 +00:00
Jim Miller
40c4021a70 Merge "third part apps can disable the secret lockscreen" 2015-04-07 22:41:19 +00:00
Joseph Wen
653f713847 Merge "Implement IntentFilter verification service." 2015-04-07 21:44:25 +00:00
Joseph Wen
6a34bb2d6a Implement IntentFilter verification service.
This commit adds a verifier that verifies a host delegates permission for
an app to handle Url for the host using the Statement protocol.

- Implements the Statement protocol
-- The protocol defines a file format that represents statements.
-- The protocol defines where each asset type should put their statement
declaration. For web asset, the statement file should be hosted at
<scheme>://<host>:<port>/.well-known/associations.json.

- Implements IntentFilterVerificationReceiver, an interface between
StatementService and PackageManager. PackageManager will send a
broadcast with action Intent.ACTION_INTENT_FILTER_NEEDS_VERIFICATION.
The service will process the request and returns the results by calling
PackageManager.verifyIntentFilter().

To verify an IntentFilter like this defined in Android app com.test.app
<intent-filter>
  <data android:scheme="https" />
  <data android:host="www.test.com" />
  <data android:pathPattern=".*"/>
</intent-filter>

The service will try to retrieve the statement file from
https://www.test.com:443/.well-known/associations.json and try to find
a JSON object equivalent to
{'relation': ['delegate_permission/common.handle_all_urls'],
 'target': {'namespace': 'android_app',
            'package_name': 'com.test.app',
            'sha256_cert_fingerprints': [APP_CERT_FP]}}
The entry should have the correct relation, package name, and
certificate sha256 fingerprint.

Because this implementation will send a HTTP request for each host
specified in the intent-filter in AndroidManifest.xml, to avoid overwhelming
the network at app install time, we limit the maximum number of hosts we will
verify for a single app to 10. Any app with more than 10 hosts in the
autoVerify=true intent-filter won't be auto verified.

Change-Id: I787c9d176e4110aa441eb5fe4fa9651a071c6610
2015-04-07 16:57:40 -04:00
John Spurlock
3665abaa81 Merge "ZenTile: Don't broadcast intents in-process." 2015-04-07 18:54:05 +00:00
Jorim Jaggi
25ff0646ca Merge "Add Camera prewarm intent." 2015-04-07 18:50:54 +00:00
Jorim Jaggi
a86790bf23 Add Camera prewarm intent.
Also adds a test app for testing this intent. In addition, the secure
camera gets launched in the background to fix jank while sending the
intent.

Bug: 20016619
Change-Id: I7bb7e22ddaf5dc67fc09b9e63e5f3d10fe8e3ee4
2015-04-07 11:24:05 -07:00
John Spurlock
cd863ad094 ZenTile: Don't broadcast intents in-process.
Bug: 20091931
Change-Id: Id35691a56c9fd279a9fb271525e193cefdc44c7f
2015-04-07 14:15:40 -04:00
Venkat Raghavan
05e08c3a2f Bluetooth: Do not initiate inquiry during pairing/SDP
Retry SDP if it gets cancelled in BONDING state.
If SDP search initiated after the pairing gets cancelled, re-initiate
SDP search from the BTIF layer to ensure completion of the bonding
process.

While pairing/SDP discovery of the bonded device is in progress,
do not initiate inquiry.

Bug: 19417758
Change-Id: I2d80883999771c53b58cc3017a63b17e3564bc57
2015-04-06 16:27:09 -07:00
Wale Ogunwale
e70dfdcd91 Merge "Dismiss recents to home without animation when resizing task." 2015-04-06 17:27:18 +00:00
Geoff Mendal
a789fc9f38 Merge "Import translations. DO NOT MERGE" 2015-04-06 12:58:57 +00:00
Geoff Mendal
4d38460286 Import translations. DO NOT MERGE
Change-Id: I5408db40baf8a37319fecde3156bc01ec1feee70
Auto-generated-cl: translation import
2015-04-06 05:52:58 -07:00
Geoff Mendal
7f243ee7fe Merge "Import translations. DO NOT MERGE" 2015-04-06 12:35:33 +00:00
Geoff Mendal
7167e1e3ce Import translations. DO NOT MERGE
Change-Id: I3f89528f6ae805899dc48a039f3c08ceeabd8480
Auto-generated-cl: translation import
2015-04-06 05:32:59 -07:00
Geoff Mendal
91a2eaf5ee Import translations. DO NOT MERGE
Change-Id: I34445592f741f1566ae5493a8f591391ca65d435
Auto-generated-cl: translation import
2015-04-06 05:17:12 -07:00
Wale Ogunwale
d351ada8f9 Dismiss recents to home without animation when resizing task.
Bug: 19946163
Change-Id: I87441e03556d775119f851f7ad49368fc1be49f7
2015-04-04 15:38:32 -07:00
Jeff Sharkey
1b8ef7e316 Parcelable objects for Disk/Volume.
Will eventually be used by SystemUI and/or Settings.

Also fix SettingsProvider NPE.

Bug: 19993667, 19909433
Change-Id: Ie326849ac5f43ee35f728d9cc0e332b72292db70
2015-04-04 14:40:46 -07:00
Geoff Mendal
4910cad70d Merge "Import translations. DO NOT MERGE" 2015-04-04 09:21:55 +00:00
Geoff Mendal
eb99027770 Import translations. DO NOT MERGE
Change-Id: I708bbbdb8c4276b3884a5c9f9e257f49de84f219
Auto-generated-cl: translation import
2015-04-03 23:11:11 -07:00
Geoff Mendal
5940e31bc8 Merge "Import translations. DO NOT MERGE" 2015-04-04 05:51:58 +00:00
Geoff Mendal
b0396e5c3d Import translations. DO NOT MERGE
Change-Id: Iaeb14afbbba8c976399110e09e898a4708cf6437
Auto-generated-cl: translation import
2015-04-03 22:51:30 -07:00
Geoff Mendal
13875be0fe Import translations. DO NOT MERGE
Change-Id: I13a822578c3b71e3176704891486783770337b97
Auto-generated-cl: translation import
2015-04-03 22:35:22 -07:00
Ben Kwa
c8adb235b9 Merge "Enable directory selection. Add an IntentService to copy files." 2015-04-03 21:06:30 +00:00
Ben Kwa
d99109fca8 Enable directory selection. Add an IntentService to copy files.
Change-Id: I0bec0224aa1b52766664c23f77d60affec702111
2015-04-03 13:49:24 -07:00
John Spurlock
33350cf90c Merge "Volume: Port safety warning over to new dialog." 2015-04-03 20:07:31 +00:00
Jorim Jaggi
64e71cd6cc Merge changes from topic 'assist'
* changes:
  Add test assist to implement motion study
  Implement new assist gesture and motion
  Add flag to voice interactor for supporting assist gesture
  Add more internal API's for assist
  Add ability to start voice interaction session directly
2015-04-03 18:26:41 +00:00
Jorim Jaggi
2fdeeabe78 Implement new assist gesture and motion
Change-Id: Ic8ba18c200058062f4d38ac4226d3516af3d3df0
2015-04-03 11:12:27 -07:00
Jorim Jaggi
0b68ff4512 Add flag to voice interactor for supporting assist gesture
Add an additional flag to the voice-interaction-service declaration
so it can indicate whether it is able to handle the assist gesture.
Use that information in SystemUI so it only starts the voice
interaction session if the service is able to support it.

Change-Id: I62b035ce4f4cf06ee6e7eb0ddc4bf5edbc0e6737
2015-04-03 11:12:13 -07:00
Jorim Jaggi
225d3b5449 Add more internal API's for assist
- When starting a voice interaction session from SysUI, a callback
can be passed to know when voice interaction has successfully started
- Add a new window type for the voice interaction starting window,
which resides behind the voice interaction layer.
- SystemUI now also inspects the voice interaction service to get the
logo asset for the starting window.
- Make VoiceInteractionSession window fullscreen, to accomodate for
the visuals.

Change-Id: If8c3c445e8b39841f48e8d153e6d1ba81e447286
2015-04-03 11:12:03 -07:00
Jorim Jaggi
25e12abc5b Add ability to start voice interaction session directly
Add internal API's for SystemUI to start a voice interaction session
directly, without using an intent.

Make the assist gesture use that ability, if available.

Change-Id: I88ce3c7514714eb45666884847193585a07417a9
2015-04-03 11:11:51 -07:00
Winson Chung
da656fd8c3 Merge "Ensuring that Recents' orientation matches the app behind it." 2015-04-03 17:33:20 +00:00
Winson Chung
164bf4d7ea Ensuring that Recents' orientation matches the app behind it.
Bug: 18935635
Change-Id: Idef7f3bced53811c45648f7ee8f6b612df89a231
2015-04-03 10:30:57 -07:00
Winson Chung
86f4a89be2 Merge "Making the screenshot filename smaller to fix issue on certain platforms." 2015-04-03 17:14:44 +00:00
Winson Chung
edecbd9881 Merge "Ensuring that we reload a widget that was updated in another orientation." 2015-04-03 17:14:36 +00:00
Winson Chung
b9c74ace6d Making the screenshot filename smaller to fix issue on certain platforms.
Bug: 11574102
Change-Id: Ia71e600a6d484bc36624ae959841ae0b3f23697a
2015-04-03 10:01:43 -07:00
Winson Chung
aee097c580 Ensuring that we reload a widget that was updated in another orientation.
Bug: 20044969
Change-Id: Iecdbe01d06c44653781ddef749e319f6b5b8afa1
2015-04-03 09:59:26 -07:00
John Spurlock
76b52b3f9b Volume: Port safety warning over to new dialog.
And remove obsolete "muted by <x>" disablement.

Bug: 19260237
Change-Id: I17dc6d5761aad9ce70cc5aad054489549113e15e
2015-04-03 10:23:46 -04:00
John Spurlock
ad80b437f9 Merge "Zen: Add a new level: alarms-only." 2015-04-03 03:03:46 +00:00
John Spurlock
4f1163c83e Zen: Add a new level: alarms-only.
Like no-interruptions, but allows alarms.

Bug: 19260237
Change-Id: I36bf0a333362256c8e54cd83992cb46c3bcb7f69
2015-04-02 23:00:40 -04:00
Jeff Brown
fd93eaf278 Merge "Clarify settings update code." 2015-04-02 23:12:51 +00:00
Jorim Jaggi
84bf582208 Merge "Change light status bar tint color to spec" 2015-04-02 18:44:36 +00:00
Jorim Jaggi
5443cc563c Change light status bar tint color to spec
Bug: 19233606
Change-Id: I0586e006b6783d3af23defb67da666477484c1ee
2015-04-02 11:44:16 -07:00
John Spurlock
4a51c4c42c Merge "Introduce new volume dialog." 2015-04-02 18:10:50 +00:00
John Spurlock
f88d8082a8 Introduce new volume dialog.
- New VolumeDialog (presentation) + VolumeDialogController (state)
   to implement a volume dialog that keeps track of multiple audio
   streams, including all remote streams.
 - The dialog starts out with a single stream, with more detail available
   behind an expand chevron.
 - Existing zen options reorganized under a master switch bar
   named "Block interruptions", with "None" renamed to "No interruptions"
   and "Priority" renamed to "Priority only".
 - Combined "Block interruptions" icon replaces the now-obsolete star/no-smoking
   icons in the status bar.
 - New icons for all sliders.
 - All sliders present a continuous facade, mapped to discrete integer units
   under the hood.
 - All interesting volume events and state changes piped through one central
   helper for future routing.
 - VolumePanel is obsolete, still accessible via a sysprop if needed.
   Complete removal / garbage collection deferred until all needed
   functionality is ported over.

Bug: 19260237
Change-Id: I6689de3e4d14ae666d3e8da302cc9da2d4d77b9b
2015-04-02 14:03:57 -04:00
Paul Jensen
72db88e46f Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions.
These functions risk hitting an unchecked Exception due to ConnectivityManager
not being instantiated yet.  Also, change Network.openConnection() to throw a
checked Exception rather than an unchecked Exception when ConnectivityManager
is not yet instantiated.

bug:19416463
Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
2015-04-02 14:03:43 +00:00