Commit Graph

413225 Commits

Author SHA1 Message Date
Bill Yi
5e7a4efa25 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 568b02ee00 -s ours
am skip reason: subject contains skip directive

Change-Id: I9ec14c25e952bf3c21d7895800d0b8b76539a99c
2019-04-08 13:33:14 -07:00
Fabian Kozynski
5e59d60b3d Merge "Visual changes to QS header" into qt-dev
am: e19335a443

Change-Id: I06d65d79063268e3ee529864eec15acd0b473c54
2019-04-08 13:26:20 -07:00
sqian
2881e89cee [automerger skipped] Merge "Fix documentation of CallRedirectionService" am: 820a7b5144
am: 3c9e9d1939 -s ours
am skip reason: change_id I48f60b3c4a465e22250aa513a4d7d73f82375426 with SHA1 87833ee867 is in history

Change-Id: Ic694dd40b626765edf6ab2c007d75fc9e6eefd8b
2019-04-08 13:15:08 -07:00
Android Build Merger (Role)
1704d678ff Merge "[automerger skipped] Merge "Add FrameworksNetTests dependency on libcgrouprc" am: 3729b26f8a -s ours am: 204ef43f56 -s ours am skip reason: change_id Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8 with SHA1 f2f1f27098 is in history" into qt-dev-plus-aosp 2019-04-08 19:56:03 +00:00
Remi NGUYEN VAN
d7ba309e30 [automerger skipped] Merge "Add FrameworksNetTests dependency on libcgrouprc" am: 3729b26f8a -s ours
am: 204ef43f56 -s ours
am skip reason: change_id Ifcfe4df81caf8ede2e4e66a76552cb3200378fa8 with SHA1 f2f1f27098 is in history

Change-Id: I9118558df88aac3cca342592ff8aa8ca9030e2a5
2019-04-08 12:55:30 -07:00
TreeHugger Robot
568b02ee00 Merge "Import translations. DO NOT MERGE" into qt-dev 2019-04-08 19:54:18 +00:00
Android Build Merger (Role)
1b846b4604 Merge "Merge "Fix exception of unregisterCallback when callback is not registered" am: 43b75cad9e am: d526de2ca2" into qt-dev-plus-aosp 2019-04-08 19:51:03 +00:00
Kyeongkab.Nam
3e12920345 Merge "Fix exception of unregisterCallback when callback is not registered" am: 43b75cad9e
am: d526de2ca2

Change-Id: I91b92f2cc5255124884c39cfddc449479efa7255
2019-04-08 12:50:30 -07:00
Fabian Kozynski
e19335a443 Merge "Visual changes to QS header" into qt-dev 2019-04-08 19:49:11 +00:00
Android Build Merger (Role)
b1a0373791 Merge "Merge "Prevent SIGN_IN notification pop up several times" am: 83152b1e5f am: d454c3c276" into qt-dev-plus-aosp 2019-04-08 19:46:14 +00:00
Lucas Lin
1b752e600b Merge "Prevent SIGN_IN notification pop up several times" am: 83152b1e5f
am: d454c3c276

Change-Id: I11840eb0cd06885979f0823d6db05e3e4e0535bb
2019-04-08 12:45:40 -07:00
Android Build Merger (Role)
074053853c Merge "Merge "Add NetworkStackTests dependency on libdl_android" am: 1178972d68 am: 070e341303" into qt-dev-plus-aosp 2019-04-08 19:41:16 +00:00
Remi NGUYEN VAN
73f66b3e92 Merge "Add NetworkStackTests dependency on libdl_android" am: 1178972d68
am: 070e341303

Change-Id: I332a55c4a28c1b94610270c4658460562bd4bef3
2019-04-08 12:40:48 -07:00
Android Build Merger (Role)
7fecc34996 Merge "Merge "Extend support for requestRouteToHostAddress for backward compatibility" am: fa45c06a62 am: b85b487e31" into qt-dev-plus-aosp 2019-04-08 19:36:26 +00:00
Anil Admal
2eea7ac272 Merge "Extend support for requestRouteToHostAddress for backward compatibility" am: fa45c06a62
am: b85b487e31

Change-Id: Ifa60d8f2d60aba4c4e2894dc612c224d45e3992d
2019-04-08 12:36:02 -07:00
Android Build Merger (Role)
8818a8c6c7 Merge "Merge "Disable InetDiagSocketTest in a better way." am: c28356b9c6 am: cc94ad60b0" into qt-dev-plus-aosp 2019-04-08 19:31:35 +00:00
Lorenzo Colitti
2373c8a129 Merge "Disable InetDiagSocketTest in a better way." am: c28356b9c6
am: cc94ad60b0

Change-Id: I3d8cebec00dde7d0b61469f36887cd5afface043
2019-04-08 12:31:01 -07:00
Mark Renouf
5381f32888 Merge "BubbleData [2/n]: adds Listener interface" into qt-dev
am: 4c916ecf7c

Change-Id: Ib0a2227866701e79d04b2a015f72aa55fc5d57b7
2019-04-08 12:30:20 -07:00
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)
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
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
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
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
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
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
sqian
3c9e9d1939 Merge "Fix documentation of CallRedirectionService"
am: 820a7b5144

Change-Id: I5025ba7b17ee7597e05f7b8c466d9b4d0a2ca80c
2019-04-08 11:17:28 -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 8d9fccee62)

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 621e7968ad.

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 dc9f4b4d5d)

Change-Id: I202c5653cb086d99228491e161a159bad640105a
Merged-In: I202c5653cb086d99228491e161a159bad640105a
2019-04-08 18:14: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
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