Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 121) sorted by relevance

12345

/frameworks/av/media/codec2/hal/aidl/
DParamTypes.cpp248 bool ParseParamsBlob(std::vector<C2Param*> *params, const Params &blob) { in ParseParamsBlob() argument
249 return ::android::parseParamsBlob(params, blob); in ParseParamsBlob()
254 Params *blob, in CreateParamsBlob() argument
256 return ::android::_createParamsBlob(blob, params); in CreateParamsBlob()
261 Params *blob, in CreateParamsBlob() argument
263 return ::android::_createParamsBlob(blob, params); in CreateParamsBlob()
268 Params *blob, in CreateParamsBlob() argument
270 return ::android::_createParamsBlob(blob, params); in CreateParamsBlob()
275 Params *blob, in CreateParamsBlob() argument
277 return ::android::_createParamsBlob(blob, params); in CreateParamsBlob()
[all …]
/frameworks/base/core/jni/
Dandroid_os_HwBlob.cpp174 status_t JHwBlob::putBlob(size_t offset, const sp<JHwBlob> &blob) { in putBlob() argument
179 info->mBlob = blob; in putBlob()
181 const void *data = blob->data(); in putBlob()
303 sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz); \
306 status_t err = blob->read(offset, &x, sizeof(x)); \
325 sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz); in DEFINE_BLOB_GETTER() local
328 status_t err = blob->read(offset, &x, sizeof(x)); in DEFINE_BLOB_GETTER()
340 sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz); in JHwBlob_native_getString() local
343 status_t err = blob->getString(offset, &s); in JHwBlob_native_getString()
356 sp<JHwBlob> blob = JHwBlob::GetNativeContext(env, thiz); in JHwBlob_native_getFieldHandle() local
[all …]
/frameworks/base/core/java/android/security/keymaster/
DKeymasterBlobArgument.java28 public final byte[] blob; field in KeymasterBlobArgument
31 public KeymasterBlobArgument(int tag, byte[] blob) { in KeymasterBlobArgument() argument
40 this.blob = blob; in KeymasterBlobArgument()
46 blob = in.createByteArray(); in KeymasterBlobArgument()
51 out.writeByteArray(blob); in writeValue()
DKeymasterBlob.java28 public byte[] blob; field in KeymasterBlob
30 public KeymasterBlob(byte[] blob) { in KeymasterBlob() argument
31 this.blob = blob; in KeymasterBlob()
46 blob = in.createByteArray(); in KeymasterBlob()
56 out.writeByteArray(blob); in writeToParcel()
/frameworks/av/media/codec2/hal/aidl/include/codec2/aidl/
DParamTypes.h124 const Params &blob);
136 Params *blob,
139 Params *blob,
142 Params *blob,
145 Params *blob,
159 const Params &blob);
162 const Params &blob);
174 const Params& blob);
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowData.java44 private RebootEscrowData(byte spVersion, byte[] syntheticPassword, byte[] blob, in RebootEscrowData() argument
48 mBlob = blob; in RebootEscrowData()
86 static RebootEscrowData fromEncryptedData(RebootEscrowKey ks, byte[] blob, SecretKey kk) in fromEncryptedData() argument
89 Objects.requireNonNull(blob); in fromEncryptedData()
91 DataInputStream dis = new DataInputStream(new ByteArrayInputStream(blob)); in fromEncryptedData()
97 return new RebootEscrowData(spVersion, syntheticPassword, blob, ks); in fromEncryptedData()
102 return new RebootEscrowData(spVersion, syntheticPassword, blob, ks); in fromEncryptedData()
DSyntheticPasswordCrypto.java63 private static byte[] decrypt(SecretKey key, byte[] blob) in decrypt() argument
66 if (blob == null) { in decrypt()
69 byte[] iv = Arrays.copyOfRange(blob, 0, AES_GCM_IV_SIZE); in decrypt()
70 byte[] ciphertext = Arrays.copyOfRange(blob, AES_GCM_IV_SIZE, blob.length); in decrypt()
77 private static byte[] encrypt(SecretKey key, byte[] blob) in encrypt() argument
81 if (blob == null) { in encrypt()
88 byte[] ciphertext = cipher.doFinal(blob); in encrypt()
133 public static byte[] decryptBlobV1(String protectorKeyAlias, byte[] blob, in decryptBlobV1() argument
142 byte[] intermediate = decrypt(protectorSecret, PROTECTOR_SECRET_PERSONALIZATION, blob); in decryptBlobV1()
168 public static byte[] decryptBlob(String protectorKeyAlias, byte[] blob, in decryptBlob() argument
[all …]
DSyntheticPasswordManager.java489 byte[] blob = new byte[mContent.length + 1 + 1]; in toByte()
490 blob[0] = mVersion; in toByte()
491 blob[1] = mProtectorType; in toByte()
492 System.arraycopy(mContent, 0, blob, 2, mContent.length); in toByte()
493 return blob; in toByte()
1360 SyntheticPasswordBlob blob = SyntheticPasswordBlob.create(version, protectorType, content); in createSyntheticPasswordBlob() local
1361 saveState(SP_BLOB_NAME, blob.toByte(), protectorId, userId); in createSyntheticPasswordBlob()
1551 SyntheticPasswordBlob blob = SyntheticPasswordBlob.fromBytes(data); in unlockTokenBasedProtector() local
1552 return unlockTokenBasedProtectorInternal(gatekeeper, protectorId, blob.mProtectorType, in unlockTokenBasedProtector()
1627 SyntheticPasswordBlob blob = SyntheticPasswordBlob.fromBytes(data); in unwrapSyntheticPasswordBlob() local
[all …]
/frameworks/base/apex/blobstore/framework/java/android/app/blob/
DIBlobStoreManager.aidl16 package android.app.blob;
18 import android.app.blob.BlobHandle;
19 import android.app.blob.BlobInfo;
20 import android.app.blob.IBlobStoreSession;
21 import android.app.blob.LeaseInfo;
DBlobHandle.java16 package android.app.blob;
18 import static android.app.blob.XmlTags.ATTR_ALGO;
19 import static android.app.blob.XmlTags.ATTR_DIGEST;
20 import static android.app.blob.XmlTags.ATTR_EXPIRY_TIME;
21 import static android.app.blob.XmlTags.ATTR_LABEL;
22 import static android.app.blob.XmlTags.ATTR_TAG;
DIBlobStoreSession.aidl16 package android.app.blob;
18 import android.app.blob.IBlobCommitCallback;
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
Dtypes.cpp434 bool parseParamsBlob(std::vector<C2Param*> *params, const hidl_vec<uint8_t> &blob) { in parseParamsBlob() argument
435 return ::android::parseParamsBlob(params, blob); in parseParamsBlob()
440 hidl_vec<uint8_t> *blob, in createParamsBlob() argument
442 return ::android::_createParamsBlob(blob, params); in createParamsBlob()
447 hidl_vec<uint8_t> *blob, in createParamsBlob() argument
449 return ::android::_createParamsBlob(blob, params); in createParamsBlob()
454 hidl_vec<uint8_t> *blob, in createParamsBlob() argument
456 return ::android::_createParamsBlob(blob, params); in createParamsBlob()
461 hidl_vec<uint8_t> *blob, in createParamsBlob() argument
463 return ::android::_createParamsBlob(blob, params); in createParamsBlob()
[all …]
/frameworks/av/media/codec2/hal/hidl/1.0/utils/include/codec2/hidl/1.0/
Dtypes.h228 const hidl_vec<uint8_t> &blob);
240 hidl_vec<uint8_t> *blob,
243 hidl_vec<uint8_t> *blob,
246 hidl_vec<uint8_t> *blob,
249 hidl_vec<uint8_t> *blob,
263 Params blob);
266 Params blob);
278 const Params& blob);
/frameworks/base/core/java/android/content/pm/verify/domain/
DDomainVerificationUtils.java86 byte[] blob = in.readBlob(); in readHostMap()
87 data.unmarshall(blob, 0, blob.length); in readHostMap()
140 byte[] blob = in.readBlob(); in readHostSet()
141 data.unmarshall(blob, 0, blob.length); in readHostSet()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreSession.java16 package com.android.server.blob;
18 import static android.app.blob.BlobStoreManager.COMMIT_RESULT_ERROR;
19 import static android.app.blob.XmlTags.ATTR_CREATION_TIME_MS;
20 import static android.app.blob.XmlTags.ATTR_ID;
21 import static android.app.blob.XmlTags.ATTR_PACKAGE;
22 import static android.app.blob.XmlTags.ATTR_UID;
23 import static android.app.blob.XmlTags.TAG_ACCESS_MODE;
24 import static android.app.blob.XmlTags.TAG_BLOB_HANDLE;
33 import static com.android.server.blob.BlobStoreConfig.TAG;
34 import static com.android.server.blob.BlobStoreConfig.XML_VERSION_ADD_SESSION_CREATION_TIME;
[all …]
DBlobStoreIdleJobService.java16 package com.android.server.blob;
18 import static com.android.server.blob.BlobStoreConfig.IDLE_JOB_ID;
19 import static com.android.server.blob.BlobStoreConfig.LOGV;
20 import static com.android.server.blob.BlobStoreConfig.TAG;
DBlobStoreManagerService.java16 package com.android.server.blob;
18 import static android.app.blob.BlobStoreManager.COMMIT_RESULT_ERROR;
19 import static android.app.blob.BlobStoreManager.COMMIT_RESULT_SUCCESS;
20 import static android.app.blob.XmlTags.ATTR_VERSION;
21 import static android.app.blob.XmlTags.TAG_BLOB;
22 import static android.app.blob.XmlTags.TAG_BLOBS;
23 import static android.app.blob.XmlTags.TAG_SESSION;
24 import static android.app.blob.XmlTags.TAG_SESSIONS;
32 import static com.android.server.blob.BlobStoreConfig.INVALID_BLOB_ID;
33 import static com.android.server.blob.BlobStoreConfig.INVALID_BLOB_SIZE;
[all …]
DBlobMetadata.java16 package com.android.server.blob;
19 import static android.app.blob.XmlTags.ATTR_COMMIT_TIME_MS;
20 import static android.app.blob.XmlTags.ATTR_DESCRIPTION;
21 import static android.app.blob.XmlTags.ATTR_DESCRIPTION_RES_NAME;
22 import static android.app.blob.XmlTags.ATTR_EXPIRY_TIME;
23 import static android.app.blob.XmlTags.ATTR_ID;
24 import static android.app.blob.XmlTags.ATTR_PACKAGE;
25 import static android.app.blob.XmlTags.ATTR_UID;
26 import static android.app.blob.XmlTags.ATTR_USER_ID;
27 import static android.app.blob.XmlTags.TAG_ACCESS_MODE;
[all …]
DBlobAccessMode.java16 package com.android.server.blob;
18 import static android.app.blob.XmlTags.ATTR_CERTIFICATE;
19 import static android.app.blob.XmlTags.ATTR_PACKAGE;
20 import static android.app.blob.XmlTags.ATTR_TYPE;
21 import static android.app.blob.XmlTags.TAG_ALLOWED_PACKAGE;
/frameworks/base/libs/hwui/tests/unit/
DShaderCacheTests.cpp306 for (auto& blob : blobVec) { in TEST() local
316 blob = std::make_pair(key, data); in TEST()
332 for (const auto& blob : blobVec) { in TEST() local
333 auto outVS = ShaderCache::get().load(*blob.first.get()); in TEST()
334 ASSERT_TRUE(checkShader(outVS, blob.second)); in TEST()
339 for (const auto& blob : blobVec) { in TEST() local
340 ASSERT_EQ(ShaderCache::get().load(*blob.first.get()), sk_sp<SkData>()); in TEST()
344 for (const auto& blob : blobVec) { in TEST() local
345 ASSERT_EQ(ShaderCache::get().load(*blob.first.get()), sk_sp<SkData>()); in TEST()
352 for (const auto& blob : blobVec) { in TEST() local
[all …]
/frameworks/base/wifi/java/src/android/net/wifi/
DWifiKeystore.java54 public static boolean put(@NonNull String alias, @NonNull byte[] blob) { in put() argument
61 return WifiBlobStore.getInstance().put(alias, blob); in put()
84 byte[] blob = WifiBlobStore.getInstance().get(alias); in get()
85 if (blob != null) { in get()
86 return blob; in get()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DMockSyntheticPasswordManager.java49 protected byte[] decryptSpBlob(String protectorKeyAlias, byte[] blob, byte[] protectorSecret) { in decryptSpBlob() argument
51 !Arrays.equals(mBlobs.get(protectorKeyAlias), blob)) { in decryptSpBlob()
55 ByteBuffer buffer = ByteBuffer.allocate(blob.length); in decryptSpBlob()
56 buffer.put(blob, 0, blob.length); in decryptSpBlob()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java16 package com.android.utils.blob;
18 import static com.android.utils.blob.Utils.BUFFER_SIZE_BYTES;
19 import static com.android.utils.blob.Utils.copy;
20 import static com.android.utils.blob.Utils.writeRandomData;
24 import android.app.blob.BlobHandle;
25 import android.app.blob.BlobStoreManager;
/frameworks/base/core/tests/coretests/src/android/database/
DCursorWindowTest.java115 byte[] blob = new byte[1000]; in doTestValues()
117 Arrays.fill(blob, value); in doTestValues()
118 assertTrue(window.putBlob(blob, 0, 6)); in doTestValues()
120 assertTrue(Arrays.equals(blob, window.getBlob(0, 6))); in doTestValues()
/frameworks/base/core/tests/companiontests/src/android/companion/
DSystemDataTransportTest.java130 final byte[] blob = new byte[500_000]; in testPingGiant()
131 new Random().nextBytes(blob); in testPingGiant()
133 final byte[] input = generatePacket(MESSAGE_REQUEST_PING, /* sequence */ 1, blob); in testPingGiant()
255 for (byte[] blob : blobs) { in concat()
256 length += blob.length; in concat()
259 for (byte[] blob : blobs) { in concat()
260 buf.put(blob); in concat()

12345