Home
last modified time | relevance | path

Searched refs:BluetoothSinkAudioPolicy (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothSinkAudioPolicy.java57 public final class BluetoothSinkAudioPolicy implements Parcelable { class
114 public BluetoothSinkAudioPolicy( in BluetoothSinkAudioPolicy() method in BluetoothSinkAudioPolicy
181 public static final @android.annotation.NonNull Parcelable.Creator<BluetoothSinkAudioPolicy>
183 new Parcelable.Creator<BluetoothSinkAudioPolicy>() {
185 public BluetoothSinkAudioPolicy createFromParcel(@NonNull Parcel in) {
186 return new BluetoothSinkAudioPolicy(
191 public BluetoothSinkAudioPolicy[] newArray(int size) {
192 return new BluetoothSinkAudioPolicy[size];
211 if (o instanceof BluetoothSinkAudioPolicy) { in equals()
212 BluetoothSinkAudioPolicy other = (BluetoothSinkAudioPolicy) o; in equals()
[all …]
DBluetoothDevice.java3478 @NonNull BluetoothSinkAudioPolicy policies) { in requestAudioPolicyAsSink()
3519 public @Nullable BluetoothSinkAudioPolicy getRequestedAudioPolicyAsSink() { in getRequestedAudioPolicyAsSink()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/storage/
DAudioPolicyEntityTest.java21 import android.bluetooth.BluetoothSinkAudioPolicy;
33 .isEqualTo(BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED); in constructor()
35 .isEqualTo(BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED); in constructor()
37 .isEqualTo(BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED); in constructor()
DDatabaseManagerTest.java34 import android.bluetooth.BluetoothSinkAudioPolicy;
509 BluetoothSinkAudioPolicy value = in testSetGetAudioPolicyMetaData()
510 new BluetoothSinkAudioPolicy.Builder() in testSetGetAudioPolicyMetaData()
511 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testSetGetAudioPolicyMetaData()
513 BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) in testSetGetAudioPolicyMetaData()
514 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testSetGetAudioPolicyMetaData()
1722 boolean stored, BluetoothSinkAudioPolicy policy, boolean expectedResult) { in testSetGetAudioPolicyMetadataCase()
1723 BluetoothSinkAudioPolicy testPolicy = new BluetoothSinkAudioPolicy.Builder().build(); in testSetGetAudioPolicyMetadataCase()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/storage/
DAudioPolicyEntity.java19 import android.bluetooth.BluetoothSinkAudioPolicy;
36 callEstablishAudioPolicy = BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED; in AudioPolicyEntity()
37 connectingTimeAudioPolicy = BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED; in AudioPolicyEntity()
38 inBandRingtoneAudioPolicy = BluetoothSinkAudioPolicy.POLICY_UNCONFIGURED; in AudioPolicyEntity()
DDatabaseManager.java26 import android.bluetooth.BluetoothSinkAudioPolicy;
287 BluetoothDevice device, BluetoothSinkAudioPolicy policies) { in setAudioPolicyMetadata()
311 public BluetoothSinkAudioPolicy getAudioPolicyMetadata(BluetoothDevice device) { in getAudioPolicyMetadata()
326 return new BluetoothSinkAudioPolicy.Builder() in getAudioPolicyMetadata()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java35 import android.bluetooth.BluetoothSinkAudioPolicy;
169 private BluetoothSinkAudioPolicy mHsClientAudioPolicy;
913 mHsClientAudioPolicy = new BluetoothSinkAudioPolicy.Builder().build(); in HeadsetClientStateMachine()
2179 if (featureId.equals(BluetoothSinkAudioPolicy.HFP_SET_SINK_AUDIO_POLICY_ID)) { in processAndroidAtFeature()
2182 + BluetoothSinkAudioPolicy.HFP_SET_SINK_AUDIO_POLICY_ID in processAndroidAtFeature()
2189 new BluetoothSinkAudioPolicy.Builder(mHsClientAudioPolicy) in processAndroidAtFeature()
2382 ? BluetoothSinkAudioPolicy.POLICY_ALLOWED in setAudioRouteAllowed()
2383 : BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED; in setAudioRouteAllowed()
2397 ? BluetoothSinkAudioPolicy.POLICY_ALLOWED in setAudioRouteAllowed()
2401 new BluetoothSinkAudioPolicy.Builder(mHsClientAudioPolicy) in setAudioRouteAllowed()
[all …]
DHeadsetClientService.java26 import android.bluetooth.BluetoothSinkAudioPolicy;
825 public void setAudioPolicy(BluetoothDevice device, BluetoothSinkAudioPolicy policies) { in setAudioPolicy()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientServiceTest.java31 import android.bluetooth.BluetoothSinkAudioPolicy;
153 mService.setAudioPolicy(device, new BluetoothSinkAudioPolicy.Builder().build()); in testSetCallAudioPolicy()
156 .setAudioPolicy(any(BluetoothSinkAudioPolicy.class)); in testSetCallAudioPolicy()
DHeadsetClientStateMachineTest.java41 import android.bluetooth.BluetoothSinkAudioPolicy;
1382 BluetoothSinkAudioPolicy dummyAudioPolicy = new BluetoothSinkAudioPolicy.Builder().build();
1398 BluetoothSinkAudioPolicy dummyAudioPolicy =
1399 new BluetoothSinkAudioPolicy.Builder()
1400 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED)
1402 BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED)
1403 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED)
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java22 import android.bluetooth.BluetoothSinkAudioPolicy;
123 BluetoothSinkAudioPolicy callAudioPolicy = in answerCall()
127 != BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) { in answerCall()
DHeadsetStateMachine.java32 import android.bluetooth.BluetoothSinkAudioPolicy;
151 private BluetoothSinkAudioPolicy mHsClientAudioPolicy;
206 BluetoothSinkAudioPolicy storedAudioPolicy = in HeadsetStateMachine()
210 mHsClientAudioPolicy = new BluetoothSinkAudioPolicy.Builder().build(); in HeadsetStateMachine()
2381 if (type.equals(BluetoothSinkAudioPolicy.HFP_SET_SINK_AUDIO_POLICY_ID)) { in checkAndProcessAndroidAt()
2410 + BluetoothSinkAudioPolicy.HFP_SET_SINK_AUDIO_POLICY_ID in processAndroidAtFeatureRequest()
2452 new BluetoothSinkAudioPolicy.Builder() in processAndroidAtSinkAudioPolicy()
2465 public void setHfpCallAudioPolicy(BluetoothSinkAudioPolicy policies) { in setHfpCallAudioPolicy()
2471 public BluetoothSinkAudioPolicy getHfpCallAudioPolicy() { in getHfpCallAudioPolicy()
DHeadsetService.java34 import android.bluetooth.BluetoothSinkAudioPolicy;
1335 public BluetoothSinkAudioPolicy getHfpCallAudioPolicy(BluetoothDevice device) { in getHfpCallAudioPolicy()
2054 BluetoothSinkAudioPolicy currentPolicy = stateMachine.getHfpCallAudioPolicy(); in phoneStateChanged()
2057 == BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) { in phoneStateChanged()
2143 BluetoothSinkAudioPolicy callAudioPolicy = getHfpCallAudioPolicy(connectedDevice); in isInbandRingingEnabled()
2146 == BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) { in isInbandRingingEnabled()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java13 import android.bluetooth.BluetoothSinkAudioPolicy;
771 BluetoothSinkAudioPolicy policies = in testSetgetHfAudioPolicyForRemoteAg()
772 new BluetoothSinkAudioPolicy.Builder() in testSetgetHfAudioPolicyForRemoteAg()
773 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testSetgetHfAudioPolicyForRemoteAg()
775 BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testSetgetHfAudioPolicyForRemoteAg()
776 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testSetgetHfAudioPolicyForRemoteAg()
DAudioRoutingManagerTest.java37 import android.bluetooth.BluetoothSinkAudioPolicy;
152 .thenReturn(new BluetoothSinkAudioPolicy.Builder().build()); in setUp()
509 new BluetoothSinkAudioPolicy.Builder() in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
510 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
512 BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
513 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
DActiveDeviceManagerTest.java41 import android.bluetooth.BluetoothSinkAudioPolicy;
156 .thenReturn(new BluetoothSinkAudioPolicy.Builder().build()); in setUp()
579 new BluetoothSinkAudioPolicy.Builder() in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
580 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
582 BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
583 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in notAllowedConnectingPolicyHeadsetConnected_noSetActiveDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java38 import android.bluetooth.BluetoothSinkAudioPolicy;
135 doReturn(new BluetoothSinkAudioPolicy.Builder().build()) in setUp()
1295 new BluetoothSinkAudioPolicy.Builder() in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1296 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1298 BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1299 .setInBandRingtonePolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1305 new BluetoothSinkAudioPolicy.Builder() in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1306 .setCallEstablishPolicy(BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1308 BluetoothSinkAudioPolicy.POLICY_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
1310 BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) in testConnectDeviceNotAllowedInbandRingPolicy_InbandRingStatus()
DHeadsetServiceAndStateMachineTest.java36 import android.bluetooth.BluetoothSinkAudioPolicy;
146 doReturn(new BluetoothSinkAudioPolicy.Builder().build()) in setUp()
/packages/modules/Bluetooth/android/app/aidl/android/bluetooth/
DBluetoothSinkAudioPolicy.aidl19 parcelable BluetoothSinkAudioPolicy;
DIBluetooth.aidl30 import android.bluetooth.BluetoothSinkAudioPolicy;
266 …int requestAudioPolicyAsSink(in BluetoothDevice device, in BluetoothSinkAudioPolicy policies, in A… in requestAudioPolicyAsSink()
268BluetoothSinkAudioPolicy getRequestedAudioPolicyAsSink(in BluetoothDevice device, in AttributionSo… in getRequestedAudioPolicyAsSink()
DIBluetoothHeadsetClient.aidl20 import android.bluetooth.BluetoothSinkAudioPolicy;
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java29 import android.bluetooth.BluetoothSinkAudioPolicy;
706 BluetoothSinkAudioPolicy audioPolicy = service.getHfpCallAudioPolicy(device); in shouldActivateWhenConnected()
709 == BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) { in shouldActivateWhenConnected()
DActiveDeviceManager.java28 import android.bluetooth.BluetoothSinkAudioPolicy;
923 BluetoothSinkAudioPolicy audioPolicy = headsetService.getHfpCallAudioPolicy(device); in setHfpActiveDevice()
926 == BluetoothSinkAudioPolicy.POLICY_NOT_ALLOWED) { in setHfpActiveDevice()
DRemoteDevices.java33 import android.bluetooth.BluetoothSinkAudioPolicy;
294 private BluetoothSinkAudioPolicy mAudioPolicy;
660 public void setHfAudioPolicyForRemoteAg(BluetoothSinkAudioPolicy policies) { in setHfAudioPolicyForRemoteAg()
664 public BluetoothSinkAudioPolicy getHfAudioPolicyForRemoteAg() { in getHfAudioPolicyForRemoteAg()
/packages/modules/Bluetooth/framework/api/
Dsystem-current.txt203 …fest.permission.BLUETOOTH_PRIVILEGED}) public android.bluetooth.BluetoothSinkAudioPolicy getReques…
212 …VILEGED}) public int requestAudioPolicyAsSink(@NonNull android.bluetooth.BluetoothSinkAudioPolicy);
997 public final class BluetoothSinkAudioPolicy implements android.os.Parcelable {
1003 …lic static final android.os.Parcelable.Creator<android.bluetooth.BluetoothSinkAudioPolicy> CREATOR;
1009 public static final class BluetoothSinkAudioPolicy.Builder {
1010 ctor public BluetoothSinkAudioPolicy.Builder();
1011 … ctor public BluetoothSinkAudioPolicy.Builder(@NonNull android.bluetooth.BluetoothSinkAudioPolicy);
1012 method @NonNull public android.bluetooth.BluetoothSinkAudioPolicy build();
1013 …method @NonNull public android.bluetooth.BluetoothSinkAudioPolicy.Builder setActiveDevicePolicyAft…
1014 …method @NonNull public android.bluetooth.BluetoothSinkAudioPolicy.Builder setCallEstablishPolicy(i…
[all …]

12