/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13234/ |
D | poc.c | 29 int EAS_fread(void *handle, void *buf, int offset, int size) { in EAS_fread() argument 30 fseek(handle, offset, SEEK_SET); in EAS_fread() 31 return fread(buf, 1, size, handle); in EAS_fread() 34 int EAS_fsize(void *handle) { in EAS_fsize() argument 35 fseek(handle, 0, SEEK_END); in EAS_fsize() 36 return ftell(handle); in EAS_fsize() 40 EAS_HANDLE handle; in PlayFile() local 42 file.handle = (void*) fopen(filename, "rb"); in PlayFile() 46 if (EAS_OpenFile(easData, &file, &handle) != EAS_SUCCESS) { in PlayFile() 48 if(file.handle) { in PlayFile() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | HidlMemoryTest.java | 33 NativeHandle handle = new NativeHandle(); in testAccessors() local 34 HidlMemory mem = new HidlMemory("some name", 123, handle); in testAccessors() 37 assertTrue(handle == mem.getHandle()); in testAccessors() 42 NativeHandle handle = new NativeHandle(); in testClose() local 43 HidlMemory mem = new HidlMemory("some name", 123, handle); in testClose() 44 assertFalse(isHandleClosed(handle)); in testClose() 46 assertTrue(isHandleClosed(handle)); in testClose() 57 NativeHandle handle = new NativeHandle(); in testRelease() local 58 HidlMemory mem = new HidlMemory("some name", 123, handle); in testRelease() 59 assertTrue(mem.getHandle() == handle); in testRelease() [all …]
|
D | HwBinderTest.java | 241 NativeHandle handle = new NativeHandle(); in testEmptyNativeHandle() local 243 assertFalse(handle.hasSingleFileDescriptor()); in testEmptyNativeHandle() 244 assertArrayEquals(new FileDescriptor[]{}, handle.getFileDescriptors()); in testEmptyNativeHandle() 245 assertArrayEquals(new int[]{}, handle.getInts()); in testEmptyNativeHandle() 247 handle.close(); in testEmptyNativeHandle() 252 NativeHandle handle = new NativeHandle(); in testEmptyHandleInvalidatedAfterClose() local 253 handle.close(); in testEmptyHandleInvalidatedAfterClose() 254 handle.close(); in testEmptyHandleInvalidatedAfterClose() 259 NativeHandle handle = new NativeHandle(); in testEmptyHandleHasNoSingleFileDescriptor() local 260 handle.getFileDescriptor(); in testEmptyHandleHasNoSingleFileDescriptor() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/jni/ |
D | number_providers.cpp | 32 void *handle; in get_number() local 34 handle = dlopen (libraryFileName, RTLD_LAZY); in get_number() 35 if (!handle) { in get_number() 38 pFuncGetNumber functionGetNumber = (pFuncGetNumber) dlsym(handle, kFunctionName); in get_number() 40 dlclose(handle); in get_number() 44 dlclose(handle); in get_number()
|
D | com_android_cts_splitapp_Native.cpp | 32 void *handle; in get_number_from_other_library() local 34 handle = dlopen (library_file_name, RTLD_LAZY); in get_number_from_other_library() 35 if (!handle) { in get_number_from_other_library() 39 pFuncGetNumber functionGetNumber = (pFuncGetNumber) dlsym(handle, function_name); in get_number_from_other_library() 42 dlclose(handle); in get_number_from_other_library() 46 dlclose(handle); in get_number_from_other_library()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | IPCThreadState.h | 63 status_t transact(int32_t handle, 67 void incStrongHandle(int32_t handle, BpBinder *proxy); 68 void decStrongHandle(int32_t handle); 69 void incWeakHandle(int32_t handle, BpBinder *proxy); 70 void decWeakHandle(int32_t handle); 71 status_t attemptIncStrongHandle(int32_t handle); 72 static void expungeHandle(int32_t handle, IBinder* binder); 73 status_t requestDeathNotification( int32_t handle, 75 status_t clearDeathNotification( int32_t handle, 109 int32_t handle,
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/ |
D | poc.c | 67 gem_close.handle = 1; in prepare() 72 cmdbufs[i].handle = 0; in prepare() 73 relocs[i].cmdbuf.handle = 0; in prepare() 75 relocs[i].target.handle = 0; in prepare() 126 cmdbufs[i].handle = gem_create.handle; in main() 127 relocs[i].cmdbuf.handle = gem_create.handle; in main() 128 relocs[i].target.handle = gem_create.handle; in main()
|
D | local_poc.h | 60 __u32 handle; member 74 __u32 handle; member 101 __u32 handle; member 105 __u32 handle; member 110 __u32 handle; member 234 __u32 handle; member 238 __u32 handle; member
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultPhoneAccountTest.java | 54 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testDefaultIsSet() local 55 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testDefaultIsSet() 85 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testSetUserSelectedOutgoingPhoneAccount() local 86 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testSetUserSelectedOutgoingPhoneAccount() 134 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingNoUserSelected() local 135 assertEquals(null, handle); in testGetDefaultOutgoingNoUserSelected() 180 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingPhoneAccountOneOrMany() local 181 assertEquals(null, handle); in testGetDefaultOutgoingPhoneAccountOneOrMany() 194 handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingPhoneAccountOneOrMany() 195 assertEquals(null, handle); in testGetDefaultOutgoingPhoneAccountOneOrMany()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8428/ |
D | poc.c | 39 __u32 handle; /* nvmap handle */ member 50 __u32 handle; /* returns nvmap handle */ member 54 __u32 handle; /* nvmap handle */ member 126 g_allocation->handle = -1; in trigger_nvmap_create() 129 return g_allocation->handle; in trigger_nvmap_create() 132 void trigger_nvmap_alloc(int handle) { in trigger_nvmap_alloc() argument 133 g_real_alloc.handle = handle; in trigger_nvmap_alloc() 138 void trigger_nvmap_free(int handle) { in trigger_nvmap_free() argument 139 ioctl(g_fd, NVMAP_IOC_FREE, handle); in trigger_nvmap_free() 185 void trigger_rw_handle(int handle) { in trigger_rw_handle() argument
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | RangingSessionTest.java | 61 SessionHandle handle = new SessionHandle(123); in testOnRangingOpened_OnOpenSuccessCalled() local 64 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_OnOpenSuccessCalled() 77 SessionHandle handle = new SessionHandle(123); in testOnRangingOpened_CannotOpenClosedSession() local 80 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingOpened_CannotOpenClosedSession() 101 SessionHandle handle = new SessionHandle(123); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() local 104 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingClosed_OnClosedCalledWhenSessionNotOpen() 117 SessionHandle handle = new SessionHandle(123); in testOnRangingClosed_OnClosedCalled() local 120 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingClosed_OnClosedCalled() 132 SessionHandle handle = new SessionHandle(123); in testOnRangingResult_OnReportReceivedCalled() local 135 RangingSession session = new RangingSession(EXECUTOR, callback, adapter, handle); in testOnRangingResult_OnReportReceivedCalled() [all …]
|
D | SessionHandleTest.java | 40 SessionHandle handle = new SessionHandle(handleId); in testBasic() local 41 assertEquals(handle.getId(), handleId); in testBasic() 47 SessionHandle handle = new SessionHandle(10); in testParcel() local 48 handle.writeToParcel(parcel, 0); in testParcel() 51 assertEquals(handle, fromParcel); in testParcel()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-6262/ |
D | poc.c | 60 return new_arg.info.handle; in nouveau_gem_ioctl_new() 63 static void nouveau_gem_ioctl_map(int fd, uint32_t handle) { in nouveau_gem_ioctl_map() argument 66 map_arg.handle = handle; in nouveau_gem_ioctl_map() 87 uint32_t handle = nouveau_gem_ioctl_new(fd); in main() local 90 nouveau_gem_ioctl_map(fd, handle); in main()
|
D | local_poc.h | 59 void* handle; member 101 uint32_t handle; member 111 uint32_t handle; member 121 uint32_t handle; member 155 uint32_t handle; member 169 uint32_t handle; member 229 __u32 handle; member 233 __u32 handle; member 284 __u32 handle; member 292 __u32 handle; member [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0490/ |
D | poc.cpp | 100 int handle; member 109 int handle; member 113 int handle; member 147 int handle; member 157 int handle; member 186 void *handle; member 211 int handle; member 243 struct ion_handle_data handle; member 332 return iia.allocation.handle; in alloc_handle() 341 int handle = alloc_handle(ION_HEAP_TYPE_MULTIMEDIA_PA2MVA, 0x40080000); in poc_write_kernel() local [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8431/ |
D | poc.c | 78 cmdbufs[i].handle = gem_create.handle; in main() 79 relocs[i].cmdbuf.handle = gem_create.handle; in main() 81 relocs[i].target.handle = gem_create.handle; in main()
|
D | local_poc.h | 60 __u32 handle; member 74 __u32 handle; member 101 __u32 handle; member 105 __u32 handle; member 110 __u32 handle; member 234 __u32 handle; member 238 __u32 handle; member
|
/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_BasicLoaderTest.cpp | 40 void* handle = dlopen(kTestLibName, RTLD_NOW); in run_test() local 41 if (handle == nullptr) { in run_test() 46 void* taxicab_number = dlsym(handle, "dlopen_testlib_taxicab_number"); in run_test() 52 dlclose(handle); in run_test()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0508/ |
D | poc.c | 58 __u32 handle; member 77 __u32 handle; member 126 int handle; member 130 int handle; member 164 g_gem_handle = para.handle; in gem_create() 168 para.handle = g_gem_handle; in handle_to_fd() 176 g_ion_handle = para.handle; in ion_import() 180 para.handle = g_ion_handle; in ion_handle_free()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8430/ |
D | poc.c | 58 __u32 handle; /* returns nvmap handle */ member 61 __u32 handle; /* nvmap handle */ member 134 return g_nvmap_hdl.handle; in trigger_nvmap_create() 138 int data = g_nvmap_hdl.handle; in trigger_nvmap_free() 141 void trigger_nvmap_alloc(int handle) { in trigger_nvmap_alloc() argument 145 g_real_alloc.handle = handle; in trigger_nvmap_alloc() 150 g_error_notifier.mem = g_nvmap_hdl.handle; in prepare_data()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8460/ |
D | poc.c | 38 __u32 handle; /* nvmap handle */ member 49 __u32 handle; /* returns nvmap handle */ member 59 __u32 handle; /* nvmap handle */ member 72 __u32 handle; /* nvmap handle */ member 130 handles[i] = op.handle; in main() 133 alloc.handle = op.handle; in main()
|
/cts/hostsidetests/graphics/gpuprofiling/app/ |
D | android_graphics_cts_GpuCounters.cpp | 61 void *handle = dlopen(producerPath.c_str(), RTLD_GLOBAL); in startCounterProducer() local 62 if ((error = dlerror()) != nullptr || handle == nullptr) { in startCounterProducer() 67 FN_PTR startFunc = (FN_PTR)dlsym(handle, "start"); in startCounterProducer() 70 dlclose(handle); in startCounterProducer() 83 dlclose(handle); in startCounterProducer()
|
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/native_split/jni/ |
D | com_android_cts_isolatedsplitapp_Native.cpp | 36 void* handle; in get_number_from_other_library() local 38 handle = dlopen(library_file_name, RTLD_LAZY); in get_number_from_other_library() 39 if (!handle) { in get_number_from_other_library() 43 pFuncGetNumber functionGetNumber = (pFuncGetNumber)dlsym(handle, function_name); in get_number_from_other_library() 46 dlclose(handle); in get_number_from_other_library() 50 dlclose(handle); in get_number_from_other_library()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8429/ |
D | poc.c | 59 __u32 handle; /* nvmap handle */ member 70 __u32 handle; /* returns nvmap handle */ member 74 __u32 handle; /* nvmap handle */ member 119 alloc.handle = g_allocation->handle; in trigger_nvmap_alloc() 141 g_allocation->handle = -1; in prepare_data()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 27 void poc(int handle) { in poc() argument 48 data.writeInt32(handle); // handle in poc() 70 data.writeInt32(handle); // handle in poc() 112 int32_t handle = s.getHandle(); in get_sensor_list() local 113 printf("%s : %s, handle %d\n", nstr.c_str(), vstr.c_str(), handle); in get_sensor_list() 114 poc(handle); in get_sensor_list()
|