Home
last modified time | relevance | path

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

/frameworks/base/native/android/
Dstorage_manager.cpp45 virtual void onObbResult(const android::String16& filename, const int32_t nonce,
52 : nonce(_nonce) in ObbCallback()
57 int32_t nonce; member in ObbCallback
120 void fireCallback(const char* filename, const int32_t nonce, const int32_t state) { in fireCallback()
127 if (cb->nonce == nonce) { in fireCallback()
160 mMountService->mountObb(rawPath16, canonicalPath16, mObbActionListener, cb->nonce, obbInfo); in mountObb()
166 mMountService->unmountObb(filename16, force, mObbActionListener, cb->nonce); in unmountObb()
185 void ObbActionListener::onObbResult(const android::String16& filename, const int32_t nonce, const i… in onObbResult() argument
186 mStorageManager->fireCallback(String8(filename).c_str(), nonce, state); in onObbResult()
/frameworks/base/libs/securebox/src/com/android/security/
DSecureBox.java329 private static byte[] aesGcmEncrypt(SecretKey key, byte[] nonce, byte[] plaintext, byte[] aad) in aesGcmEncrypt() argument
332 return aesGcmInternal(AesGcmOperation.ENCRYPT, key, nonce, plaintext, aad); in aesGcmEncrypt()
339 private static byte[] aesGcmDecrypt(SecretKey key, byte[] nonce, byte[] ciphertext, byte[] aad) in aesGcmDecrypt() argument
341 return aesGcmInternal(AesGcmOperation.DECRYPT, key, nonce, ciphertext, aad); in aesGcmDecrypt()
345 AesGcmOperation operation, SecretKey key, byte[] nonce, byte[] text, byte[] aad) in aesGcmInternal() argument
354 GCMParameterSpec spec = new GCMParameterSpec(GCM_TAG_LEN_BYTES * 8, nonce); in aesGcmInternal()
453 byte[] nonce = new byte[GCM_NONCE_LEN_BYTES]; in genRandomNonce()
454 new SecureRandom().nextBytes(nonce); in genRandomNonce()
455 return nonce; in genRandomNonce()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DRemoteBugreportManager.java206 long nonce; in requestBugreport() local
208 nonce = mRng.nextLong(); in requestBugreport()
209 } while (nonce == 0); in requestBugreport()
210 mInjector.getIActivityManager().requestRemoteBugReport(nonce); in requestBugreport()
212 mRemoteBugreportNonce.set(nonce); in requestBugreport()
245 long nonce = intent.getLongExtra(DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_NONCE, 0); in onBugreportFinished() local
246 if (nonce == 0 || mRemoteBugreportNonce.get() != nonce) { in onBugreportFinished()
247 Slogf.w(LOG_TAG, "Invalid nonce provided, ignoring " + nonce); in onBugreportFinished()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java85 byte[] nonce = getUtf8Bytes("nonce1"); in insertKey_replacesOldKey()
89 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
93 assertArrayEquals(nonce, retrievedKey.getNonce()); in insertKey_replacesOldKey()
98 nonce = getUtf8Bytes("nonce2"); in insertKey_replacesOldKey()
102 wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId); in insertKey_replacesOldKey()
106 assertArrayEquals(nonce, retrievedKey.getNonce()); in insertKey_replacesOldKey()
170 byte[] nonce = getUtf8Bytes("nonce"); in getKey_returnsInsertedKey()
174 WrappedKey wrappedKey = new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, 120); in getKey_returnsInsertedKey()
179 assertArrayEquals(nonce, retrievedKey.getNonce()); in getKey_returnsInsertedKey()
378 byte[] nonce = getUtf8Bytes("nonce"); in setPlatformKeyGenerationId_invalidatesExistingKeysForUser()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DWrappedKey.java118 public WrappedKey(byte[] nonce, byte[] keyMaterial, @Nullable byte[] keyMetadata, in WrappedKey() argument
120 this(nonce, keyMaterial, keyMetadata, platformKeyGenerationId, in WrappedKey()
136 public WrappedKey(byte[] nonce, byte[] keyMaterial, @Nullable byte[] keyMetadata, in WrappedKey() argument
138 mNonce = nonce; in WrappedKey()
/frameworks/base/libs/storage/
DIObbActionListener.cpp48 int32_t nonce = data.readInt32(); in onTransact() local
50 onObbResult(filename, nonce, state); in onTransact()
DIMountService.cpp444 const sp<IObbActionListener>& token, int32_t nonce, const sp<ObbInfo>& obbInfo) in mountObb() argument
451 data.writeInt32(nonce); in mountObb()
465 const sp<IObbActionListener>& token, const int32_t nonce) in unmountObb() argument
472 data.writeInt32(nonce); in unmountObb()
/frameworks/base/libs/storage/include/storage/
DIMountService.h67 const sp<IObbActionListener>& token, const int32_t nonce,
70 const sp<IObbActionListener>& token, const int32_t nonce) = 0;
DIObbActionListener.h32 … virtual void onObbResult(const String16& filename, const int32_t nonce, const int32_t state) = 0;
/frameworks/base/core/java/android/os/storage/
DIObbActionListener.aidl36 void onObbResult(in String filename, int nonce, int status) = 0; in onObbResult() argument
DIStorageManager.aidl64 int nonce, in ObbInfo obbInfo) = 21; in mountObb() argument
71 void unmountObb(in String rawPath, boolean force, IObbActionListener token, int nonce) = 22; in unmountObb() argument
DStorageManager.java401 public void onObbResult(String filename, int nonce, int status) { in onObbResult() argument
404 delegate = mListeners.get(nonce); in onObbResult()
406 mListeners.remove(nonce); in onObbResult()
419 mListeners.put(delegate.nonce, delegate); in addListener()
422 return delegate.nonce; in addListener()
437 private final int nonce; field in StorageManager.ObbListenerDelegate
440 nonce = getNextNonce(); in ObbListenerDelegate()
681 final int nonce = mObbActionListener.addListener(listener); in mountObb() local
682 mStorageManager.mountObb(rawPath, canonicalPath, mObbActionListener, nonce, in mountObb()
753 final int nonce = mObbActionListener.addListener(listener); in unmountObb() local
[all …]
/frameworks/base/core/java/android/app/
DPropertyInvalidatedCache.java1108 final long nonce = getNonce(name);
1109 if (nonce == NONCE_DISABLED) {
1123 name, nonce, Long.toString(newValue)));
1170 final long nonce = getNonce(name);
1171 if (nonce != NONCE_UNSET && nonce != NONCE_DISABLED) {
DIActivityManager.aidl506 void requestRemoteBugReport(long nonce); in requestRemoteBugReport() argument
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java436 mInfo.bugreportFile, mInfo.nonce); in sendBugreportFinishedBroadcastLocked()
449 String bugreportFileName, File bugreportFile, long nonce) { in sendRemoteBugreportFinishedBroadcast() argument
464 intent.putExtra(DevicePolicyManager.EXTRA_REMOTE_BUGREPORT_NONCE, nonce); in sendRemoteBugreportFinishedBroadcast()
682 long nonce = intent.getLongExtra(EXTRA_BUGREPORT_NONCE, 0); in startBugreportAPI() local
688 shareDescription, bugreportType, mBugreportsDir, nonce, extraAttachment); in startBugreportAPI()
2096 final long nonce; field in BugreportProgressService.BugreportInfo
2108 @BugreportParams.BugreportMode int type, File bugreportsDir, long nonce, in BugreportInfo() argument
2115 this.nonce = nonce; in BugreportInfo()
2356 nonce = in.readLong(); in BugreportInfo()
2385 dest.writeLong(nonce); in writeToParcel()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java751 final String nonce = String.valueOf(System.nanoTime()); in testConvertToModernFd() local
758 final File validVideoCameraDir = new File(cameraDir, "validVideo-" + nonce + ".mp4"); in testConvertToModernFd()
759 final File validImageCameraDir = new File(cameraDir, "validImage-" + nonce + ".jpg"); in testConvertToModernFd()
761 final File validVideoNonCameraDir = new File(nonCameraDir, "validVideo-" + nonce + ".mp4"); in testConvertToModernFd()
762 final File validImageNonCameraDir = new File(nonCameraDir, "validImage-" + nonce + ".jpg"); in testConvertToModernFd()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java714 final int nonce; in waitForConnection() local
757 nonce = waiter.mNonce; in waitForConnection()
766 if (waiter.mNonce == nonce) { in waitForConnection()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java158 byte[] nonce = cursor.getBlob( in getKey()
176 return new WrappedKey(nonce, keyMaterial, keyMetadata, generationId, recoveryStatus); in getKey()
297 byte[] nonce = cursor.getBlob( in getAllKeys()
315 keys.put(alias, new WrappedKey(nonce, keyMaterial, keyMetadata, in getAllKeys()
/frameworks/base/telephony/java/android/telephony/ims/
DSipDelegateConfiguration.java417 public @NonNull Builder setSipAuthenticationNonce(@Nullable String nonce) { in setSipAuthenticationNonce() argument
418 mConfig.mSipAuthNonce = nonce; in setSipAuthenticationNonce()
/frameworks/native/include/input/
DInputDevice.h60 uint16_t nonce; member
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java613 IObbActionListener token, int nonce, String volId) { in ObbState() argument
618 this.nonce = nonce; in ObbState()
631 final int nonce; field in StorageManagerService.ObbState
3133 int nonce, ObbInfo obbInfo) { in mountObb() argument
3141 callingUid, token, nonce, null); in mountObb()
3150 public void unmountObb(String rawPath, boolean force, IObbActionListener token, int nonce) { in unmountObb() argument
3162 callingUid, token, nonce, existingState.volId); in unmountObb()
4312 obbState.token.onObbResult(obbState.rawPath, obbState.nonce, in handleMessage()
4371 mObbState.token.onObbResult(mObbState.rawPath, mObbState.nonce, status); in notifyObbStateChange()
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp1550 if (identifier.nonce != 0) { in generateDescriptor()
1551 rawDescriptor += StringPrintf("nonce:%04x", identifier.nonce); in generateDescriptor()
1586 identifier.nonce = 0; in assignDescriptorLocked()
1590 identifier.nonce++; in assignDescriptorLocked()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java978 String nonce = getNonceFromResponse(response); in handleAuthentication() local
979 if (nonce == null) { in handleAuthentication()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java12003 long nonce; in initializeAudioServerPermissionProvider()
12005 if ((ref = mHandle.get()) != null && (nonce = ref.getLong(0)) != 0 && in initializeAudioServerPermissionProvider()
12006 mNonce.getAndSet(nonce) != nonce) { in initializeAudioServerPermissionProvider()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt38199 Landroid/os/storage/StorageManager$ObbListenerDelegate;->nonce:I