/aosp14/system/core/libcutils/ |
H A D | native_handle.cpp | 74 if (!handle || handle->version != sizeof(native_handle_t)) return; in swap_fdsan_tags() 76 for (int i = 0; i < handle->numFds; i++) { in swap_fdsan_tags() 93 handle->version = sizeof(native_handle_t); in native_handle_init() 94 handle->numFds = numFds; in native_handle_init() 95 handle->numInts = numInts; in native_handle_init() 96 return handle; in native_handle_init() 117 swap_fdsan_tags(handle, 0, get_fdsan_tag(handle)); in native_handle_set_fdsan_tag() 121 swap_fdsan_tags(handle, get_fdsan_tag(handle), 0); in native_handle_unset_fdsan_tag() 125 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone() 138 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds], in native_handle_clone() [all …]
|
/aosp14/system/core/trusty/storage/tests/ |
H A D | main.cpp | 251 file_handle_t handle; in TEST_P() local 296 file_handle_t handle; in TEST_P() local 333 file_handle_t handle; in TEST_P() local 367 file_handle_t handle; in TEST_P() local 395 file_handle_t handle; in TEST_P() local 422 file_handle_t handle; in TEST_P() local 464 file_handle_t handle; in TEST_P() local 590 file_handle_t handle; in TEST_P() local 636 file_handle_t handle; in TEST_P() local 679 file_handle_t handle; in TEST_P() local [all …]
|
/aosp14/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/ |
H A D | SoundTriggerHalConcurrentCaptureHandlerTest.java | 70 verify(mUnderlying).stopRecognition(handle); in testBasic() 99 mHandler.stopRecognition(handle); in testStopBeforeActive() 100 verify(mUnderlying).stopRecognition(handle); in testStopBeforeActive() 122 mHandler.stopRecognition(handle); in testStopAfterActive() 150 }).when(mUnderlying).stopRecognition(handle); in testAbortWhileStop() 151 mHandler.stopRecognition(handle); in testAbortWhileStop() 184 }).when(mUnderlying).stopRecognition(handle); in testActiveWhileStop() 185 mHandler.stopRecognition(handle); in testActiveWhileStop() 220 }).when(mUnderlying).stopRecognition(handle); in testStopWhileActive() 250 }).when(mUnderlying).stopRecognition(handle); in testEventWhileActive() [all …]
|
H A D | SoundTriggerMiddlewareImplTest.java | 111 module.unloadModel(handle); in unloadModel() 130 module.stopRecognition(handle); in stopRecognition() 191 int handle = loadResult.first; in testLoadPreemptModel() local 285 int handle = modelHandles.first; in testRecognition() local 330 int handle = modelHandles.first; in testPhraseRecognition() local 360 int handle = modelHandles.first; in testForceRecognition() local 397 int handle = modelHandles.first; in testForceRecognitionNotSupported() local 428 int handle = modelHandles.first; in testForcePhraseRecognition() local 465 int handle = modelHandles.first; in testForcePhraseRecognitionNotSupported() local 497 int handle = loadResult.first; in testAbortRecognition() local [all …]
|
H A D | SoundHw2CompatTest.java | 191 final int handle = 29; in loadGenericModel_2_0() local 208 assertEquals(handle, in loadGenericModel_2_0() 216 return handle; in loadGenericModel_2_0() 224 final int handle = 29; in loadGenericModel_2_1() local 242 assertEquals(handle, in loadGenericModel_2_1() 249 return handle; in loadGenericModel_2_1() 306 final int handle = 29; in loadPhraseModel_2_0() local 338 final int handle = 29; in loadPhraseModel_2_1() local 619 final int handle = 85; in validateCallback_2_0() local 636 final int handle = 92; in validateCallback_2_0() local [all …]
|
/aosp14/system/core/fastboot/ |
H A D | usb_windows.cpp | 71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() argument 98 void usb_kick(usb_handle* handle); 232 if (NULL != handle) { in usb_cleanup_handle() 247 void usb_kick(usb_handle* handle) { in usb_kick() argument 248 if (NULL != handle) { in usb_kick() 249 usb_cleanup_handle(handle); in usb_kick() 283 if (NULL == handle) in recognized_device() 366 if (NULL != handle) { in find_usb_device() 373 handle.reset(); in find_usb_device() 381 return handle; in find_usb_device() [all …]
|
H A D | usb_osx.cpp | 189 handle->info.has_bulk_in = 0; in try_interfaces() 190 handle->info.has_bulk_out = 0; in try_interfaces() 240 if (handle->info.has_bulk_in && handle->info.has_bulk_out) { in try_interfaces() 245 if (handle->callback(&handle->info) == 0) { in try_interfaces() 247 handle->success = 1; in try_interfaces() 257 handle->bulkIn); in try_interfaces() 355 snprintf(handle->info.device_path, sizeof(handle->info.device_path), in try_device() 386 handle->info.interface[0] = 0; in try_device() 387 handle->info.writable = 1; in try_device() 389 if (try_interfaces(dev, handle)) { in try_device() [all …]
|
/aosp14/frameworks/base/core/jni/ |
H A D | android_app_NativeActivity.cpp | 405 if (handle != 0) { in unloadNativeCode_native() 417 if (handle != 0) { in onStart_native() 431 if (handle != 0) { in onResume_native() 448 if (handle != 0) { in onSaveInstanceState_native() 474 if (handle != 0) { in onPause_native() 488 if (handle != 0) { in onStop_native() 502 if (handle != 0) { in onConfigurationChanged_native() 516 if (handle != 0) { in onLowMemory_native() 530 if (handle != 0) { in onWindowFocusChanged_native() 544 if (handle != 0) { in onSurfaceCreated_native() [all …]
|
H A D | android_os_NativeHandle.cpp | 39 JNIEnv *env, const native_handle_t *handle) { in MakeJavaNativeHandleObj() argument 40 if (handle == nullptr) { return nullptr; } in MakeJavaNativeHandleObj() 42 const int numFds = handle->numFds; in MakeJavaNativeHandleObj() 44 env->SetIntArrayRegion(fds.get(), 0, numFds, &(handle->data[0])); in MakeJavaNativeHandleObj() 46 const int numInts = handle->numInts; in MakeJavaNativeHandleObj() 48 env->SetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeJavaNativeHandleObj() 73 native_handle_t *handle = (storage == nullptr) in MakeCppNativeHandle() local 77 if (handle != nullptr) { in MakeCppNativeHandle() 78 env->GetIntArrayRegion(fds.get(), 0, numFds, &(handle->data[0])); in MakeCppNativeHandle() 79 env->GetIntArrayRegion(ints.get(), 0, numInts, &(handle->data[numFds])); in MakeCppNativeHandle() [all …]
|
H A D | android_util_jar_StrictJarFile.cpp | 64 ZipArchiveHandle handle; in StrictJarFile_nativeOpenJarFile() local 65 int32_t error = OpenArchiveFd(fd, nameChars.c_str(), &handle, in StrictJarFile_nativeOpenJarFile() 68 CloseArchive(handle); in StrictJarFile_nativeOpenJarFile() 73 return reinterpret_cast<jlong>(handle); in StrictJarFile_nativeOpenJarFile() 102 IterationHandle* handle = new IterationHandle(); in StrictJarFile_nativeStartIteration() local 104 handle->CookieAddress(), prefixChars.c_str(), ""); in StrictJarFile_nativeStartIteration() 110 return reinterpret_cast<jlong>(handle); in StrictJarFile_nativeStartIteration() 117 IterationHandle* handle = reinterpret_cast<IterationHandle*>(iterationHandle); in StrictJarFile_nativeNextEntry() local 118 const int32_t error = Next(*handle->CookieAddress(), &data, &entryName); in StrictJarFile_nativeNextEntry() 120 delete handle; in StrictJarFile_nativeNextEntry()
|
/aosp14/frameworks/base/libs/hwui/tests/unit/ |
H A D | WebViewFunctorManagerTests.cpp | 48 ASSERT_TRUE(handle); in TEST() 61 handle->sync(syncData); in TEST() 68 handle->sync(syncData); in TEST() 73 handle.clear(); in TEST() 89 ASSERT_TRUE(handle); in TEST() 101 handle.clear(); in TEST() 116 ASSERT_TRUE(handle); in TEST() 121 handle->sync(syncData); in TEST() 123 handle->drawGl(drawInfo); in TEST() 138 handle->sync(syncData); in TEST() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | NativeLibraryHelper.java | 182 for (long apkHandle : handle.apkHandles) { in sumNativeBinaries() 197 for (long apkHandle : handle.apkHandles) { in copyNativeBinaries() 199 handle.extractNativeLibs, handle.debuggable); in copyNativeBinaries() 216 for (long apkHandle : handle.apkHandles) { in findSupportedAbi() 311 int abi = findSupportedAbi(handle, abiList); in sumNativeBinariesForSupportedAbi() 325 int abi = findSupportedAbi(handle, abiList); in copyNativeBinariesForSupportedAbi() 375 if (handle.multiArch) { in copyNativeBinariesWithOverride() 438 if (handle.multiArch) { in sumNativeBinariesWithOverride() 485 final String[] apkPaths = handle.apkPaths; in incrementalConfigureNativeBinariesForSupportedAbi() 513 handle.extractNativeLibs)) { in incrementalConfigureNativeBinariesForSupportedAbi() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A D | WeakEscrowTokenTests.java | 66 assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedImmediatelyIfNoUserPassword() 67 assertTrue(mService.isWeakEscrowTokenValid(handle, token, PRIMARY_USER_ID)); in testWeakTokenActivatedImmediatelyIfNoUserPassword() 68 verify(mockListener).onWeakEscrowTokenActivated(handle, PRIMARY_USER_ID); in testWeakTokenActivatedImmediatelyIfNoUserPassword() 83 assertFalse(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedLaterWithUserPassword() 88 assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokenActivatedLaterWithUserPassword() 90 verify(mockListener).onWeakEscrowTokenActivated(handle, PRIMARY_USER_ID); in testWeakTokenActivatedLaterWithUserPassword() 112 assertTrue(mService.isWeakEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokensRemovedIfCredentialChanged() 114 pattern, handle, token, PRIMARY_USER_ID)); in testWeakTokensRemovedIfCredentialChanged() 115 assertFalse(mLocalService.isEscrowTokenActive(handle, PRIMARY_USER_ID)); in testWeakTokensRemovedIfCredentialChanged() 129 mService.removeWeakEscrowToken(handle, PRIMARY_USER_ID); in testWeakTokenRemovedListenerRegistered() [all …]
|
H A D | FakeGateKeeperService.java | 41 public VerifyHandle(byte[] handle) { in VerifyHandle() argument 42 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in VerifyHandle() 43 buffer.put(handle, 0, handle.length); in VerifyHandle() 69 public AuthToken(byte[] handle) { in AuthToken() argument 70 ByteBuffer buffer = ByteBuffer.allocate(handle.length); in AuthToken() 71 buffer.put(handle, 0, handle.length); in AuthToken() 97 if (Arrays.equals(currentPassword, handle.password)) { in enroll() 100 refreshSid(uid, handle.sid, false); in enroll() 128 if (Arrays.equals(handle.password, providedPassword)) { in verifyChallenge() 135 refreshSid(uid, handle.sid, false); in verifyChallenge() [all …]
|
/aosp14/system/core/libstats/push_compat/ |
H A D | StatsEventCompat.cpp | 51 void* handle = dlopen("libstatssocket.so", RTLD_NOW); in StatsEventCompat() local 52 if (handle) { in StatsEventCompat() 53 initializeApiTableLocked(handle); in StatsEventCompat() 74 void StatsEventCompat::initializeApiTableLocked(void* handle) { in initializeApiTableLocked() argument 75 mAStatsEventApi.obtain = (AStatsEvent* (*)())dlsym(handle, "AStatsEvent_obtain"); in initializeApiTableLocked() 80 (void (*)(AStatsEvent*, uint32_t))dlsym(handle, "AStatsEvent_setAtomId"); in initializeApiTableLocked() 86 (void (*)(AStatsEvent*, float))dlsym(handle, "AStatsEvent_writeFloat"); in initializeApiTableLocked() 88 (void (*)(AStatsEvent*, bool))dlsym(handle, "AStatsEvent_writeBool"); in initializeApiTableLocked() 90 handle, "AStatsEvent_writeByteArray"); in initializeApiTableLocked() 95 handle, "AStatsEvent_writeAttributionChain"); in initializeApiTableLocked() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/inputmethod/ |
H A D | InputMethodSubtypeHandleTest.java | 48 final InputMethodSubtypeHandle handle = in testCreateFromRawHandle() local 50 assertNotNull(handle); in testCreateFromRawHandle() 51 assertEquals("com.android.test/.Ime1:subtype:1", handle.toStringHandle()); in testCreateFromRawHandle() 52 assertEquals("com.android.test/.Ime1", handle.getImeId()); in testCreateFromRawHandle() 54 handle.getComponentName()); in testCreateFromRawHandle() 88 assertNotNull(handle); in testCreateFromInputMethodInfo() 90 assertEquals("com.android.test/.Ime1", handle.getImeId()); in testCreateFromInputMethodInfo() 92 handle.getComponentName()); in testCreateFromInputMethodInfo() 99 assertNotNull(handle); in testCreateFromInputMethodInfo() 101 assertEquals("com.android.test/.Ime1", handle.getImeId()); in testCreateFromInputMethodInfo() [all …]
|
/aosp14/system/core/fastboot/device/ |
H A D | flashing.cpp | 79 int FlashRawDataChunk(PartitionHandle* handle, const char* data, size_t len) { in FlashRawDataChunk() argument 96 if (handle->Reset(O_WRONLY) != true) { in FlashRawDataChunk() 122 PartitionHandle* handle = reinterpret_cast<PartitionHandle*>(priv); in WriteCallback() local 124 if (lseek64(handle->fd(), len, SEEK_CUR) < 0) { in WriteCallback() 131 return FlashRawDataChunk(handle, reinterpret_cast<const char*>(data), len); in WriteCallback() 146 lseek64(handle->fd(), 0, SEEK_SET); in FlashBlockDevice() 149 return FlashSparseData(handle, downloaded_data); in FlashBlockDevice() 151 return FlashRawData(handle, downloaded_data); in FlashBlockDevice() 177 PartitionHandle handle; in Flash() local 187 uint64_t block_device_size = get_block_device_size(handle.fd()); in Flash() [all …]
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | SlidingDrawer.java | 293 final View handle = mHandle; in onMeasure() local 312 final View handle = mHandle; in dispatchDraw() local 346 final View handle = mHandle; in onLayout() local 373 mHandleWidth = handle.getWidth(); in onLayout() 388 final View handle = mHandle; in onInterceptTouchEvent() local 390 handle.getHitRect(frame); in onInterceptTouchEvent() 398 handle.setPressed(true); in onInterceptTouchEvent() 592 final View handle = mHandle; in moveHandle() local 596 handle.offsetTopAndBottom(mTopOffset - handle.getTop()); in moveHandle() 615 handle.getHitRect(frame); in moveHandle() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/face/aidl/ |
H A D | AidlNativeHandleUtils.java | 43 @Nullable android.os.NativeHandle handle) throws IOException { in dup() 44 if (handle == null) { in dup() 48 final FileDescriptor[] fds = handle.getFileDescriptors(); in dup() 49 res.ints = handle.getInts().clone(); in dup() 67 public static void close(@Nullable android.hardware.common.NativeHandle handle) in close() argument 69 if (handle != null) { in close() 70 for (ParcelFileDescriptor fd : handle.fds) { in close()
|
/aosp14/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | CallInfo.java | 31 private String handle; field in CallInfo 33 public CallInfo(String handle) { in CallInfo() argument 34 this.handle = handle; in CallInfo() 38 return handle; in getHandle() 75 destination.writeString(handle); in writeToParcel()
|
/aosp14/frameworks/base/services/core/java/com/android/server/sensors/ |
H A D | SensorService.java | 62 private static native void unregisterRuntimeSensorNative(long ptr, int handle); in unregisterRuntimeSensorNative() argument 63 private static native boolean sendRuntimeSensorEventNative(long ptr, int handle, int type, in sendRuntimeSensorEventNative() argument 103 int handle = registerRuntimeSensorNative(mPtr, deviceId, type, name, vendor, in createRuntimeSensor() local 105 mRuntimeSensorHandles.add(handle); in createRuntimeSensor() 106 return handle; in createRuntimeSensor() 111 public void removeRuntimeSensor(int handle) { in removeRuntimeSensor() argument 113 if (mRuntimeSensorHandles.contains(handle)) { in removeRuntimeSensor() 114 mRuntimeSensorHandles.remove(handle); in removeRuntimeSensor() 115 unregisterRuntimeSensorNative(mPtr, handle); in removeRuntimeSensor() 121 public boolean sendSensorEvent(int handle, int type, long timestampNanos, in sendSensorEvent() argument [all …]
|
/aosp14/frameworks/base/core/java/android/service/trust/ |
H A D | TrustAgentService.java | 261 long handle = data.getLong(EXTRA_TOKEN_HANDLE); 263 onEscrowTokenAdded(token, handle, user); 268 long handle = data.getLong(EXTRA_TOKEN_HANDLE); 270 onEscrowTokenStateReceived(handle, tokenState); 275 long handle = data.getLong(EXTRA_TOKEN_HANDLE); 277 onEscrowTokenRemoved(handle, success); 411 public void onEscrowTokenRemoved(long handle, boolean successful) { in onEscrowTokenRemoved() argument 611 public final void removeEscrowToken(long handle, UserHandle user) { in removeEscrowToken() argument 771 msg.getData().putLong(EXTRA_TOKEN_HANDLE, handle); in onEscrowTokenAdded() 778 msg.getData().putLong(EXTRA_TOKEN_HANDLE, handle); in onTokenStateReceived() [all …]
|
/aosp14/frameworks/base/media/java/android/mtp/ |
H A D | MtpServer.java | 123 public void sendObjectAdded(int handle) { in sendObjectAdded() argument 124 native_send_object_added(handle); in sendObjectAdded() 127 public void sendObjectRemoved(int handle) { in sendObjectRemoved() argument 128 native_send_object_removed(handle); in sendObjectRemoved() 131 public void sendObjectInfoChanged(int handle) { in sendObjectInfoChanged() argument 132 native_send_object_info_changed(handle); in sendObjectInfoChanged() 157 private native final void native_send_object_added(int handle); in native_send_object_added() argument 158 private native final void native_send_object_removed(int handle); in native_send_object_removed() argument 159 private native final void native_send_object_info_changed(int handle); in native_send_object_info_changed() argument
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | WindowInfosListenerForTest.java | 163 for (var handle : windowHandles) { in buildWindowInfos() 164 var bounds = new Rect(handle.frameLeft, handle.frameTop, handle.frameRight, in buildWindowInfos() 165 handle.frameBottom); in buildWindowInfos() 168 var display = displayInfoById.get(handle.displayId); in buildWindowInfos() 175 windowInfos.add(new WindowInfo(handle.getWindowToken(), handle.name, handle.displayId, in buildWindowInfos() 176 bounds, handle.inputConfig)); in buildWindowInfos()
|
/aosp14/frameworks/base/libs/androidfw/tests/ |
H A D | TestHelpers.cpp | 30 ::ZipArchiveHandle handle; in ReadFileFromZipToString() 31 int32_t result = OpenArchive(zip_path.c_str(), &handle); in ReadFileFromZipToString() 38 result = ::FindEntry(handle, file.c_str(), &entry); in ReadFileFromZipToString() 40 ::CloseArchive(handle); in ReadFileFromZipToString() 47 handle, &entry, const_cast<uint8_t*>(reinterpret_cast<const uint8_t*>(out_contents->data())), in ReadFileFromZipToString() 50 ::CloseArchive(handle); in ReadFileFromZipToString() 55 ::CloseArchive(handle); in ReadFileFromZipToString()
|