Home
last modified time | relevance | path

Searched refs:ParcelUuid (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/java/android/bluetooth/
DBluetoothUuid.java19 import android.os.ParcelUuid;
40 public static final ParcelUuid AudioSink =
41 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB");
42 public static final ParcelUuid AudioSource =
43 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB");
44 public static final ParcelUuid AdvAudioDist =
45 ParcelUuid.fromString("0000110D-0000-1000-8000-00805F9B34FB");
46 public static final ParcelUuid HSP =
47 ParcelUuid.fromString("00001108-0000-1000-8000-00805F9B34FB");
48 public static final ParcelUuid HSP_AG =
[all …]
DBluetoothGattIncludedService.java19 import android.os.ParcelUuid;
62 out.writeParcelable(new ParcelUuid(mUuid), 0); in writeToParcel()
79 mUuid = ((ParcelUuid) in.readParcelable(null)).getUuid(); in BluetoothGattIncludedService()
DBluetoothGattDescriptor.java20 import android.os.ParcelUuid;
172 out.writeParcelable(new ParcelUuid(mUuid), 0); in writeToParcel()
189 mUuid = ((ParcelUuid) in.readParcelable(null)).getUuid(); in BluetoothGattDescriptor()
DBluetoothGattService.java19 import android.os.ParcelUuid;
152 out.writeParcelable(new ParcelUuid(mUuid), 0); in writeToParcel()
178 mUuid = ((ParcelUuid) in.readParcelable(null)).getUuid(); in BluetoothGattService()
/frameworks/base/core/java/android/os/
DParcelUuid.java26 public final class ParcelUuid implements Parcelable { class
36 public ParcelUuid(UUID uuid) { in ParcelUuid() method in ParcelUuid
51 public static ParcelUuid fromString(String uuid) { in fromString()
52 return new ParcelUuid(UUID.fromString(uuid)); in fromString()
101 if (!(object instanceof ParcelUuid)) { in equals()
105 ParcelUuid that = (ParcelUuid) object; in equals()
110 public static final Parcelable.Creator<ParcelUuid> CREATOR =
111 new Parcelable.Creator<ParcelUuid>() {
112 public ParcelUuid createFromParcel(Parcel source) {
116 return new ParcelUuid(uuid);
[all …]
/frameworks/base/core/java/android/bluetooth/le/
DAdvertiseData.java21 import android.os.ParcelUuid;
44 private final List<ParcelUuid> mServiceUuids;
47 private final Map<ParcelUuid, byte[]> mServiceData;
51 private AdvertiseData(List<ParcelUuid> serviceUuids, in AdvertiseData()
53 Map<ParcelUuid, byte[]> serviceData, in AdvertiseData() argument
67 public List<ParcelUuid> getServiceUuids() { in getServiceUuids()
82 public Map<ParcelUuid, byte[]> getServiceData() { in getServiceData()
145 dest.writeTypedArray(mServiceUuids.toArray(new ParcelUuid[mServiceUuids.size()]), flags); in writeToParcel()
154 for (ParcelUuid uuid : mServiceData.keySet()) { in writeToParcel()
172 ArrayList<ParcelUuid> uuids = in.createTypedArrayList(ParcelUuid.CREATOR);
[all …]
DScanFilter.java23 import android.os.ParcelUuid;
56 private final ParcelUuid mServiceUuid;
58 private final ParcelUuid mServiceUuidMask;
61 private final ParcelUuid mServiceDataUuid;
77 private ScanFilter(String name, String deviceAddress, ParcelUuid uuid, in ScanFilter()
78 ParcelUuid uuidMask, ParcelUuid serviceDataUuid, in ScanFilter()
166 ParcelUuid uuid = in.readParcelable(ParcelUuid.class.getClassLoader());
169 ParcelUuid uuidMask = in.readParcelable(
170 ParcelUuid.class.getClassLoader());
175 ParcelUuid servcieDataUuid =
[all …]
DScanRecord.java21 import android.os.ParcelUuid;
59 private final List<ParcelUuid> mServiceUuids;
63 private final Map<ParcelUuid, byte[]> mServiceData;
86 public List<ParcelUuid> getServiceUuids() { in getServiceUuids()
110 public Map<ParcelUuid, byte[]> getServiceData() { in getServiceData()
119 public byte[] getServiceData(ParcelUuid serviceDataUuid) { in getServiceData()
152 private ScanRecord(List<ParcelUuid> serviceUuids, in ScanRecord()
154 Map<ParcelUuid, byte[]> serviceData, in ScanRecord() argument
184 List<ParcelUuid> serviceUuids = new ArrayList<ParcelUuid>(); in parseFromBytes()
189 Map<ParcelUuid, byte[]> serviceData = new ArrayMap<ParcelUuid, byte[]>(); in parseFromBytes()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothUuidTest.java19 import android.os.ParcelUuid;
36 assertEquals(ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"), in testUuidParser()
41 assertEquals(ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"), in testUuidParser()
47 assertEquals(ParcelUuid.fromString("FF0F0E0D-0C0B-0A09-0807-0060504030201"), in testUuidParser()
54 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
56 ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
59 ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
61 ParcelUuid.fromString("FE33110B-0000-1000-8000-00805F9B34FB"))); in testUuidType()
63 ParcelUuid.fromString("FE33110B-1000-1000-8000-00805F9B34FB"))); in testUuidType()
/frameworks/base/core/java/com/android/internal/app/
DISoundTriggerService.aidl24 import android.os.ParcelUuid;
32 SoundTrigger.GenericSoundModel getSoundModel(in ParcelUuid soundModelId); in getSoundModel()
36 void deleteSoundModel(in ParcelUuid soundModelId); in deleteSoundModel()
38 int startRecognition(in ParcelUuid soundModelId, in IRecognitionStatusCallback callback, in startRecognition()
41 int stopRecognition(in ParcelUuid soundModelId, in IRecognitionStatusCallback callback); in stopRecognition()
46 int startRecognitionForIntent(in ParcelUuid soundModelId, in PendingIntent callbackIntent, in startRecognitionForIntent()
50 int startRecognitionForService(in ParcelUuid soundModelId, in Bundle params, in startRecognitionForService()
54 int stopRecognitionForIntent(in ParcelUuid soundModelId); in stopRecognitionForIntent()
56 int unloadSoundModel(in ParcelUuid soundModelId); in unloadSoundModel()
59 boolean isRecognitionActive(in ParcelUuid parcelUuid); in isRecognitionActive()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DAdvertiseDataTest.java20 import android.os.ParcelUuid;
80 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testEmptyServiceData()
95 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceUuid()
96 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testServiceUuid()
111 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testManufacturerData()
112 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testManufacturerData()
132 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceData()
DScanFilterTest.java24 import android.os.ParcelUuid;
82 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
86 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
90 .setServiceUuid(ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB"), in testsetServiceUuidFilter()
91 ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF")) in testsetServiceUuidFilter()
100 ParcelUuid serviceDataUuid = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testsetServiceDataFilter()
166 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testReadWriteParcel()
170 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB"), in testReadWriteParcel()
171 ParcelUuid.fromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF")).build(); in testReadWriteParcel()
177 ParcelUuid serviceDataUuid = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testReadWriteParcel()
DScanRecordTest.java20 import android.os.ParcelUuid;
48 ParcelUuid uuid1 = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testParser()
49 ParcelUuid uuid2 = ParcelUuid.fromString("0000110B-0000-1000-8000-00805F9B34FB"); in testParser()
/frameworks/base/core/java/android/companion/
DBluetoothDeviceFilter.java30 import android.os.ParcelUuid;
48 private final List<ParcelUuid> mServiceUuids;
49 private final List<ParcelUuid> mServiceUuidMasks;
54 List<ParcelUuid> serviceUuids, in BluetoothDeviceFilter()
55 List<ParcelUuid> serviceUuidMasks) { in BluetoothDeviceFilter()
70 private static List<ParcelUuid> readUuids(Parcel in) { in readUuids()
71 return in.readParcelableList(new ArrayList<>(), ParcelUuid.class.getClassLoader()); in readUuids()
108 public List<ParcelUuid> getServiceUuids() { in getServiceUuids()
114 public List<ParcelUuid> getServiceUuidMasks() { in getServiceUuidMasks()
166 private ArrayList<ParcelUuid> mServiceUuid;
[all …]
DBluetoothDeviceFilterUtils.java27 import android.os.ParcelUuid;
66 static boolean matchesServiceUuids(List<ParcelUuid> serviceUuids, in matchesServiceUuids()
67 List<ParcelUuid> serviceUuidMasks, BluetoothDevice device) { in matchesServiceUuids()
69 ParcelUuid uuid = serviceUuids.get(i); in matchesServiceUuids()
70 ParcelUuid uuidMask = serviceUuidMasks.get(i); in matchesServiceUuids()
78 static boolean matchesServiceUuid(ParcelUuid serviceUuid, ParcelUuid serviceUuidMask, in matchesServiceUuid()
/frameworks/base/media/java/android/media/soundtrigger/
DISoundTriggerDetectionService.aidl22 import android.os.ParcelUuid;
30 …void setClient(in ParcelUuid uuid, in Bundle params, in ISoundTriggerDetectionServiceClient client… in setClient()
31 void removeClient(in ParcelUuid uuid); in removeClient()
32 …void onGenericRecognitionEvent(in ParcelUuid uuid, int opId, in SoundTrigger.GenericRecognitionEve… in onGenericRecognitionEvent()
33 void onError(in ParcelUuid uuid, int opId, int status); in onError()
34 void onStopOperation(in ParcelUuid uuid, int opId); in onStopOperation()
DSoundTriggerManager.java36 import android.os.ParcelUuid;
99 new ParcelUuid(soundModelId))); in getModel()
111 mSoundTriggerService.deleteSoundModel(new ParcelUuid(soundModelId)); in deleteModel()
276 return mSoundTriggerService.startRecognitionForIntent(new ParcelUuid(soundModelId), in startRecognition()
310 return mSoundTriggerService.startRecognitionForService(new ParcelUuid(soundModelId), in startRecognition()
327 return mSoundTriggerService.stopRecognitionForIntent(new ParcelUuid(soundModelId)); in stopRecognition()
344 new ParcelUuid(soundModelId)); in unloadSoundModel()
361 new ParcelUuid(soundModelId)); in isRecognitionActive()
DSoundTriggerDetectionService.java33 import android.os.ParcelUuid;
218 public void setClient(ParcelUuid puuid, Bundle params, in onBind()
231 public void removeClient(ParcelUuid puuid) { in onBind()
244 public void onGenericRecognitionEvent(ParcelUuid puuid, int opId, in onBind()
259 public void onError(ParcelUuid puuid, int opId, int status) { in onBind()
272 public void onStopOperation(ParcelUuid puuid, int opId) { in onBind()
DSoundTriggerDetector.java32 import android.os.ParcelUuid;
269 status = mSoundTriggerService.startRecognition(new ParcelUuid(mSoundModelId), in startRecognition()
285 status = mSoundTriggerService.stopRecognition(new ParcelUuid(mSoundModelId), in stopRecognition()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DLocalBluetoothProfileManagerTest.java38 import android.os.ParcelUuid;
99 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.AudioSource}); in updateLocalProfiles_addA2dpToLocalProfiles()
103 ParcelUuid[] uuids = mAdapter.getUuids(); in updateLocalProfiles_addA2dpToLocalProfiles()
117 ParcelUuid[] uuids = new ParcelUuid[]{BluetoothUuid.Hid}; in updateProfiles_addHidProfileForRemoteDevice()
118 ParcelUuid[] localUuids = new ParcelUuid[]{}; in updateProfiles_addHidProfileForRemoteDevice()
136 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.AudioSource}); in stateChangedHandler_receiveA2dpConnectionStateChanged_shouldDispatchCallback()
159 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.Handsfree_AG}); in stateChangedHandler_receiveHeadsetConnectionStateChanged_shouldDispatchCallback()
185 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.HearingAid}); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchCallback()
208 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.AudioSource}); in stateChangedHandler_receivePanConnectionStateChanged_shouldNotDispatchCallback()
253 when(mAdapter.getUuids()).thenReturn(new ParcelUuid[]{BluetoothUuid.AudioSource}); in stateChangedHandler_receivePanConnectionStateChangedWithUuids_shouldRefresh()
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java32 import android.os.ParcelUuid;
79 soundTriggerService.deleteSoundModel(new ParcelUuid(modelUuid)); in tearDown()
103 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testUpdateGenericSoundModel()
116 soundTriggerService.deleteSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel()
121 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel()
138 int r = soundTriggerService.startRecognition(new ParcelUuid(model.uuid), spyCallback, in testStartStopGenericSoundModel()
144 r = soundTriggerService.stopRecognition(new ParcelUuid(model.uuid), spyCallback); in testStartStopGenericSoundModel()
162 soundTriggerService.startRecognition(new ParcelUuid(model.uuid), spyCallback, config); in testTriggerGenericSoundModel()
234 int r = soundTriggerService.startRecognition(new ParcelUuid(modelInfo.model.uuid), in testFuzzGenericSoundModel()
252 int r = soundTriggerService.stopRecognition(new ParcelUuid(modelInfo.model.uuid), in testFuzzGenericSoundModel()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DBluetoothDeviceFilter.java22 import android.os.ParcelUuid;
100 abstract boolean matches(ParcelUuid[] uuids, BluetoothClass btClass); in matches()
110 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
131 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
145 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
159 boolean matches(ParcelUuid[] uuids, BluetoothClass btClass) { in matches()
DPbapServerProfile.java25 import android.os.ParcelUuid;
48 static final ParcelUuid[] PBAB_CLIENT_UUIDS = {
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
DSoundTriggerUtil.java26 import android.os.ParcelUuid;
83 model = mSoundTriggerService.getSoundModel(new ParcelUuid(modelId)); in getSoundModel()
104 mSoundTriggerService.deleteSoundModel(new ParcelUuid(modelId)); in deleteSoundModel()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
DSoundTriggerService.java63 import android.os.ParcelUuid;
179 public int startRecognition(ParcelUuid parcelUuid, IRecognitionStatusCallback callback, in startRecognition()
198 public int stopRecognition(ParcelUuid parcelUuid, IRecognitionStatusCallback callback) { in stopRecognition()
208 public SoundTrigger.GenericSoundModel getSoundModel(ParcelUuid soundModelId) { in getSoundModel()
228 public void deleteSoundModel(ParcelUuid soundModelId) { in deleteSoundModel()
297 public int startRecognitionForService(ParcelUuid soundModelId, Bundle params, in startRecognitionForService()
310 public int startRecognitionForIntent(ParcelUuid soundModelId, PendingIntent callbackIntent, in startRecognitionForIntent()
317 private int startRecognitionForInt(ParcelUuid soundModelId, in startRecognitionForInt()
368 public int stopRecognitionForIntent(ParcelUuid soundModelId) { in stopRecognitionForIntent()
415 public int unloadSoundModel(ParcelUuid soundModelId) { in unloadSoundModel()
[all …]

123