Home
last modified time | relevance | path

Searched refs:uuid (Results 1 – 25 of 187) sorted by relevance

12345678

/frameworks/base/core/java/android/bluetooth/
DBluetoothUuid.java111 public static boolean isAudioSource(ParcelUuid uuid) { in isAudioSource() argument
112 return uuid.equals(AudioSource); in isAudioSource()
115 public static boolean isAudioSink(ParcelUuid uuid) { in isAudioSink() argument
116 return uuid.equals(AudioSink); in isAudioSink()
120 public static boolean isAdvAudioDist(ParcelUuid uuid) { in isAdvAudioDist() argument
121 return uuid.equals(AdvAudioDist); in isAdvAudioDist()
124 public static boolean isHandsfree(ParcelUuid uuid) { in isHandsfree() argument
125 return uuid.equals(Handsfree); in isHandsfree()
128 public static boolean isHeadset(ParcelUuid uuid) { in isHeadset() argument
129 return uuid.equals(HSP); in isHeadset()
[all …]
DBluetoothGattDescriptor.java136 public BluetoothGattDescriptor(UUID uuid, int permissions) { in BluetoothGattDescriptor() argument
137 initDescriptor(null, uuid, 0, permissions); in BluetoothGattDescriptor()
148 /*package*/ BluetoothGattDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, in BluetoothGattDescriptor() argument
150 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor()
156 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { in BluetoothGattDescriptor() argument
157 initDescriptor(null, uuid, instance, permissions); in BluetoothGattDescriptor()
160 private void initDescriptor(BluetoothGattCharacteristic characteristic, UUID uuid, in initDescriptor() argument
163 mUuid = uuid; in initDescriptor()
DBluetoothGattService.java107 public BluetoothGattService(UUID uuid, int serviceType) { in BluetoothGattService() argument
109 mUuid = uuid; in BluetoothGattService()
121 /*package*/ BluetoothGattService(BluetoothDevice device, UUID uuid, in BluetoothGattService() argument
124 mUuid = uuid; in BluetoothGattService()
136 public BluetoothGattService(UUID uuid, int instanceId, int serviceType) { in BluetoothGattService() argument
138 mUuid = uuid; in BluetoothGattService()
255 /*package*/ BluetoothGattCharacteristic getCharacteristic(UUID uuid, int instanceId) { in getCharacteristic() argument
257 if (uuid.equals(characteristic.getUuid()) in getCharacteristic()
365 public BluetoothGattCharacteristic getCharacteristic(UUID uuid) { in getCharacteristic() argument
367 if (uuid.equals(characteristic.getUuid())) { in getCharacteristic()
/frameworks/base/media/java/android/media/soundtrigger/
DSoundTriggerDetectionService.java92 private void setClient(@NonNull UUID uuid, @Nullable Bundle params, in setClient() argument
94 if (DEBUG) Log.i(LOG_TAG, uuid + ": handle setClient"); in setClient()
97 mClients.put(uuid, client); in setClient()
99 onConnected(uuid, params); in setClient()
102 private void removeClient(@NonNull UUID uuid, @Nullable Bundle params) { in removeClient() argument
103 if (DEBUG) Log.i(LOG_TAG, uuid + ": handle removeClient"); in removeClient()
106 mClients.remove(uuid); in removeClient()
108 onDisconnected(uuid, params); in removeClient()
121 public void onConnected(@NonNull UUID uuid, @Nullable Bundle params) { in onConnected() argument
138 public void onDisconnected(@NonNull UUID uuid, @Nullable Bundle params) { in onDisconnected() argument
[all …]
DISoundTriggerDetectionService.aidl30 …void setClient(in ParcelUuid uuid, in Bundle params, in ISoundTriggerDetectionServiceClient client… in setClient() argument
31 void removeClient(in ParcelUuid uuid); in removeClient() argument
32 …void onGenericRecognitionEvent(in ParcelUuid uuid, int opId, in SoundTrigger.GenericRecognitionEve… in onGenericRecognitionEvent() argument
33 void onError(in ParcelUuid uuid, int opId, int status); in onError() argument
34 void onStopOperation(in ParcelUuid uuid, int opId); in onStopOperation() argument
/frameworks/av/media/libeffects/factory/
DEffectsFactoryState.c32 const effect_uuid_t *uuid, in findEffect() argument
51 if (uuid != NULL && memcmp(&d->uuid, uuid, sizeof(effect_uuid_t)) == 0) { in findEffect()
73 int stringToUuid(const char *str, effect_uuid_t *uuid) in stringToUuid() argument
81 uuid->timeLow = (uint32_t)tmp[0]; in stringToUuid()
82 uuid->timeMid = (uint16_t)tmp[1]; in stringToUuid()
83 uuid->timeHiAndVersion = (uint16_t)tmp[2]; in stringToUuid()
84 uuid->clockSeq = (uint16_t)tmp[3]; in stringToUuid()
85 uuid->node[0] = (uint8_t)tmp[4]; in stringToUuid()
86 uuid->node[1] = (uint8_t)tmp[5]; in stringToUuid()
87 uuid->node[2] = (uint8_t)tmp[6]; in stringToUuid()
[all …]
DEffectsFactory.c57 static int findSubEffect(const effect_uuid_t *uuid,
236 int EffectGetDescriptor(const effect_uuid_t *uuid, effect_descriptor_t *pDescriptor) in EffectGetDescriptor() argument
245 if (pDescriptor == NULL || uuid == NULL) { in EffectGetDescriptor()
249 ret = findEffect(NULL, uuid, &l, &d); in EffectGetDescriptor()
257 int EffectCreate(const effect_uuid_t *uuid, int32_t sessionId, int32_t ioId, effect_handle_t *pHand… in EffectCreate() argument
266 if (uuid == NULL || pHandle == NULL) { in EffectCreate()
271 uuid->timeLow, uuid->timeMid, uuid->timeHiAndVersion, in EffectCreate()
272 uuid->clockSeq, uuid->node[0], uuid->node[1],uuid->node[2], in EffectCreate()
273 uuid->node[3],uuid->node[4],uuid->node[5]); in EffectCreate()
284 ret = findEffect(NULL, uuid, &l, &d); in EffectCreate()
[all …]
/frameworks/av/media/libmediaplayer2/nuplayer2/
DNuPlayer2Drm.h36 memset(this->uuid, 0, sizeof(uuid)); in DrmUUID()
41 memcpy(this->uuid, a.uuid, sizeof(uuid)); in DrmUUID()
46 memcpy(this->uuid, uuid_in, sizeof(uuid)); in DrmUUID()
50 return uuid; in ptr()
54 return arrayToHex(uuid, UUID_SIZE); in toHexString()
71 uint8_t uuid[UUID_SIZE];
DNuPlayer2Drm.cpp96 DrmUUID uuid = psshDRMs[i]; in getSupportedDrmSchemes() local
97 if (AMediaDrmWrapper::isCryptoSchemeSupported(uuid.ptr(), NULL)) { in getSupportedDrmSchemes()
98 supportedDRMs.add(uuid); in getSupportedDrmSchemes()
124 DrmUUID uuid = supportedDRMs[i]; in retrieveDrmInfo() local
126 buf.write(reinterpret_cast<const char *>(uuid.ptr()), DrmUUID::UUID_SIZE); in retrieveDrmInfo()
129 uuid.toHexString().string()); in retrieveDrmInfo()
144 pssh.write(reinterpret_cast<const char *>(&entry->uuid), sizeof(entry->uuid)); in retrieveDrmInfo()
165 reinterpret_cast<const char *>(&entry->uuid), sizeof(entry->uuid)); in retrieveDrmInfo()
167 DrmUUID::arrayToHex((const uint8_t*)&entry->uuid, sizeof(AMediaUUID)).string()); in retrieveDrmInfo()
/frameworks/av/media/libeffects/data/
Daudio_effects.conf93 uuid 8631f300-72e2-11df-b57e-0002a5d5c51b
97 uuid 1d4033c0-8557-11df-9f2d-0002a5d5c51b
101 uuid ce772f20-847d-11df-bb17-0002a5d5c51b
105 uuid 119341a0-8469-11df-81f9-0002a5d5c51b
109 uuid 4a387fc0-8ab3-11df-8bad-0002a5d5c51b
113 uuid c7a511a0-a3bb-11df-860e-0002a5d5c51b
117 uuid f29a1400-a3bb-11df-8ddc-0002a5d5c51b
121 uuid 172cdf00-a3bc-11df-a72f-0002a5d5c51b
125 uuid d069d9e0-8329-11df-9168-0002a5d5c51b
129 uuid 93f04452-e4fe-41cc-91f9-e475b6d1d69f
[all …]
/frameworks/base/media/java/android/media/
DMediaCrypto.java38 public static final boolean isCryptoSchemeSupported(@NonNull UUID uuid) { in isCryptoSchemeSupported() argument
39 return isCryptoSchemeSupportedNative(getByteArrayFromUUID(uuid)); in isCryptoSchemeSupported()
43 private static final byte[] getByteArrayFromUUID(@NonNull UUID uuid) { in getByteArrayFromUUID() argument
44 long msb = uuid.getMostSignificantBits(); in getByteArrayFromUUID()
45 long lsb = uuid.getLeastSignificantBits(); in getByteArrayFromUUID()
56 private static final native boolean isCryptoSchemeSupportedNative(@NonNull byte[] uuid); in isCryptoSchemeSupportedNative() argument
66 public MediaCrypto(@NonNull UUID uuid, @NonNull byte[] sessionId) throws MediaCryptoException { in MediaCrypto() argument
67 native_setup(getByteArrayFromUUID(uuid), sessionId); in MediaCrypto()
99 private native final void native_setup(@NonNull byte[] uuid, @NonNull byte[] initData) in native_setup() argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerDrm.h32 memset(this->uuid, 0, sizeof(uuid)); in DrmUUID()
37 memcpy(this->uuid, a.uuid, sizeof(uuid)); in DrmUUID()
42 memcpy(this->uuid, uuid_in, sizeof(uuid)); in DrmUUID()
46 return uuid; in ptr()
50 return arrayToHex(uuid, UUID_SIZE); in toHexString()
67 uint8_t uuid[UUID_SIZE];
84 static sp<ICrypto> createCryptoAndPlugin(const uint8_t uuid[16],
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pUpnpServiceInfo.java71 public static WifiP2pUpnpServiceInfo newInstance(String uuid, in newInstance() argument
73 if (uuid == null || device == null) { in newInstance()
76 UUID.fromString(uuid); in newInstance()
80 info.add(createSupplicantQuery(uuid, null)); in newInstance()
81 info.add(createSupplicantQuery(uuid, "upnp:rootdevice")); in newInstance()
82 info.add(createSupplicantQuery(uuid, device)); in newInstance()
85 info.add(createSupplicantQuery(uuid, service)); in newInstance()
99 private static String createSupplicantQuery(String uuid, String data) { in createSupplicantQuery() argument
104 sb.append(uuid); in createSupplicantQuery()
/frameworks/native/cmds/installd/binder/android/os/
DIInstalld.aidl21 void createUserData(@nullable @utf8InCpp String uuid, int userId, int userSerial, int flags); in createUserData() argument
22 void destroyUserData(@nullable @utf8InCpp String uuid, int userId, int flags); in destroyUserData() argument
24 long createAppData(@nullable @utf8InCpp String uuid, in @utf8InCpp String packageName, in createAppData() argument
26 void restoreconAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, in restoreconAppData() argument
28 void migrateAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, in migrateAppData() argument
30 void clearAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, in clearAppData() argument
32 void destroyAppData(@nullable @utf8InCpp String uuid, @utf8InCpp String packageName, in destroyAppData() argument
35 void fixupAppData(@nullable @utf8InCpp String uuid, int flags); in fixupAppData() argument
37 long[] getAppSize(@nullable @utf8InCpp String uuid, in @utf8InCpp String[] packageNames, in getAppSize() argument
40 long[] getUserSize(@nullable @utf8InCpp String uuid, int userId, int flags, in int[] appIds); in getUserSize() argument
[all …]
/frameworks/base/core/java/android/app/usage/
DStorageStatsManager.java77 public boolean isQuotaSupported(String uuid) { in isQuotaSupported() argument
78 return isQuotaSupported(convert(uuid)); in isQuotaSupported()
120 public long getTotalBytes(String uuid) throws IOException { in getTotalBytes() argument
121 return getTotalBytes(convert(uuid)); in getTotalBytes()
152 public long getFreeBytes(String uuid) throws IOException { in getFreeBytes() argument
153 return getFreeBytes(convert(uuid)); in getFreeBytes()
170 public long getCacheBytes(String uuid) throws IOException { in getCacheBytes() argument
171 return getCacheBytes(convert(uuid)); in getCacheBytes()
221 public StorageStats queryStatsForPackage(String uuid, String packageName, in queryStatsForPackage() argument
223 return queryStatsForPackage(convert(uuid), packageName, user); in queryStatsForPackage()
[all …]
/frameworks/native/cmds/installd/
DQuotaUtils.cpp38 std::string& FindQuotaDeviceForUuid(const std::string& uuid) { in FindQuotaDeviceForUuid() argument
40 auto path = create_data_path(uuid.empty() ? nullptr : uuid.c_str()); in FindQuotaDeviceForUuid()
76 bool IsQuotaSupported(const std::string& uuid) { in IsQuotaSupported() argument
77 return !FindQuotaDeviceForUuid(uuid).empty(); in IsQuotaSupported()
80 int64_t GetOccupiedSpaceForUid(const std::string& uuid, uid_t uid) { in GetOccupiedSpaceForUid() argument
81 const std::string device = FindQuotaDeviceForUuid(uuid); in GetOccupiedSpaceForUid()
100 int64_t GetOccupiedSpaceForGid(const std::string& uuid, gid_t gid) { in GetOccupiedSpaceForGid() argument
101 const std::string device = FindQuotaDeviceForUuid(uuid); in GetOccupiedSpaceForGid()
/frameworks/base/tests/SoundTriggerTests/src/android/hardware/soundtrigger/stubhal/
DGenericSoundModelTest.java99 loadedModelUuids.add(model.uuid); in testUpdateGenericSoundModel()
103 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testUpdateGenericSoundModel()
113 loadedModelUuids.add(model.uuid); in testDeleteGenericSoundModel()
116 soundTriggerService.deleteSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel()
117 loadedModelUuids.remove(model.uuid); in testDeleteGenericSoundModel()
121 soundTriggerService.getSoundModel(new ParcelUuid(model.uuid)); in testDeleteGenericSoundModel()
137 loadedModelUuids.add(model.uuid); in testStartStopGenericSoundModel()
138 int r = soundTriggerService.startRecognition(new ParcelUuid(model.uuid), spyCallback, in testStartStopGenericSoundModel()
144 r = soundTriggerService.stopRecognition(new ParcelUuid(model.uuid), spyCallback); in testStartStopGenericSoundModel()
161 loadedModelUuids.add(model.uuid); in testTriggerGenericSoundModel()
[all …]
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp59 bool stringToUuid(const char *str, effect_uuid_t *uuid) in stringToUuid() argument
67 uuid->timeLow = (uint32_t)tmp[0]; in stringToUuid()
68 uuid->timeMid = (uint16_t)tmp[1]; in stringToUuid()
69 uuid->timeHiAndVersion = (uint16_t)tmp[2]; in stringToUuid()
70 uuid->clockSeq = (uint16_t)tmp[3]; in stringToUuid()
71 uuid->node[0] = (uint8_t)tmp[4]; in stringToUuid()
72 uuid->node[1] = (uint8_t)tmp[5]; in stringToUuid()
73 uuid->node[2] = (uint8_t)tmp[6]; in stringToUuid()
74 uuid->node[3] = (uint8_t)tmp[7]; in stringToUuid()
75 uuid->node[4] = (uint8_t)tmp[8]; in stringToUuid()
[all …]
/frameworks/base/core/java/android/os/
DParcelUuid.java38 public ParcelUuid(UUID uuid) { in ParcelUuid() argument
39 mUuid = uuid; in ParcelUuid()
53 public static ParcelUuid fromString(String uuid) { in fromString() argument
54 return new ParcelUuid(UUID.fromString(uuid)); in fromString()
118 UUID uuid = new UUID(mostSigBits, leastSigBits);
119 return new ParcelUuid(uuid);
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DDrmFactory.cpp41 const hidl_array<uint8_t, 16>& uuid) { in isCryptoSchemeSupported() argument
42 return clearkeydrm::isClearKeyUUID(uuid.data()); in isCryptoSchemeSupported()
45 Return<bool> DrmFactory::isCryptoSchemeSupported_1_2(const hidl_array<uint8_t, 16>& uuid, in isCryptoSchemeSupported_1_2() argument
48 return isCryptoSchemeSupported(uuid) && isContentTypeSupported(mimeType) && in isCryptoSchemeSupported_1_2()
63 const hidl_array<uint8_t, 16>& uuid, in createPlugin() argument
69 if (!isCryptoSchemeSupported(uuid.data())) { in createPlugin()
/frameworks/base/media/jni/
Dandroid_media_MediaCrypto.cpp47 const uint8_t uuid[16], const void *initData, size_t initSize) { in JCrypto()
50 mCrypto = MakeCrypto(uuid, initData, initSize); in JCrypto()
85 const uint8_t uuid[16], const void *initData, size_t initSize) { in MakeCrypto()
92 status_t err = crypto->createPlugin(uuid, initData, initSize); in MakeCrypto()
110 bool JCrypto::IsCryptoSchemeSupported(const uint8_t uuid[16]) { in IsCryptoSchemeSupported()
117 return crypto->isCryptoSchemeSupported(uuid); in IsCryptoSchemeSupported()
195 jbyte *uuid = env->GetByteArrayElements(uuidObj, &isCopy); in android_media_MediaCrypto_native_setup() local
206 env, thiz, (const uint8_t *)uuid, initData, initDataLength); in android_media_MediaCrypto_native_setup()
215 env->ReleaseByteArrayElements(uuidObj, uuid, 0); in android_media_MediaCrypto_native_setup()
216 uuid = NULL; in android_media_MediaCrypto_native_setup()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java172 public long createAppData(String uuid, String packageName, int userId, int flags, int appId, in createAppData() argument
176 return mInstalld.createAppData(uuid, packageName, userId, flags, appId, seInfo, in createAppData()
183 public void restoreconAppData(String uuid, String packageName, int userId, int flags, int appId, in restoreconAppData() argument
187 mInstalld.restoreconAppData(uuid, packageName, userId, flags, appId, seInfo); in restoreconAppData()
193 public void migrateAppData(String uuid, String packageName, int userId, int flags) in migrateAppData() argument
197 mInstalld.migrateAppData(uuid, packageName, userId, flags); in migrateAppData()
203 public void clearAppData(String uuid, String packageName, int userId, int flags, in clearAppData() argument
207 mInstalld.clearAppData(uuid, packageName, userId, flags, ceDataInode); in clearAppData()
213 public void destroyAppData(String uuid, String packageName, int userId, int flags, in destroyAppData() argument
217 mInstalld.destroyAppData(uuid, packageName, userId, flags, ceDataInode); in destroyAppData()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DAdvertiseDataTest.java80 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testEmptyServiceData() local
84 .addServiceData(uuid, serviceData).build(); in testEmptyServiceData()
95 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceUuid() local
100 .addServiceUuid(uuid).addServiceUuid(uuid2).build(); in testServiceUuid()
111 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testManufacturerData() local
119 .addServiceUuid(uuid).addServiceUuid(uuid2) in testManufacturerData()
132 ParcelUuid uuid = ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB"); in testServiceData() local
137 .addServiceData(uuid, serviceData).build(); in testServiceData()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/
DDrmFactory.cpp32 bool DrmFactory::isCryptoSchemeSupported(const uint8_t uuid[16]) { in isCryptoSchemeSupported()
33 return isClearKeyUUID(uuid); in isCryptoSchemeSupported()
47 const uint8_t uuid[16], in createDrmPlugin()
49 if (!isCryptoSchemeSupported(uuid)) { in createDrmPlugin()
DCryptoFactory.cpp33 bool CryptoFactory::isCryptoSchemeSupported(const uint8_t uuid[16]) const { in isCryptoSchemeSupported()
34 return isClearKeyUUID(uuid); in isCryptoSchemeSupported()
38 const uint8_t uuid[16], in createPlugin()
41 if (!isCryptoSchemeSupported(uuid)) { in createPlugin()

12345678