413561 Commits

Author SHA1 Message Date
Android Build Merger (Role)
ec91922c54 Merge "[automerger skipped] Merge "Clean up Call redirection setting" am: 9d6ac63e5e am: d4b3f65d35 -s ours am skip reason: change_id I9cb569bfd1ef5fba7958bb2e5f42f05e300e3358 with SHA1 fa9460a6f0 is in history" into qt-dev-plus-aosp 2019-04-08 19:26:40 +00:00
Shuo Qian
958aa683a4 [automerger skipped] Merge "Clean up Call redirection setting" am: 9d6ac63e5e
am: d4b3f65d35 -s ours
am skip reason: change_id I9cb569bfd1ef5fba7958bb2e5f42f05e300e3358 with SHA1 fa9460a6f0 is in history

Change-Id: Ia51fc2606a1ae6e97247f07444e4a5cd7a4629f2
2019-04-08 12:26:08 -07:00
Android Build Merger (Role)
0c04c4a88f Merge "Merge "Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" am: 412e701ff2 am: 346b610db6" into qt-dev-plus-aosp am: 0f77d41968" 2019-04-08 19:25:55 +00:00
Tor Norbye
12de13352a Merge "Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" am: 412e701ff2 am: 346b610db6" into qt-dev-plus-aosp
am: 0f77d41968

Change-Id: If685f33bf0826f7055f692b3e3cdd0bb4dc44979
2019-04-08 12:25:05 -07:00
Android Build Merger (Role)
310c197142 Merge "Merge "Defer broadcasting ACTION_DEFERRED_ACTIVITY_CHANGED until actual change" into qt-dev am: f883ea697e" into qt-dev-plus-aosp 2019-04-08 19:23:56 +00:00
Winson Chung
45fd1f4e6d Merge "Defer broadcasting ACTION_DEFERRED_ACTIVITY_CHANGED until actual change" into qt-dev
am: f883ea697e

Change-Id: I4072fd602d32086cdeab4bba1e26b8d76fb87dc9
2019-04-08 12:23:28 -07:00
Android Build Merger (Role)
eb553b0df7 Merge "Merge changes I4e32a588,I202c5653 am: 003ab94333 am: b7ca85651f" into qt-dev-plus-aosp 2019-04-08 19:21:44 +00:00
Tobias Thierer
b6e63b4b68 Merge changes I4e32a588,I202c5653 am: 003ab94333
am: b7ca85651f

Change-Id: I055eeb1cdbda900d4eb6215f414827cf89dcc52b
2019-04-08 12:21:20 -07:00
Android Build Merger (Role)
3f176785c5 Merge "Merge "UserRestrictionsUtil.isValidRestriction wtfs" into qt-dev am: a126a24c52" into qt-dev-plus-aosp 2019-04-08 19:17:40 +00:00
Bookatz
93bf279e9c Merge "UserRestrictionsUtil.isValidRestriction wtfs" into qt-dev
am: a126a24c52

Change-Id: I4149d09e8e2a8311c3085ecb39d7bc0ebcc19491
2019-04-08 12:17:20 -07:00
Android Build Merger (Role)
718d5723b0 Merge "[automerger skipped] Merge "Improved the debug message" am: cacfab6728 am: 253a139102 -s ours am skip reason: change_id If786d51b35380f606bc388e29a441bb24a2792e0 with SHA1 0c92c23951 is in history" into qt-dev-plus-aosp 2019-04-08 19:16:54 +00:00
Jack Yu
def98e2c41 [automerger skipped] Merge "Improved the debug message" am: cacfab6728
am: 253a139102 -s ours
am skip reason: change_id If786d51b35380f606bc388e29a441bb24a2792e0 with SHA1 0c92c23951 is in history

Change-Id: I44cdc1f9a77cab58c341a1cd03c7551e99946a14
2019-04-08 12:16:24 -07:00
Mark Renouf
4c916ecf7c Merge "BubbleData [2/n]: adds Listener interface" into qt-dev 2019-04-08 19:15:03 +00:00
Android Build Merger (Role)
8bbd520899 Merge "[automerger skipped] Merge "Fix for NetworkStats/Telephony deadlock" am: 0d4445f1e0 am: 24fc368617 -s ours am skip reason: change_id I9e8449e5a75db616e646f55c930ff82982fc9083 with SHA1 d78542bb52 is in history" into qt-dev-plus-aosp 2019-04-08 19:11:54 +00:00
Android Build Merger (Role)
fede8b4273 Merge "Merge "Fix job persistence & re-inflation" into qt-dev am: ac54e30fe5 am: 0feb1ec9d5" 2019-04-08 19:11:53 +00:00
Christopher Tate
aba4aee374 Merge "Fix job persistence & re-inflation" into qt-dev am: ac54e30fe5
am: 0feb1ec9d5

Change-Id: I34bdfa807964fd36cb2612085264cf75b3c04c8b
2019-04-08 12:11:28 -07:00
Amith Yamasani
0d835c50b3 [automerger skipped] Merge "Fix for NetworkStats/Telephony deadlock" am: 0d4445f1e0
am: 24fc368617 -s ours
am skip reason: change_id I9e8449e5a75db616e646f55c930ff82982fc9083 with SHA1 d78542bb52 is in history

Change-Id: Ia496e4e78cec60895d792976a47ff02a799bb03f
2019-04-08 12:11:24 -07:00
Android Build Merger (Role)
3427f091e0 Merge "[automerger skipped] Merge "Move NetworkStatsFactory into service directory" am: 48294e098f am: ee6ed6914f -s ours am skip reason: change_id Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8 with SHA1 061cec7755 is in history" into qt-dev-plus-aosp 2019-04-08 19:07:03 +00:00
Android Build Merger (Role)
fa2ad8b180 Merge "Merge "Merge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance." into qt-dev am: 433bb84545" into qt-dev-plus-aosp am: 8633941abf" 2019-04-08 19:06:53 +00:00
Chenbo Feng
4708ff609b [automerger skipped] Merge "Move NetworkStatsFactory into service directory" am: 48294e098f
am: ee6ed6914f -s ours
am skip reason: change_id Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8 with SHA1 061cec7755 is in history

Change-Id: I419ae9923a510c9691c8c88911ac45fe76846166
2019-04-08 12:06:35 -07:00
TreeHugger Robot
92e142101a Merge "Import translations. DO NOT MERGE" 2019-04-08 19:06:26 +00:00
Pierre Fite-Georgel
5ce049398c Merge "Merge "Adding documentation to getElapsedRealtimeUncertaintyNanos following api council guidance." into qt-dev am: 433bb84545" into qt-dev-plus-aosp
am: 8633941abf

Change-Id: Ie958927bc8bc32e5dd23ca0f6fdac11845af93b4
2019-04-08 12:06:25 -07:00
TreeHugger Robot
4a391613c3 Merge "Import translations. DO NOT MERGE" 2019-04-08 19:05:56 +00:00
Winson Chung
f883ea697e Merge "Defer broadcasting ACTION_DEFERRED_ACTIVITY_CHANGED until actual change" into qt-dev 2019-04-08 19:05:27 +00:00
TreeHugger Robot
a126a24c52 Merge "UserRestrictionsUtil.isValidRestriction wtfs" into qt-dev 2019-04-08 19:03:25 +00:00
Bill Yi
f32bcf72b6 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 6b539282c2 -s ours
am skip reason: subject contains skip directive

Change-Id: Ib93de383188359401795d7ae686f2dce1e3389ca
2019-04-08 12:02:52 -07:00
Bill Yi
2538206e20 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 7581837e06 -s ours
am skip reason: subject contains skip directive

Change-Id: Ie1a046188604e09f875d970b20fcfeb87cb69a8e
2019-04-08 11:51:07 -07:00
Etan Cohen
0e37a546fe Merge "[AWARE] Add unit test - fix hashing bug" into qt-dev
am: 6d98837eb6

Change-Id: I86b8cf8745dfb8566c8e39c5f022e829eb90faf7
2019-04-08 11:49:46 -07:00
Android Build Merger (Role)
c91b915bbb Merge "Merge "Merge "Add dependency on libdl_android" am: fb4396b6bd am: 09ff0f7a9b" into qt-dev-plus-aosp am: 46a1d47f5b" 2019-04-08 18:47:22 +00:00
Tobias Thierer
b5b5e3f200 Merge changes I4e32a588,I202c5653 into qt-dev
am: 79dd28f874

Change-Id: Ie97b9e48b8972fe0fcfd3eb761caeee6c8a9b095
2019-04-08 11:41:23 -07:00
TreeHugger Robot
6b539282c2 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-08 18:37:50 +00:00
dimitry
acbc540287 Merge "Merge "Add dependency on libdl_android" am: fb4396b6bd am: 09ff0f7a9b" into qt-dev-plus-aosp
am: 46a1d47f5b

Change-Id: I2245b8b39983edcf105eab1674f44d57d8851cd7
2019-04-08 11:37:02 -07:00
TreeHugger Robot
7581837e06 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-08 18:26:46 +00:00
Etan Cohen
6d98837eb6 Merge "[AWARE] Add unit test - fix hashing bug" into qt-dev 2019-04-08 18:21:58 +00:00
Android Build Merger (Role)
691f879752 Merge "Merge changes Ic4eb56fc,I7ba66213,I4b4dba44 into qt-dev am: 15777f204d am: 3862860765" 2019-04-08 18:17:52 +00:00
sqian
3c9e9d1939 Merge "Fix documentation of CallRedirectionService"
am: 820a7b5144

Change-Id: I5025ba7b17ee7597e05f7b8c466d9b4d0a2ca80c
2019-04-08 11:17:28 -07:00
Roshan Pius
a659a53a8c Merge changes Ic4eb56fc,I7ba66213,I4b4dba44 into qt-dev am: 15777f204d
am: 3862860765

Change-Id: Iadc4ebfa9b385de843fa560c240324cc3b545638
2019-04-08 11:17:22 -07:00
Tobias Thierer
79dd28f874 Merge changes I4e32a588,I202c5653 into qt-dev
* changes:
  Make MediaHTTPConnection thread safe.
  Revert "MediaHTTPConnection: move connection states into an inner class"
2019-04-08 18:15:39 +00:00
Tobias Thierer
5b9febae78 Make MediaHTTPConnection thread safe.
MediaHTTPConnection's public methods are called from multiple Binder
threads. Since both HttpURLConnection and access to the various
connection related fields is not thread safe, this CL guards most
methods by a single lock. This means that the methods can now block
when called, although this should be rare:

 - there are two processes that call these methods. One process
   only calls getSize(), and the other process calls methods
   from a single thread (ie. at not overlapping clock times).
 - should lock contention unexpectedly increase in future, then
   that would be bad (because Binder thread pool threads would
   be blocked/unavailable), but it would not be easy to detect.
   It would be easy to detect if we could stop getSize() being
   called at overlapping clock times, since we could then use
   ReentrantLock.tryLock() to assert that the lock is never contended
   outside of disconnect().

Because it's a requirement for disconnect() to quickly stop another
thread that is blocked in readAt(), disconnect() is the only method
that doesn't acquire the lock immediately; the mConnection field
is marked volatile so that disconnect() has a high chance of reading
that field and calling disconnect() on it without waiting for
another thread (there's a small risk that another thread might
acquire the lock and start a new connection while disconnect()
is waiting for the lock; in that case, after acquiring the lock,
disconnect() will also disconnect that new connection; this is
subject to potential change in future.

Initially, a ReentrantLock object was considered but for now this
CL instead uses the synchronized lock on "this" because:

 - it minimizes churn on the lines of code in this file because
   synchronized (this) { } can be expressed by introduction of
   the word "synchronized" on the method header, whereas
   mLock.lock(); try { ... } finally { mLock.unlock(); } would
   indent all the lines in-between and thus pollute git annotate.
 - some methods were already synchronized.
 - ReentrantLock.tryLock() is not used for now; most of the time,
   lock acquisition should be uncontended but the two cases of
   lock contention mentioned above exist, which makes it difficult
   to distinguish surprising from unsurprising lock contention.
   While this is the case, it seems better to keep the code
   simple and to just unconditionally block.

Bug: 114337214
Fixes: 114337214
Fixes: 119900000
Fixes: 129444137
Fixes: 128758794
Fixes: 63002045

Test: Checked manually that bug 114337214 no longer reproduces on
      Android API level 27 (Oreo MR1) after cherrypicking this CL.
Test: Ran the following on internal master with this CL:
      make cts && cts-tradefed run cts -m CtsMediaTestCases \
      -t android.media.cts.NativeDecoderTest#testAMediaDataSourceClose \
      --abi arm64-v8a
Test: Ran the following both on AOSP (158 tests) and internal master (178):
      atest CtsMediaTestCases:android.media.cts.{MediaPlayer{,2},Routing}Test

      All these tests pass except that on AOSP only, the following test
      fails both before and after my CL (appears unrelated):
      android.media.cts.RoutingTest#test_MediaPlayer_RoutingChangedCallback

(cherry picked from commit 8d9fccee62e2c73abe952f2a1de575c28bcd9410)

Change-Id: I4e32a58891c3ce60ddfa72d36060486d37906f8d
Merged-In: I4e32a58891c3ce60ddfa72d36060486d37906f8d
2019-04-08 18:14:42 +00:00
Tobias Thierer
241377b10a Revert "MediaHTTPConnection: move connection states into an inner class"
This reverts commit 621e7968adf0253d5e22406f02ccc8bcc0eda5ec.

Many of the fields that were moved are annotated @UnsupportedAppUsage,
so the CL would have had undesirable app compat impact. Further,
because investigation has revealed that lock contention *is* possible,
we need to always acquire the lock anyway so there is no longer a
benefit in keeping all of the mutable state in a single field that
can be atomically set to null.

Bug: 114337214
Test: Treehugger

(cherry picked from commit dc9f4b4d5d28fc68b1b5e4e8500bf67d4b11621d)

Change-Id: I202c5653cb086d99228491e161a159bad640105a
Merged-In: I202c5653cb086d99228491e161a159bad640105a
2019-04-08 18:14:04 +00:00
Antoan Angelov
4ba2801da0 Merge "Add provisioning extra definition to skip education screens" 2019-04-08 18:07:04 +00:00
Jorim Jaggi
23a9e4d20f Merge "Protect against null drawable" into qt-dev
am: 85e35eb118

Change-Id: I77df350f236f1c623d41ff777e3ceaef26ee09ef
2019-04-08 11:05:59 -07:00
Bill Yi
839ebebd7f Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I34c278df0d44b78239551149fca2c9ba53131346
2019-04-08 11:04:04 -07:00
Neil Fuller
0744b484e7 Merge "Merge "Track ErrnoException API changes in libcore" am: 8ca1a0530f am: ca237545f4" into qt-dev-plus-aosp
am: 69ef8a6063

Change-Id: I51f5c645d48d6cd2032d23ec6f4d2a9d5c568f29
2019-04-08 10:56:52 -07:00
Android Build Merger (Role)
f99863ee31 Merge "Merge "Opportunistic Sub Grouping Keys in CarrierConfig" am: 6a9faeee7e am: 03c007dcde" into qt-dev-plus-aosp 2019-04-08 17:56:33 +00:00
Nathan Harold
248230983c Merge "Opportunistic Sub Grouping Keys in CarrierConfig" am: 6a9faeee7e
am: 03c007dcde

Change-Id: I3c1584e7b9d387b90f3b585ac93821674c260393
2019-04-08 10:55:15 -07:00
Android Build Merger (Role)
0f77d41968 Merge "Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" am: 412e701ff2 am: 346b610db6" into qt-dev-plus-aosp 2019-04-08 17:49:53 +00:00
Tor Norbye
c14e105f90 Merge "Revert "Revert "Update MbmsDownloadServiceBase to reflect implements IInterface""" am: 412e701ff2
am: 346b610db6

Change-Id: Ia02b9af411b6a5b5cc3575649fe269e49c069cef
2019-04-08 10:48:55 -07:00
Christopher Tate
0feb1ec9d5 Merge "Fix job persistence & re-inflation" into qt-dev
am: ac54e30fe5

Change-Id: Ib85de74bd835917b516b263efce6eb21d3a9f4d8
2019-04-08 10:43:25 -07:00
Bill Yi
7fac2a34bc Import translations. DO NOT MERGE
Change-Id: I38efb4e06844c763e88942a2762387a9edc14897
Auto-generated-cl: translation import
2019-04-08 10:42:48 -07:00