OSDN Git Service
Pavlin Radoslavov [Thu, 5 Jan 2017 07:49:49 +0000 (07:49 +0000)]
Merge "Integration of the LDAC codec for A2DP source"
am:
3c050268f0
Change-Id: I79092dfa7a6918bf359b266bec7a7bbc736f08ce
Treehugger Robot [Thu, 5 Jan 2017 07:43:49 +0000 (07:43 +0000)]
Merge "Integration of the LDAC codec for A2DP source"
Pavlin Radoslavov [Thu, 5 Jan 2017 00:47:02 +0000 (16:47 -0800)]
Integration of the LDAC codec for A2DP source
The codec can be used if the encoding shared library is installed
on the device:
libldacBT_enc.so
Test: A2DP streaming to LDAC headsets
Bug:
30958229
Change-Id: I524805fd308b5181427515617eda05625a7c4ae5
Pavlin Radoslavov [Thu, 5 Jan 2017 02:02:01 +0000 (02:02 +0000)]
Merge "Integration of the aptX and aptX-HD codecs for A2DP source"
am:
5242acbd0b
Change-Id: I4007f4e68e889ed0a41ac5fc035f175e3709bb0d
Treehugger Robot [Thu, 5 Jan 2017 01:56:34 +0000 (01:56 +0000)]
Merge "Integration of the aptX and aptX-HD codecs for A2DP source"
Pavlin Radoslavov [Thu, 5 Jan 2017 00:10:09 +0000 (16:10 -0800)]
Integration of the aptX and aptX-HD codecs for A2DP source
Each of the codecs can be used if the corresponding encoding
shared library is installed on the device:
- aptX: libaptX.so
- aptX-HD: libaptXHD.so
Test: A2DP streaming to aptX and aptX-HD headsets
Bug:
30958229
Change-Id: I24faddc8cd88ae3e1370922c633f30e13124a867
Jeremy Joslin [Wed, 4 Jan 2017 23:10:42 +0000 (23:10 +0000)]
Merge "Defining a new REQUEST_NETWORK_SCORES permission."
am:
a54d76a81f
Change-Id: I4fc03585c4943712f5c1309a5bfa2995dac1bbe0
Treehugger Robot [Wed, 4 Jan 2017 23:04:46 +0000 (23:04 +0000)]
Merge "Defining a new REQUEST_NETWORK_SCORES permission."
Jeremy Joslin [Wed, 4 Jan 2017 22:53:12 +0000 (22:53 +0000)]
Merge "Fix NetworkScoreServiceTest.testSystemRunning."
am:
5b4aec1dc6
Change-Id: Ic80d796221d94a092ed210dde3d1e3886d950265
Treehugger Robot [Wed, 4 Jan 2017 22:43:34 +0000 (22:43 +0000)]
Merge "Fix NetworkScoreServiceTest.testSystemRunning."
Jeremy Joslin [Wed, 4 Jan 2017 21:42:41 +0000 (21:42 +0000)]
Merge "Use the new BIND_NETWORK_RECOMMENDATION_SERVICE."
am:
34d46ca94c
Change-Id: I1e6f1751cf3ce690e09e8681c86f744a38c550d6
Treehugger Robot [Wed, 4 Jan 2017 21:35:03 +0000 (21:35 +0000)]
Merge "Use the new BIND_NETWORK_RECOMMENDATION_SERVICE."
Jeremy Joslin [Wed, 21 Dec 2016 22:16:19 +0000 (14:16 -0800)]
Defining a new REQUEST_NETWORK_SCORES permission.
This is intended to be a drop-in replacement for the existing
BROADCAST_NETWORK_PRIVILEGED with a more appropriate name.
Test: Built, ran.
BUG:
33752149
Change-Id: Iebe9d1c12f159bd91953ef094d9866eba9ff925a
Merged-In: I12bdba9694fdf2a2e39990736265919edafd865e
Jeremy Joslin [Thu, 29 Dec 2016 23:00:23 +0000 (15:00 -0800)]
Fix NetworkScoreServiceTest.testSystemRunning.
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG:
33905890
Change-Id: Icc1db79cde26f1445ca925780ff760b7aa0515b1
Merged-In: Idc92fe3669b0efdb20d3899ce4ce7bae70033aff
Joe LaPenna [Wed, 4 Jan 2017 19:49:35 +0000 (19:49 +0000)]
Merge "Expose RecommendationRequest.Builder as SystemApi."
am:
944b017031
Change-Id: If63881b8b33ced7950ebb7e83fb8994e454b8642
Jeremy Joslin [Thu, 29 Dec 2016 18:18:48 +0000 (10:18 -0800)]
Use the new BIND_NETWORK_RECOMMENDATION_SERVICE.
Declare that the system uses the new
BIND_NETWORK_RECOMMENDATION_SERVICE permission.
Test: Built & ran
BUG:
33897544
Change-Id: I43424642a631f58da3a065f8221e351180f4f221
Merged-In: I41c7550adf0d1f81ed9a12068ba569e6a57f3b42
Treehugger Robot [Wed, 4 Jan 2017 19:42:16 +0000 (19:42 +0000)]
Merge "Expose RecommendationRequest.Builder as SystemApi."
Marie Janssen [Wed, 4 Jan 2017 19:13:57 +0000 (19:13 +0000)]
Merge "Bluetooth: don't output dumpsys info twice"
am:
c77074300b
Change-Id: I727ed233944a18565e7286bfe0a8d7832a2be962
Marie Janssen [Wed, 4 Jan 2017 19:07:18 +0000 (19:07 +0000)]
Merge "Bluetooth: don't output dumpsys info twice"
Marie Janssen [Tue, 3 Jan 2017 19:37:38 +0000 (11:37 -0800)]
Bluetooth: don't output dumpsys info twice
Dumpsys info was printed in the "Application Services" section as well
as the bluetooth_manager section. Add an argument to print so it prints
from here, and doesn't in the other section.
Test: run a bugreport, check in "APP SERVICES" section
Bug:
29356402
Change-Id: I8adedaeac54c9a538c581459654dbdf96361e046
Joe LaPenna [Wed, 4 Jan 2017 08:44:22 +0000 (00:44 -0800)]
Expose RecommendationRequest.Builder as SystemApi.
In order to test our recommender, we need to be able to create
network recommendation requests.
Test: make update-api
Change-Id: I68df0d3e684bcdb90709a34478d2aa669ee23547
Merged-In: I68df0d3e684bcdb90709a34478d2aa669ee23547
qinzhichao [Wed, 4 Jan 2017 17:27:48 +0000 (17:27 +0000)]
Merge "Fix NullPointerException in MediaPlayer"
am:
c7c899bbe2
Change-Id: Iff261e6bd78c4f757ee0f7ae199710c9f92f0778
Treehugger Robot [Wed, 4 Jan 2017 17:23:06 +0000 (17:23 +0000)]
Merge "Fix NullPointerException in MediaPlayer"
Jeremy Joslin [Wed, 4 Jan 2017 15:29:57 +0000 (15:29 +0000)]
Merge "New permission - BIND_NETWORK_RECOMMENDATION_SERVICE."
am:
871beedc6d
Change-Id: I2554ede84b313e66af57e05c59046747c16ec23e
Treehugger Robot [Wed, 4 Jan 2017 15:24:30 +0000 (15:24 +0000)]
Merge "New permission - BIND_NETWORK_RECOMMENDATION_SERVICE."
Neil Fuller [Wed, 4 Jan 2017 12:32:29 +0000 (12:32 +0000)]
Merge "Set isConnected, isBound, implCreated on server-side LocalSockets"
am:
75ba827a4e
Change-Id: I08b809241b6e025c9a30377c09f616be3484d7af
Treehugger Robot [Wed, 4 Jan 2017 12:26:48 +0000 (12:26 +0000)]
Merge "Set isConnected, isBound, implCreated on server-side LocalSockets"
Ivan Podogov [Wed, 4 Jan 2017 10:37:38 +0000 (10:37 +0000)]
Merge "HID Device role API fixes"
am:
f33a71d017
Change-Id: Ib7f524b7ad0bf63b852f2ffd4039d8b47ef7fc01
Neil Fuller [Wed, 4 Jan 2017 10:07:25 +0000 (10:07 +0000)]
Set isConnected, isBound, implCreated on server-side LocalSockets
Previously LocalServerSocket.accept() would return a LocalSocket
instance with isConnected, isBound and implCreated set to false.
[implCreated determines whether impl.create() needs to called].
A socket created via accept() in this way is implicitly bound
and connected. impl.create() does not need to be called because
impl.accept(LocalSocketImpl s) is called instead and has the same
effect (s.fd and s.mFdCreatedInternally set correctly).
This change modifies the behavior so that the flags are now all
set to true in this case and isBound() and isConnected() will
now return the correct answer.
Attempts to call bind() and connect() will still throw
IOException as before, but with a different exception message.
Correctly setting implCreated in LocalSocket means that
LocalSocketImpl.create() will no longer be called for accept()
created sockets and no longer needs to treat the "fd != null"
case as a no-op: we can now assert that there must be no fd set
when create() is called as we will no longer call it with sockets
created using accept().
Bug: https://code.google.com/p/android/issues/detail?id=35942
Test: Device boot
Test: vogar --mode app_process cts/tests/tests/net/src/android/net/cts/LocalServerSocketTest.java
Test: vogar --mode app_process cts/tests/tests/net/src/android/net/cts/LocalSocketTest.java
Change-Id: I3ac55439412e84501ae7c5ae6c9976e03b2d6fc5
Ivan Podogov [Wed, 4 Jan 2017 10:32:41 +0000 (10:32 +0000)]
Merge "HID Device role API fixes"
qinzhichao [Wed, 4 Jan 2017 06:51:33 +0000 (14:51 +0800)]
Fix NullPointerException in MediaPlayer
Issue detail:
https://code.google.com/p/android/issues/detail?id=231417
setSubtitleAnchor() is a synchronized method and has checked
mSubtitleController. So checking for null pointer is not
needed in scanInternalSubtitleTracks() method.
Signed-off-by: qinzhichao <qinzhichao@xiaomi.com>
Steven Moreland [Wed, 4 Jan 2017 05:03:28 +0000 (05:03 +0000)]
Merge "Add checked exceptions to HwBinder transact."
am:
6c5cc261f8
Change-Id: I3bcac03a745722acd983dc4e7bdc31ae806bdbd4
Treehugger Robot [Wed, 4 Jan 2017 04:58:38 +0000 (04:58 +0000)]
Merge "Add checked exceptions to HwBinder transact."
Pavlin Radoslavov [Wed, 4 Jan 2017 03:39:50 +0000 (03:39 +0000)]
Merge "Add a mechanism for configuring the A2DP Source codecs"
am:
63270f2b96
Change-Id: I289d3b61e29b02bae208c656a6e963ff58248a15
Treehugger Robot [Wed, 4 Jan 2017 03:35:38 +0000 (03:35 +0000)]
Merge "Add a mechanism for configuring the A2DP Source codecs"
Pavlin Radoslavov [Wed, 21 Dec 2016 20:05:51 +0000 (12:05 -0800)]
Add a mechanism for configuring the A2DP Source codecs
* Added a new class BluetoothCodecConfig that contains codec-related
configuration or capabilities: codec type, priority, sample rate,
bits per sample, channel mode, and codec specific fields.
* Extended the Bluetooth A2DP AIDL interface to get/set the current
codec configuration
* Added new call handleBluetoothA2dpDeviceConfigChange() to the Media
Framework that is called when there are changes in the
Bluetooth A2DP device configuration - e.g., the A2DP codec is changed.
Test: A2DP streaming to headsets, TestPlans/71390
Bug:
30958229
Change-Id: I9a82716cbc2a5efbe77352a031ac80c88f6a2459
Steven Moreland [Tue, 20 Dec 2016 23:55:48 +0000 (15:55 -0800)]
Add checked exceptions to HwBinder transact.
Bug:
33673120
Test: hidl_test_java
Merged-In: I7b62eb6b066fc24c44ef7e46aaa2a3208c053d11
Change-Id: I7b62eb6b066fc24c44ef7e46aaa2a3208c053d11
Ivan Podogov [Fri, 30 Dec 2016 14:43:29 +0000 (14:43 +0000)]
HID Device role API fixes
This change makes HIDD API more like the other ones, i.e.
supporting multiple devices, and implements missing methods.
While the underlying implementation may still only support a
single device at a time, the "device" parameter can still be
useful for checking if the application is trying to send the
data to a correct device.
Test: make
Change-Id: I55fe04c0762a96fcddd6c6678e790361d648111a
Jeremy Joslin [Wed, 28 Dec 2016 18:32:46 +0000 (10:32 -0800)]
New permission - BIND_NETWORK_RECOMMENDATION_SERVICE.
Used to protect exported network recommendation services.
Test: Built & ran
BUG:
33897544
Change-Id: Icfc566275a8d832449f6358e576784199ab0f7b2
Merged-In: I4f163fb965be6a25201bc3ba5e0032e7652c8f20
Jeff Sharkey [Tue, 3 Jan 2017 19:24:00 +0000 (19:24 +0000)]
Merge "Offer to measure disk stats using quotas."
am:
f8720b95be
Change-Id: I56bab3ec4895c232ce8287623827c20f2dbfaaf6
Jeff Sharkey [Tue, 3 Jan 2017 19:08:07 +0000 (19:08 +0000)]
Merge "Offer to measure disk stats using quotas."
Robert Greenwalt [Tue, 3 Jan 2017 17:32:59 +0000 (17:32 +0000)]
Merge "Add IMEI_NOT_ACCEPTED disconnect cause"
am:
43ced5941e
Change-Id: I5457b80932f4bb155bf136fc4e05199f04ca7e7c
Robert Greenwalt [Tue, 3 Jan 2017 17:26:58 +0000 (17:26 +0000)]
Merge "Add IMEI_NOT_ACCEPTED disconnect cause"
Jeff Sharkey [Tue, 13 Dec 2016 15:44:51 +0000 (08:44 -0700)]
Offer to measure disk stats using quotas.
Now we're getting somewhere! This CL starts measuring disk usage
using quotactl(), which is almost instant and has much lower impact
on flash memory lifetime.
We now grant the per-app cache GID to every launched app, and the
ContextImpl logic that creates cache directories matches the logic
down in installd.
Test: builds, boots, quota stats match manual stats
Bug:
27948817
Change-Id: Ie269a2958ce0e1c17cb74dbfecc791a5c12922cf
dongwan0605.kim [Tue, 3 Jan 2017 16:09:21 +0000 (16:09 +0000)]
Merge "QS: Fix QuickQS visibility at non-first page"
am:
fce04dc0be
Change-Id: I83100ac5c1f4d896d96d2ff12d0ad59eba8b533b
Treehugger Robot [Tue, 3 Jan 2017 15:54:21 +0000 (15:54 +0000)]
Merge "QS: Fix QuickQS visibility at non-first page"
dongwan0605.kim [Tue, 3 Jan 2017 06:40:07 +0000 (15:40 +0900)]
QS: Fix QuickQS visibility at non-first page
When user collapsed QSPanel at non-first page, QuickQS always remained
View.Visible. When user canceled collapsing, QQS remained clickable
although invisible to user(alpha = 0).
QQS must be non-clickable when user cancels collapsing at non-first page.
Test: QSPanel > 2nd page > Cancel collapsing while collapse QSPanel
> Verify invisible QQS is non-clickable
Change-Id: I4c1f195a3faec8e89bb073443f6345f4faddf781
Nick Kralevich [Sun, 1 Jan 2017 22:43:20 +0000 (22:43 +0000)]
Merge "LocalSocketImpl.cpp: Set O_CLOEXEC on received FDs"
am:
9156ccdbb4
Change-Id: I1501dce93ba090237831bf4c777cea13870f393d
Treehugger Robot [Sun, 1 Jan 2017 22:28:36 +0000 (22:28 +0000)]
Merge "LocalSocketImpl.cpp: Set O_CLOEXEC on received FDs"
Ivan Podogov [Fri, 30 Dec 2016 14:35:09 +0000 (14:35 +0000)]
Fix profiles broken by ag/
1751147
Change-Id: Ifa92819df8e63355a3979ea0f1a20a0363b6cd45
Marie Janssen [Thu, 29 Dec 2016 20:16:34 +0000 (12:16 -0800)]
resolve merge conflicts of
9cc7ebe to stage-aosp-master
Change-Id: Ia1cdf49d77a574c38ed5cc33c31d5cf930103484
Ivan Podogov [Thu, 29 Dec 2016 19:39:07 +0000 (19:39 +0000)]
Merge changes from topic 'HID-Client'
am:
8a74d0440c
Change-Id: I6a541011024253f7b7f5f5207294cf1bce60a4f0
Ivan Podogov [Thu, 29 Dec 2016 19:38:41 +0000 (19:38 +0000)]
Rename the Bluetooth profile classes for HID Device role.
am:
0afe190af5
Change-Id: Ib5c9b904da57048d719df504142edd3dab0e6ec3
Hemant Gupta [Thu, 29 Dec 2016 19:37:58 +0000 (19:37 +0000)]
Bluetooth: Add support for HID Device Role
am:
e88fd4b594
Change-Id: Ic2a82d5670ffbd3046766d73ed9b180546c59169
Marie Janssen [Thu, 29 Dec 2016 19:32:36 +0000 (19:32 +0000)]
Merge "Bluetooth: track enabling in dumpsys"
Treehugger Robot [Thu, 29 Dec 2016 19:29:16 +0000 (19:29 +0000)]
Merge changes from topic 'HID-Client'
* changes:
Rename the Bluetooth profile classes for HID Device role.
Bluetooth: Add support for HID Device Role
Marie Janssen [Wed, 28 Dec 2016 22:13:21 +0000 (14:13 -0800)]
Bluetooth: track enabling in dumpsys
Move basic state dumpsys to here from AdapterService.
Track which apps are enabling and disabling Bluetooth, including BLE
apps, and show the apps in the dumpsys logs.
Test: start phone and enable/disable, take bug report
Bug:
33692282
Change-Id: I6ea62ebdcfd7873d0be1bb5c5c520bbce3737a40
Ivan Podogov [Fri, 23 Dec 2016 11:52:21 +0000 (11:52 +0000)]
Rename the Bluetooth profile classes for HID Device role.
We already have BluetoothInputDevice class, so adding something
called BluetoothHidDevice seems confusing. On the other hand,
the new class is designed to connect to HID Host devices, so
naming it BluetoothInputHost makes sense and goes in line with
the existing BluetoothInputDevice.
The same goes for the new constant HID_DEVICE that is just as
confusing to have together with the INPUT_DEVICE one.
This CL also renames the "connection state changed" broadcast
(for the same reasons), declares it as an SDK constant, and also
adds some javadoc to it.
Note that BluetoothHidDeviceApp* classes remained unchanged, as
those correspond to the app that implements the Device (and
connects to the Host).
Test: make
Change-Id: I5075ca5b97db3c1dd403c2e9660eecc7380cffe2
Hemant Gupta [Fri, 18 Apr 2014 05:52:45 +0000 (11:22 +0530)]
Bluetooth: Add support for HID Device Role
This patch adds the HID Device Role support in Bluetooth framework.
Also AIDL and callback related files for HID Device role are added
to provide interface for third party applications to communicate with
HID Device Service.
Change-Id: Id03a362b7bcfa2e76056fa0197eaac12ce49b5a2
Ivan Podogov [Thu, 29 Dec 2016 11:03:21 +0000 (11:03 +0000)]
Merge "In permission review mode, always request user's consent to toggle BT."
am:
895e2d7a40 -s ours
Change-Id: Id2deabb5875b0ca13bb818a7c65893e01dc655e2
Ivan Podogov [Thu, 29 Dec 2016 10:18:10 +0000 (10:18 +0000)]
Merge "In permission review mode, always request user's consent to toggle BT."
Martijn Coenen [Thu, 29 Dec 2016 09:04:49 +0000 (09:04 +0000)]
Merge "Add (un)linkToDeath support to HwBinder."
am:
7705363166
Change-Id: I007b2fc2982d164176607cd8f2d0ccc9ebde982c
Martijn Coenen [Thu, 29 Dec 2016 08:07:44 +0000 (08:07 +0000)]
Merge "Add (un)linkToDeath support to HwBinder."
Martijn Coenen [Tue, 27 Dec 2016 13:33:09 +0000 (14:33 +0100)]
Add (un)linkToDeath support to HwBinder.
This is mostly copied over from binder's existing
death recipient support. The implementation keeps
a list of registered recipients, both for being
able to map a native recipient back to the corresponding
Java recipient, as well as being able to unregister
recipients correctly.
Test: mma, hidl_test_java
Bug:
31632518
Change-Id: Id313fd248be6925056c4ade8298fe5fb04e007cc
ashutoshj [Thu, 29 Dec 2016 01:38:30 +0000 (01:38 +0000)]
Merge "Change the name of the contexthub service."
am:
fba752e64c
Change-Id: Ie354f06495f0c3fb73aa053956ecc371716bab3f
ashutoshj [Thu, 29 Dec 2016 01:29:41 +0000 (01:29 +0000)]
Merge "Change the name of the contexthub service."
Adrian Roos [Wed, 28 Dec 2016 23:43:46 +0000 (23:43 +0000)]
Merge "QS - Fix race condition in accessibility"
am:
302efd6125
Change-Id: I13c4959fde96684c52124ff8809d6921fc404a42
Adrian Roos [Wed, 28 Dec 2016 23:29:58 +0000 (23:29 +0000)]
Merge "QS - Fix race condition in accessibility"
Ashutosh Joshi [Tue, 27 Dec 2016 17:32:49 +0000 (09:32 -0800)]
Change the name of the contexthub service.
Change the name used by the contexthub service. Specifically, this
change switches from using the "ContexthubService.CONTEXTHUB_SERVICE"
constant to using the "Context.CONTEXTHUB_SERVICE" constant- which is in
line with the other Android services.
Merged-In: I18ae73ed0fda2f938e3233670dc52b5692d321ae
Test: GTS tests pass.
Change-Id: I18ae73ed0fda2f938e3233670dc52b5692d321ae
Jeremy Joslin [Wed, 28 Dec 2016 20:03:05 +0000 (20:03 +0000)]
Merge "Cleanup the evaluateBinding() method."
am:
c26aa87a2b
Change-Id: Iaac51cf5114ed6af55246b3580b9f5403a1bb3bd
Treehugger Robot [Wed, 28 Dec 2016 19:52:41 +0000 (19:52 +0000)]
Merge "Cleanup the evaluateBinding() method."
Jeremy Joslin [Wed, 21 Dec 2016 21:35:02 +0000 (13:35 -0800)]
Cleanup the evaluateBinding() method.
Small refactor to remove 1 level of nesting.
Test: build, run.
Change-Id: Ic46a65036b207ff73fefced914e0928de2f2b500
Merged-In: I38836ca9d18c5fcd3c6edf5931b58de3b08614ee
Ivan Podogov [Mon, 5 Dec 2016 16:46:52 +0000 (16:46 +0000)]
In permission review mode, always request user's consent to toggle BT.
Bug:
33155221
Test: Manual: flash the watch, check that the consent UI was
displayed in both apps (the one with CompileSDK=21 and
TargetSDK=21, and the one with CompileSDK=25 and
TargetSDK=25).
Change-Id: Ic1ed987bbaf282892a2aef354a8ca0add2c829ba
Joe LaPenna [Wed, 28 Dec 2016 02:49:01 +0000 (02:49 +0000)]
Merge "Send RECOMMEND_NETWORKS action when binding to provider."
am:
1471ad3ea7
Change-Id: I9b052e48c067dc50111c6ce6bf1b200232676aa2
Treehugger Robot [Wed, 28 Dec 2016 02:36:22 +0000 (02:36 +0000)]
Merge "Send RECOMMEND_NETWORKS action when binding to provider."
Joe LaPenna [Tue, 27 Dec 2016 22:50:14 +0000 (14:50 -0800)]
Send RECOMMEND_NETWORKS action when binding to provider.
Some services use action to disambiguate which binder to return in
onBind.
Test: built && installed && bound.
BUG:
33905890
Change-Id: I83ae41b472c597661b93f5467b64b258e9056f5f
Merged-In: I83ae41b472c597661b93f5467b64b258e9056f5f
Jorim Jaggi [Tue, 27 Dec 2016 16:23:49 +0000 (16:23 +0000)]
Merge "Fix window transformation related issue"
am:
8760e60da5
Change-Id: I686b637ea76402c4d4c666b60ece83755a24a5d1
Jorim Jaggi [Tue, 27 Dec 2016 16:08:43 +0000 (16:08 +0000)]
Merge "Fix window transformation related issue"
dooyoung.hwang [Thu, 22 Dec 2016 11:04:20 +0000 (20:04 +0900)]
QS - Fix race condition in accessibility
When users try to open panel, initialization of accessibility is called
in Main Thread by this callstack.
at android.view.ViewGroup.buildOrderedChildList
at android.view.View.populateAccessibilityNodeInfoDrawingOrderInParent
at android.view.View.onInitializeAccessibilityNodeInfoInternal
at android.view.View.onInitializeAccessibilityNodeInfo
at android.view.View.createAccessibilityNodeInfoInternal
at android.view.View.createAccessibilityNodeInfo
at android.view.accessibility.AccessibilityRecord.setSource
...
at android.view.View.setFlags
at android.view.View.setVisibility
at com.android.systemui.qs.QSContainer.updateQsState
at com.android.systemui.qs.QSContainer.setExpanded
at com.android.systemui.statusbar.phone.NotificationPanelView.updateQsState
And another initialization is tried in QSTileHost Thread by this callstack.
at android.view.ViewGroup.buildOrderedChildList
at android.view.View.populateAccessibilityNodeInfoDrawingOrderInParent
at android.view.View.onInitializeAccessibilityNodeInfoInternal
at android.view.ViewGroup.onInitializeAccessibilityNodeInfoInternal
at android.view.View.onInitializeAccessibilityNodeInfo
at android.view.View.createAccessibilityNodeInfoInternal
at android.view.View.createAccessibilityNodeInfo
at android.view.accessibility.AccessibilityRecord.setSource
...
at android.view.View.announceForAccessibility
at com.android.systemui.qs.QSPanel.onAnnouncementRequested
at com.android.systemui.qs.QSTile.handleStateChanged
This race condition can cause crashes, because the same ArrayList
(mPreSortedChildren or mTempArrayList in ViewGroup) is modified by two
different thread.
Test : manual
Change-Id: I9e0ad1fef4be7dc378463c06d10854e0e4c5b3d6
Joe LaPenna [Thu, 22 Dec 2016 21:41:23 +0000 (21:41 +0000)]
Merge "Add simplified_network_settings_bool to CarrierConfig."
am:
4ce798f45f
Change-Id: I7343422cd3405628d6c2b90092af631b77eb37a7
Treehugger Robot [Thu, 22 Dec 2016 21:29:56 +0000 (21:29 +0000)]
Merge "Add simplified_network_settings_bool to CarrierConfig."
Steven Moreland [Thu, 22 Dec 2016 20:48:17 +0000 (20:48 +0000)]
Merge "HwBinder: fail gracefully for device w/o hwbinder"
am:
380697ca79
Change-Id: I301b1f9e9344a8b314a6debff3fef2e7c8362f1a
Treehugger Robot [Thu, 22 Dec 2016 20:41:01 +0000 (20:41 +0000)]
Merge "HwBinder: fail gracefully for device w/o hwbinder"
Joe LaPenna [Thu, 22 Dec 2016 04:17:08 +0000 (20:17 -0800)]
Add simplified_network_settings_bool to CarrierConfig.
Some carriers want to further simplify network settings based on a
variety of wifi or cellular related bundles. Expose a config a
carrier might set to allow SysUi, Settings and platform to adjust.
BUG:
33111931
Test: runtest carrierconfig-unit
Change-Id: I35a7ef15bbba23cf9e0380432fc001804c7e1804
Merged-In: I35a7ef15bbba23cf9e0380432fc001804c7e1804
Alex Klyubin [Thu, 22 Dec 2016 19:10:00 +0000 (19:10 +0000)]
Merge "Make users of MtpServer fill in DeviceInfo field values"
am:
933ea68aca
Change-Id: Iacecf43819f8cd6c0e8df7a53105e0538075c188
Sundeep Ghuman [Thu, 22 Dec 2016 19:05:44 +0000 (19:05 +0000)]
Merge "Fix failing WifiNetworkScoreCacheTest."
am:
5e055b6a18
Change-Id: I52e23144730acc15c943fa6485a872a88ee0a787
Sundeep Ghuman [Thu, 22 Dec 2016 19:04:22 +0000 (19:04 +0000)]
Merge "Cherrypick: Define the calculateRankingScore method and Key."
am:
425af45d02
Change-Id: Ib61f91087967f1b026cd2ba77175ccf47943bc53
Jeremy Joslin [Thu, 22 Dec 2016 19:02:45 +0000 (19:02 +0000)]
Merge changes I40f055df,I562713df
am:
4a04c07df4
Change-Id: Ie951518a0a472691d1cd8b90a025e3a67b1acd53
Jeremy Joslin [Thu, 22 Dec 2016 19:02:38 +0000 (19:02 +0000)]
Stay bound to the most current active scorer.
am:
b1365852cc
Change-Id: I8313d23450b47f23f73eb050e6b4244bc0d37622
Jeremy Joslin [Thu, 22 Dec 2016 19:01:43 +0000 (19:01 +0000)]
Clear and restore the calling ID.
am:
29ed4a99bf
Change-Id: Ie5752ca772e6f5c8fed8092d23e0604f44598b24
Alex Klyubin [Thu, 22 Dec 2016 18:20:23 +0000 (10:20 -0800)]
resolve merge conflicts of
febd982 to stage-aosp-master
Change-Id: I40c27e3159b8f7acd60c6fa42509bb23d146b937
Alex Klyubin [Thu, 22 Dec 2016 17:06:06 +0000 (17:06 +0000)]
Merge "Make users of MtpServer fill in DeviceInfo field values"
Treehugger Robot [Thu, 22 Dec 2016 03:11:57 +0000 (03:11 +0000)]
Merge "Fix failing WifiNetworkScoreCacheTest."
Sundeep Ghuman [Thu, 22 Dec 2016 00:44:46 +0000 (16:44 -0800)]
Fix failing WifiNetworkScoreCacheTest.
There was a NPE thrown by an unintialized mock.
Bug:
33818187
Test: Android unit tests
Change-Id: I478885dcebaf41f93488a6a12bb83652ad462be5
Treehugger Robot [Thu, 22 Dec 2016 00:03:56 +0000 (00:03 +0000)]
Merge "Cherrypick: Define the calculateRankingScore method and Key."
Treehugger Robot [Wed, 21 Dec 2016 22:58:40 +0000 (22:58 +0000)]
Merge changes I40f055df,I562713df
* changes:
Stay bound to the most current active scorer.
Clear and restore the calling ID.
Sundeep Ghuman [Wed, 7 Dec 2016 21:32:33 +0000 (13:32 -0800)]
Cherrypick: Define the calculateRankingScore method and Key.
Define the key to be used to store the rankingScoreOffset inside the
ScoredNetwork bundle. Implement a platform API method to calculate the
ranking score for a given rssi.
OCL: ag/
1688711
Bug:
33049302
Test: Unit tests
Change-Id: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Merged-In: Ia3fea2197d7c211a2313fced8713d79d8d5f4f6e
Topic: ScoredNetworkRankingScore
Alex Klyubin [Wed, 21 Dec 2016 19:19:52 +0000 (11:19 -0800)]
Make users of MtpServer fill in DeviceInfo field values
This is part of weaning apps off accessing system identifiers via
system properties API. Apps should use android.os.Build API instead.
Bug:
33700679
Test: Enable MTP mode then check that mtp-detect output same as before this commit
Change-Id: I4e6696cdee18b9c3e987c432c095911e85a997db
Jeremy Joslin [Wed, 21 Dec 2016 00:59:26 +0000 (16:59 -0800)]
Stay bound to the most current active scorer.
This fixes the following issue:
1) Scorer A is active and bound.
2) A change occurs to Scorer A such that it is no longer the selected
scorer.
3) Scorer B is selected as the scorer and returned whenever
getActiveScorer() is queried.
4) Scorer A is never unbound because it isn't seen as the active
scorer.
5) Scorer B is never bound until its package changes in some way (or
the feature is disabled/enabled).
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest + manual testing.
Change-Id: I40f055df472e2b9e7b07e6979a841dd4c0b794ce
Merged-In: I468a8c02a72f089f1fb778d150d945efe5485b88
Jeremy Joslin [Tue, 20 Dec 2016 22:36:20 +0000 (14:36 -0800)]
Clear and restore the calling ID.
Clear and restore the calling identity in IPC methods after asserting
the caller has the required permissions.
Fixed 2 tests in NetworkScoreServiceTest that were failing due to a
recent refactor.
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
BUG:
33781319
Change-Id: I562713df3d9455cdc02bf80a687940fb9daecd8f
Merged-In: Icd79751d12dcfe4af8026980aaa1f7bd463468dc