Lines Matching refs:handle

54     NativeHandle handle = {  in makeTestAidlHandle()  local
58 handle.fds[0].set(dup(0)); in makeTestAidlHandle()
59 handle.fds[1].set(dup(0)); in makeTestAidlHandle()
60 return handle; in makeTestAidlHandle()
64 NativeHandle handle; in TEST() local
65 EXPECT_TRUE(isAidlNativeHandleEmpty(handle)); in TEST()
66 native_handle_t* to = makeFromAidl(handle); in TEST()
67 checkEq(handle, to, false /*exceptFds*/); in TEST()
73 NativeHandle handle = makeTestAidlHandle(); in TEST() local
74 EXPECT_FALSE(isAidlNativeHandleEmpty(handle)); in TEST()
75 native_handle_t* to = makeFromAidl(handle); in TEST()
76 checkEq(handle, to, false /*exceptFds*/); in TEST()
82 NativeHandle handle; in TEST() local
83 native_handle_t* to = dupFromAidl(handle); in TEST()
84 checkEq(handle, to, true /*exceptFds*/); in TEST()
90 NativeHandle handle = makeTestAidlHandle(); in TEST() local
91 native_handle_t* to = dupFromAidl(handle); in TEST()
92 checkEq(handle, to, true /*exceptFds*/); in TEST()
98 native_handle_t* handle = native_handle_create(2, 4); in makeTestLibcutilsHandle() local
99 handle->data[0] = dup(0); in makeTestLibcutilsHandle()
100 handle->data[1] = dup(0); in makeTestLibcutilsHandle()
101 handle->data[2] = 1; in makeTestLibcutilsHandle()
102 handle->data[3] = 2; in makeTestLibcutilsHandle()
103 handle->data[4] = 3; in makeTestLibcutilsHandle()
104 handle->data[5] = 4; in makeTestLibcutilsHandle()
105 return handle; in makeTestLibcutilsHandle()
109 native_handle_t* handle = native_handle_create(0, 0); in TEST() local
110 NativeHandle to = makeToAidl(handle); in TEST()
112 checkEq(to, handle, false /*exceptFds*/); in TEST()
114 EXPECT_EQ(0, native_handle_delete(handle)); in TEST()
118 native_handle_t* handle = makeTestLibcutilsHandle(); in TEST() local
119 NativeHandle to = makeToAidl(handle); in TEST()
121 checkEq(to, handle, false /*exceptFds*/); in TEST()
123 EXPECT_EQ(0, native_handle_delete(handle)); in TEST()
127 native_handle_t* handle = native_handle_create(0, 0); in TEST() local
128 NativeHandle to = dupToAidl(handle); in TEST()
130 checkEq(to, handle, true /*exceptFds*/); in TEST()
131 EXPECT_EQ(0, native_handle_close(handle)); in TEST()
132 EXPECT_EQ(0, native_handle_delete(handle)); in TEST()
136 native_handle_t* handle = makeTestLibcutilsHandle(); in TEST() local
137 NativeHandle to = dupToAidl(handle); in TEST()
139 checkEq(to, handle, true /*exceptFds*/); in TEST()
140 EXPECT_EQ(0, native_handle_close(handle)); in TEST()
141 EXPECT_EQ(0, native_handle_delete(handle)); in TEST()