307978 Commits

Author SHA1 Message Date
Jack Yu
866e9e3947 Added the new RIL request to set SIM power state
The new RIL request for powering up/down the SIM card.

Test: Telephony sanity tests
bug: 32224755
Merged-In: Ia20f824eb9a0bf6d5f63f782a8d42a22a0355938
Change-Id: Ia20f824eb9a0bf6d5f63f782a8d42a22a0355938
2017-02-16 05:11:41 +00:00
TreeHugger Robot
5653fb10a7 Merge "Introduce Backspace implemenation for flag emoji sequence." 2017-02-16 05:00:49 +00:00
TreeHugger Robot
85f8603291 Merge "Always check front stack on its current display" 2017-02-16 05:00:07 +00:00
Jack Yu
233cb9efdf Added the new RIL request to set SIM power state
The new RIL request for powering up/down the SIM card.

Test: Telephony sanity tests
bug: 32224755
Change-Id: Ia20f824eb9a0bf6d5f63f782a8d42a22a0355938
2017-02-15 20:56:17 -08:00
TreeHugger Robot
59d3c40855 Merge "Minor fixes on documentation." 2017-02-16 04:36:56 +00:00
Svet Ganov
da0acdf938 Auto-grant background execution and data access
Companion apps can declare they want background access and
background execution exceptions via dedicated permissions
in their manifest. If such a permission is requested we
auto-grant the corresponding exception after the user has
chosen a device from the companion UI. These permissions
are appop ones allowing us to use the app ops for gauging
whether the user has made a change after we auto-granted
the permission since we would like to revoke these special
privileges when the app disassociates itself from the
companion device if the user did not make an excplicit
choice otherwise.

While at this auto-grant fixed location permission to the
companion device discovery service.

Test: manual

Change-Id: I46ee4291e5e5a8f7613f0dd75eb61d6b9341f306
2017-02-15 20:32:41 -08:00
Selim Cinek
fb08562731 Merge "Fixes a bug where children could have a colored background" 2017-02-16 04:21:33 +00:00
Hassan Shojania
c8d0e45029 Merge "Modular DRM for MediaPlayer" 2017-02-16 03:45:59 +00:00
Aaron Whyte
e0e21d9f19 Merge "Revert "Re-hide AXIS_SCROLL constant."" 2017-02-16 03:41:25 +00:00
Hugo Benichi
e3aae40d07 Captive portal: better detect empty responses
The captive portal detection logic treats empty http responses with a
Content-Length of 0 as not coming from a portal.

However when the Content-Length is missing from the response header, the
empty response is not detected as such and is classified as a captive
portal answer.

When this happens for the http probe, the portal detection logic will
short circuit the detection and wrongly report a portal. The system
validates the network in such conditions only if the https probe
returns a successful connection faster than the http probe.

This patch attempts to better detect empty responses by trying to read
the first byte from the response body when the Content-Length is missing
for 200 responses.

Test: build, flashed + manual tests.
Bug: 33498325

(cherry picked from commit cb4aa4d412c7940386df9b8dd681e0d2efebfd1d)

Change-Id: Ibb9914cba72a4dab3ae76746d8889bbf083be812
2017-02-16 12:31:30 +09:00
Sundeep Ghuman
53a7e8c844 Create TRON events for Wifi Network Recommendations.
We will log which evaluator was used to provide the event,
and whether or not the recommendation resulted in a successful
connection.

Bug: 34384405
Test: NA
Change-Id: I091c4d7f81c5c612248374817cb5c107b6aa20e2
2017-02-15 19:31:24 -08:00
Manu Cornet
066eaa086a Merge "DO NOT MERGE - Ensuring that there are per-user last stack active times." into nyc-mr2-dev am: e0e08f3f41
am: 0c09549ef4  -s ours

Change-Id: I1c45cfdd676e4c58825f3600cc0c3edec199bd59
2017-02-16 03:20:17 +00:00
Manu Cornet
0c09549ef4 Merge "DO NOT MERGE - Ensuring that there are per-user last stack active times." into nyc-mr2-dev
am: e0e08f3f41

Change-Id: Iaeee64f2a6954be8560412f60f838e2483be01f0
2017-02-16 03:13:14 +00:00
TreeHugger Robot
e0e08f3f41 Merge "DO NOT MERGE - Ensuring that there are per-user last stack active times." into nyc-mr2-dev 2017-02-16 03:02:17 +00:00
TreeHugger Robot
3d52f79be4 Merge "Define a new config key for the recommendation provider app." 2017-02-16 02:58:53 +00:00
Hassan Shojania
06b25fb236 Modular DRM for MediaPlayer
Bug:  34559906
Test: Manual through the test app
Change-Id: I1b1ca61e74f250d63ff5ff462905facb81fe44e0
2017-02-15 18:44:54 -08:00
TreeHugger Robot
040e425b49 Merge changes Ia33ab1ab,I1d01ab5d
* changes:
  AOD: Add toggle for waking up instead of ambient display on sensors
  AOD: Refactor DozeMachine to allow waking up
2017-02-16 02:28:23 +00:00
TreeHugger Robot
8d6a617069 Merge "Removing PiP from SysUI tuner." 2017-02-16 02:23:03 +00:00
Felipe Leme
5b2ca0e0ad Pass FillResponse extra back to onSaveRequest(...).
BUG: 33197203
Test: CtsAutoFillServiceTestCases passes
Change-Id: Ibb57b07c7287527acc4c92607de044e789f09dcc
2017-02-15 18:21:10 -08:00
Felipe Leme
c32410068d Add URL on ViewStructure.
The URL will be typically used by views rendering HTML pages (like WebView),
and used in 2 cases

- Root node (containing the URL of the HTML page)
- Child nodes that represent hyperlinks (contains the hyperlink URL).

Fixes: 20902429
Test: manual verification
Test: android.assist.cts.WebViewTest verifies it

Change-Id: Ic49472f1fca89047369b7187176f54efd277e204
2017-02-15 18:15:46 -08:00
Hall Liu
7ff09b3024 Merge "Add extra key for app-specified outgoing call timeout" into nyc-mr2-dev am: 4d3435637f -s ours
am: dbf6f9263d  -s ours

Change-Id: I403da9dbf4c9cd9f1e9a69f7152bba4832b734e7
2017-02-16 01:59:13 +00:00
TreeHugger Robot
634733e42e Merge "Ensuring that there are per-user last stack active times." 2017-02-16 01:53:06 +00:00
Android Build Merger (Role)
9f1b5b73e8 Merge "Merge "Harden against jobscheduler client app misbehavior" into nyc-mr2-dev am: 38f1b6dbc9 am: c475730d22" 2017-02-16 01:37:06 +00:00
Rubin Xu
824b073fbe Merge "Add escrow token API in DevicePolicyManager." 2017-02-16 01:36:46 +00:00
Chris Tate
db70af4495 Merge "Harden against jobscheduler client app misbehavior" into nyc-mr2-dev am: 38f1b6dbc9
am: c475730d22

Change-Id: I026c74906f8f43c2eb7ca529a59b1e6be5696351
2017-02-16 01:36:18 +00:00
Soonil Nagarkar
760623a499 Merge "Use SystemConfig to control background location throttling whitelist." 2017-02-16 01:33:08 +00:00
Hall Liu
dbf6f9263d Merge "Add extra key for app-specified outgoing call timeout" into nyc-mr2-dev
am: 4d3435637f  -s ours

Change-Id: I2ed7250a9fb8c5026b209ad5b3384a401b1d4d16
2017-02-16 01:31:54 +00:00
TreeHugger Robot
019b018cf7 Merge "Access IMMS#mSettings only inside the lock" 2017-02-16 01:29:54 +00:00
Chris Tate
c475730d22 Merge "Harden against jobscheduler client app misbehavior" into nyc-mr2-dev
am: 38f1b6dbc9

Change-Id: I44d16150abee9dd0ec7961d1ce847d9793937354
2017-02-16 01:25:04 +00:00
Hall Liu
4d3435637f Merge "Add extra key for app-specified outgoing call timeout" into nyc-mr2-dev 2017-02-16 01:09:38 +00:00
TreeHugger Robot
1fad70afd3 Merge "Various QS fixes and cleanup" 2017-02-16 01:05:48 +00:00
Hyunyoung Song
4c64c0d99e Merge "ShortcutManager should support MaskableBitmap Icon type" 2017-02-16 01:04:15 +00:00
TreeHugger Robot
197fb06796 Merge changes from topic 'settings_advanced_expand_button'
* changes:
  Add logging for advanced button expand action
  Add FIELD_CONTEXT to track source of action in eventlog.
2017-02-16 01:03:28 +00:00
Hyunyoung Song
f281e7afae ShortcutManager should support MaskableBitmap Icon type
Note: https://ag/1872683/ is where initial code review happened.

Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'


b/34196580

Change-Id: I3b983c29387e474c7a8c687a524105ceaceac81e
2017-02-16 01:01:56 +00:00
Aaron Whyte
22db07f308 Revert "Re-hide AXIS_SCROLL constant."
This reverts commit 8171658b9fdcbd8faf84aa01f187cc8e7d56fa9e.
Bug: 27314061
Bug: 22836852
Bug: 18707397
Change-Id: I6f78962cfa18f11ce5c8caa1d146252bd79f6dbd
2017-02-16 00:59:16 +00:00
Sudheer Shanka
7a627206d4 Merge "Use correct packageName for checking if it belongs to callingUid." 2017-02-16 00:51:49 +00:00
Jeremy Joslin
27d14c46a7 Define a new config key for the recommendation provider app.
Created a new config key and removed the previous key that
was defined in default.xml. Also removed the SettingsProvider logic
as we'll set the default in NetworkScoreService in a follow-up CL.

Bug: 35095406
Test: build and install.

Change-Id: I2893be31fd526af8a66d6d1b7d8978adf7e32c0f
2017-02-15 16:51:15 -08:00
Chris Tate
38f1b6dbc9 Merge "Harden against jobscheduler client app misbehavior" into nyc-mr2-dev 2017-02-16 00:51:01 +00:00
TreeHugger Robot
9809b8fdd6 Merge "Add functionality to overwrite the /etc/preloaded-classes file." 2017-02-16 00:49:16 +00:00
Selim Cinek
9ce3285dc3 Fixes a bug where children could have a colored background
Because notifications can have had an override color and could
then become children, the color could stick around.

Test: runtest systemui
Change-Id: Ie89807c41a12b2d4a405c77d6da1c4e4ac78b325
Fixes: 34740139
2017-02-15 16:37:36 -08:00
Manu Cornet
512bbdde69 DO NOT MERGE - Ensuring that there are per-user last stack active times.
- This fixes an issue where the last stack active time would be clobbered
  when switching between users.  With the policy in the phone/stack
  recents, this is fine, but with the grid recents, it no longer only
  applies when out of the historical window, so it is always wrong (it
  would normally be wrong if switching back from another user after the
  historical time of six hours).

  This CL will migrate the last stack active time to a per-user secure
  setting, which will be used going forward.

[This is a manual merge of change 1913535]

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
      return to the original user

Change-Id: Idc72920240093d15f822f5d9e3ee11b12a56edae
2017-02-15 16:37:19 -08:00
Winson Chung
6e35ee1ff5 Removing PiP from SysUI tuner.
Bug: 35143109
Test: Go to tuner, observe
Change-Id: I5c4eadc33a303e7bf7d99aa772296405d39ee251
2017-02-15 16:32:45 -08:00
TreeHugger Robot
0b6b10d1ee Merge "Fail safely on invalid ScanResults when creating NetworkKey" 2017-02-16 00:27:14 +00:00
Meng Wang
0506299343 Add carrierconfig KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL
Bug: 28709116
Change-Id: I19673ef092ebbd655e3d687fc8d92bd9f67c5645
2017-02-15 16:22:15 -08:00
Adrian Roos
7a1654e8e4 AOD: Add toggle for waking up instead of ambient display on sensors
Bug: 30876804
Test: Open SysUI tuner -> Ambient Display -> Toggle wake up on sensors setting, verify that double tap and lift wake up phone instead of triggering ambient display.
Change-Id: Ia33ab1ab5ed532f239262d70e00dac3fec0330e2
2017-02-16 01:21:13 +01:00
Adrian Roos
4fb1f51978 AOD: Refactor DozeMachine to allow waking up
Bug: 30876804
Test: runtest -x $ANDROID_BUILD_TOP/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeMachineTest.java
Change-Id: I1d01ab5d8ba3c1bf7b11b0b4911b25f3416ca6e9
2017-02-16 01:19:38 +01:00
Felipe Leme
92aaaa21ee Moved bugreport intents to the com.android.internal namespace.
Change-Id: I5ad53668b9393188cee4d8b0382f9c303ff95777
Fixes: 35275802
Test: manual verification
2017-02-15 16:08:53 -08:00
Calin Juravle
4b7a7bede8 Merge "Skip class path checking for secondary dex files" 2017-02-16 00:04:47 +00:00
Adrian Roos
2a7e2deb57 Merge "AOD: Show fingerprint error messages" 2017-02-15 23:59:51 +00:00
Adrian Roos
09ed8f6cfc SystemUI: Disable LeakReporterTest
Those tests are slow because they dump the
heap multiple times.

Disable until the code is refactored such that
it does not actually dump and write to disk
when under test.

Test: runtest systemui
Bug: 35398375
Change-Id: I7cf945687900424dc1460367fbef5f36ed75da82
2017-02-16 00:56:45 +01:00