Commit Graph

309172 Commits

Author SHA1 Message Date
Robert Carr
7f6e986317 More incorrect screenshot JNI code.
Not sure why we aren't getting warnings but these casts are to the wrong
type.

Bug: 34758075
Test: Manual
Change-Id: I6b9fc0500762c34379f4de56e0b5a66e6f17d87d
2017-01-31 09:22:14 -08:00
William Mee
9deb6b5a3a Merge "Added a new wifi_badging_thresholds setting to Settings.Global" 2017-01-31 16:54:48 +00:00
Alan Viverette
ba0d98fac3 Add UiModeManager commands to adb
Change-Id: I0480bf92e6a8e9adee99a0013d70d39550a52611
Fixes: 30096205
Test: adb shell cmd uimode night yes
2017-01-31 11:24:59 -05:00
TreeHugger Robot
de0fb617a1 Merge "don't require 'O' for instant apps" 2017-01-31 16:22:37 +00:00
TreeHugger Robot
a3c064d104 Merge "Migrate Tron logs for power to multimetric format." 2017-01-31 15:56:15 +00:00
Julia Reynolds
ceecfcf5cc Remove unneeded parameters
Test: cts-verifier
Change-Id: Ifaddd71aa44898c7c16f28f1715fd035861e3be6
2017-01-31 10:51:10 -05:00
Emilian Peev
d008479920 Camera2: Check for valid GPS timestamp before usage
CaptureResult.JPEG_GPS_TIMESTAMP' queries can
 return null Long objects. The conversion to
 seconds should happen only in cases where we have
 non-null objects.

BUG: 34835263
Change-Id: I1251fad55b2a671928839725123adedfb12fe53a
2017-01-31 15:29:20 +00:00
Yura
e2896febe4 Merge "Fix for endless loop in RelativeLayout." 2017-01-31 15:18:13 +00:00
Todd Kennedy
910a19a535 don't require 'O' for instant apps
It's unclear if we need this check; esp if we want to support
running legacy instant apps [i.e. instant apps that run pre-O
under the supervisor].

Test: Build and install instant app
Change-Id: I241f97e7960635af933e8fe1ddd86675789ec26c
2017-01-31 06:51:28 -08:00
Narayan Kamath
5e806bc3ba MethodHandles: Expose additional API.
Tracks libcore change f4ee5c6dccff8f7e037f95b26767e552ea93d41b.

Test: make checkapi docs
Change-Id: Iac4d4741b9729f3409247b6a3a2b1428f3aa66f0
2017-01-31 14:07:35 +00:00
Julia Reynolds
e73724c4f9 Merge "Use TVExtender channel on tv platforms." 2017-01-31 14:06:06 +00:00
Clara Bayarri
060332400d Fix crash in TextView getFont
The wrong TypedArray was being used to retrieve the value.

Bug: 34818260
Test: run cts -m CtsWidgetTestCases -t
android.widget.cts.TextViewTest#testFontResources_setInXmlStyle

Change-Id: I09334710b9b21f1397bc02d92d14b41fbc96178f
2017-01-31 12:15:50 +00:00
Bill Yi
27e634eed1 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 21e0ccb1a6 -s ours
am: eccb4c5045  -s ours

Change-Id: I1132a94369c09f75e1f961ffe9ee90a71996c013
2017-01-31 08:42:40 +00:00
Bill Yi
4302cc60e7 Import translations. DO NOT MERGE am: 652182376c -s ours
am: 1b49042a6a  -s ours

Change-Id: I511fbfdc62022fd75a5690e789c8e19c51ad5ced
2017-01-31 08:41:41 +00:00
Bill Yi
eccb4c5045 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 21e0ccb1a6  -s ours

Change-Id: I12a3340aaa49277aba78c7dcc51b063458113262
2017-01-31 08:37:44 +00:00
Bill Yi
1b49042a6a Import translations. DO NOT MERGE
am: 652182376c  -s ours

Change-Id: I45c84e6031609830111e915ab692906fc48ff0d6
2017-01-31 08:37:39 +00:00
TreeHugger Robot
21e0ccb1a6 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-31 08:31:13 +00:00
Jeff Sharkey
1009c08f8e Revert "Push mapping from file extension to GID."
This reverts commit f17e4cf1f9.
2017-01-31 01:09:14 -07:00
TreeHugger Robot
8a0f9dd59a Merge "Import translations. DO NOT MERGE" 2017-01-31 08:02:43 +00:00
Jason Long
226309c555 Refactor AutoFill server code.
With this change, data flows strictly like so:

AFManagerService -> AFManagerServiceImpl -> Session -> ViewSession

A ViewSession is introduced to 1) know when we can show the fill UI,
and 2) know when we need to create or update the current fill UI.

Each class has its own responsibilities:

* AFManagerService - interface to app process
* AFManagerServiceImpl - per user id
* Session - per activity
** AutoFillUI - per activity (can consider moving to ViewSession)
* ViewSession - per view

Bug: 34633695
Change-Id: Ia197a5c40219379ab6a95d0cf5c39ac4f5470d0e
Test: CTS, Manual with GMS Core
2017-01-31 00:02:31 -08:00
Bill Yi
958679c4a5 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: f3db881c0c -s ours
am: b02ba73c7d  -s ours

Change-Id: Id437d7da4c74788afe857ea09ae9974cf77c8132
2017-01-31 07:39:56 +00:00
Bill Yi
b6f0934504 Import translations. DO NOT MERGE am: 85f7e3989c -s ours
am: c90971e335  -s ours

Change-Id: I5dd2cda575ce68aaf7a188a1b75f02191a40fefd
2017-01-31 07:39:01 +00:00
Bill Yi
2d081e964c Import translations. DO NOT MERGE am: e924e16c3d -s ours
am: c207d2686e  -s ours

Change-Id: I76243ce4d943a2e01740260d84c1c0b04a415b4a
2017-01-31 07:38:09 +00:00
Bill Yi
b02ba73c7d Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: f3db881c0c  -s ours

Change-Id: I86910f68247dbb886e7f3b4b646cf0d8fd8e686a
2017-01-31 07:34:40 +00:00
Bill Yi
c90971e335 Import translations. DO NOT MERGE
am: 85f7e3989c  -s ours

Change-Id: Ibcafecde0ae6b531d5e6c1f379372ad8c73e41fa
2017-01-31 07:34:33 +00:00
Bill Yi
c207d2686e Import translations. DO NOT MERGE
am: e924e16c3d  -s ours

Change-Id: I90ef4192992b588b600f76c90b8744fc52eeb9e8
2017-01-31 07:33:35 +00:00
TreeHugger Robot
8b60f499bf Merge "Import translations. DO NOT MERGE" 2017-01-31 07:30:46 +00:00
TreeHugger Robot
0470d5002e Merge "Import translations. DO NOT MERGE" 2017-01-31 07:30:08 +00:00
TreeHugger Robot
cf000871ad Merge "Import translations. DO NOT MERGE" 2017-01-31 07:29:30 +00:00
TreeHugger Robot
f3db881c0c Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-31 07:28:44 +00:00
Lorenzo Colitti
d2706127d0 ConnectivityServiceTest: remove remaining poll loops.
All the tests are now asynchronous. The only remaining uses of
Thread.sleep() are in the tests that check for NetworkRequest
timeouts.

Test: ConnectivityServiceTest passes 100 times in a row
Bug: 32561414
Change-Id: If420bd66c692a90d5031ee06a888a8cc3b4398a8
2017-01-31 15:44:23 +09:00
Lorenzo Colitti
30145d755c Remove assertEventuallyTrue as it's unnecessary.
The calls in testAvoidBadWifi are no longer necessary now that
waitForIdle is reliable, and the calls in testPacketKeepalives
are replaced with a wait for the NetworkAgent to disconnect.

Test: ConnectivityServiceTest passes 100 times in a row.
Bug: 32561414
Change-Id: Icbb161ca6e343bd14764a1c9ccfdd14b6cd6803f
2017-01-31 15:42:58 +09:00
Lorenzo Colitti
58ebe1c6f1 Rename AvoidBadWifiTracker to MultinetworkPolicyTracker
Rename the class and ensure that all code related to bad wifi
avoidance has names that reflect its purpose.  This will allow us
to reuse most of the the code for other purposes in future CLs.

Test: runtest frameworks-net passes
Bug: 34630278
Change-Id: Ida190e5a79e7a12f4eec07e1a3e4d9d138e83bcd
2017-01-31 15:42:57 +09:00
Lorenzo Colitti
ae3ce81cc3 Attempt to make waitForIdleHandler reliable.
The current implementation of IdleableHandlerThread is based on
the assumption that MessageQueue#isIdle will return true iff the
message loop has finished processing its messages.

Unfortunately, this is incorrect: isIdle returns true iff are no
more messages waiting in the queue; thus, it will also return
true while it is processing the last message before going idle.

Instead of using idle handlers, take the simpler approach of
posting a runnable to the message loop and waiting for it to
be processed.

Test: see other CLs in this patch series
Bug: 31479480
Change-Id: Iae75781f067b762c8653a488a5e4d5ee0c789e01
2017-01-31 15:42:17 +09:00
Bill Yi
652182376c Import translations. DO NOT MERGE
Change-Id: I0ef2e2fb59b03df8ce1c4ebb29154ef815b6154b
Auto-generated-cl: translation import
2017-01-30 22:39:49 -08:00
Bill Yi
6e75a35fff Import translations. DO NOT MERGE
Change-Id: I0f109486ea3b8c2c2fb21d796aa1d546e8fc3f68
Auto-generated-cl: translation import
2017-01-30 22:29:14 -08:00
Hugo Benichi
db11740a01 Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79 am: 811f6c86da
am: 488ffdc784

Change-Id: Ib4223b548b434211dda4e750f660eb68a30a9d96
2017-01-31 06:16:43 +00:00
Hugo Benichi
488ffdc784 Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396 am: 60e1375f79
am: 811f6c86da

Change-Id: Idd738e1a4c9f0a865f5b84270535a94c492341ce
2017-01-31 06:11:35 +00:00
Hugo Benichi
811f6c86da Merge "ApfTest: fix flaky testApfFilterRa." am: c2e8588396
am: 60e1375f79

Change-Id: Ied249e20ffc80728d20ac1e5442d45f5cb767776
2017-01-31 06:07:08 +00:00
Hugo Benichi
60e1375f79 Merge "ApfTest: fix flaky testApfFilterRa."
am: c2e8588396

Change-Id: I79c3ec0ba35973cc0dd32709447b2cc30e790d08
2017-01-31 06:01:58 +00:00
Hugo Benichi
c2e8588396 Merge "ApfTest: fix flaky testApfFilterRa." 2017-01-31 05:53:52 +00:00
TreeHugger Robot
cf45c85297 Merge "Introduce set/getFontVariationSettings." 2017-01-31 05:46:27 +00:00
Edwin Wong
e9b8348027 Merge "Pass application packagename to drm plugin." 2017-01-31 05:03:44 +00:00
Suprabh Shukla
14ed611912 DO NOT MERGE Do not call RecoverySystem with DPMS lock held
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.

Bug 30681079

Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
Merged-In: Ia832bed0f22396998d6307ab46e262dae9463838
2017-01-31 04:56:34 +00:00
Suprabh Shukla
835c8b3d69 DO NOT MERGE Do not call RecoverySystem with DPMS lock held
Note DPM.wipeData() on a secondary user is now blocking, just like
it's been always blocking on the primary user.

Bug 30681079

Change-Id: Ia832bed0f22396998d6307ab46e262dae9463838
2017-01-30 20:52:07 -08:00
Bill Yi
e924e16c3d Import translations. DO NOT MERGE
Change-Id: Icf17a6fb6b941caea8a843c0cac96f0b1883d4f3
Auto-generated-cl: translation import
2017-01-30 20:45:03 -08:00
Bill Yi
85f7e3989c Import translations. DO NOT MERGE
Change-Id: Ifb3e58e4528c1d7ea44bac121b7e210672aa6a7f
Auto-generated-cl: translation import
2017-01-30 20:36:40 -08:00
Bill Yi
248a328c8a Import translations. DO NOT MERGE
Change-Id: Iaedd33e8b3a8c0622921ed4ffacda442af79d409
Auto-generated-cl: translation import
2017-01-30 20:20:14 -08:00
Hyundo Moon
a055f13ce9 Fix NullPointerException in System UI caused by remote volume change
VolumeDialogController(System UI) only manages active sessions,
but MediaSessionService always notifies the System UI of remote
volume change regardless of whether the session is active or not.
This CL makes MediaSessionService notify of remote volume change
only when the session is active.

Bug: 34033926
Test: Flashed new master build on angler and tested.
Change-Id: Id363c078f75d49732aa7af9578ee44a24649df63
2017-01-31 13:05:10 +09:00
Bill Yi
b3f5822ac7 Import translations. DO NOT MERGE
Change-Id: I8898f88d0454aa0065faa8e0cbc737a5dc2cc055
Auto-generated-cl: translation import
2017-01-30 19:41:51 -08:00