Home
last modified time | relevance | path

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

123

/packages/services/Car/cpp/evs/apps/default/src/
DUtils.cpp30 NativeHandle dup; in dupNativeHandle() local
32 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
35 dup.fds[i] = std::move(handle.fds[i].dup()); in dupNativeHandle()
37 dup.ints = handle.ints; in dupNativeHandle()
39 return std::move(dup); in dupNativeHandle()
43 HardwareBuffer dup = { in dupHardwareBuffer() local
48 return std::move(dup); in dupHardwareBuffer()
54 BufferDesc dup = { in dupBufferDesc() local
63 return std::move(dup); in dupBufferDesc()
/packages/services/Car/service/jni/evs/
DStreamHandler.cpp40 NativeHandle dup; in dupNativeHandle() local
42 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
45 dup.fds.at(i).set(handle.fds[i].get()); in dupNativeHandle()
49 dup.fds[i] = std::move(handle.fds[i].dup()); in dupNativeHandle()
52 dup.ints = handle.ints; in dupNativeHandle()
54 return std::move(dup); in dupNativeHandle()
58 HardwareBuffer dup = { in dupHardwareBuffer() local
63 return std::move(dup); in dupHardwareBuffer()
67 BufferDesc dup = { in dupBufferDesc() local
76 return std::move(dup); in dupBufferDesc()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DUtils.java248 ByteBuffer dup = data.duplicate(); in bytesToBingoCard() local
249 dup.limit(dup.position() + len); in bytesToBingoCard()
250 return bytesToBingoCard(dup); in bytesToBingoCard()
254 ByteBuffer dup = data.duplicate(); in bytesToBingoCard() local
256 while (dup.hasRemaining()) { in bytesToBingoCard()
257 sbx.append(String.format("%02x ", dup.get() & BYTE_MASK)); in bytesToBingoCard()
259 dup = data.duplicate(); in bytesToBingoCard()
261 while (dup.hasRemaining()) { in bytesToBingoCard()
262 sbx.append(String.format("%c", toAscii(dup.get() & BYTE_MASK))); in bytesToBingoCard()
/packages/services/Car/cpp/evs/manager/aidl/utils/src/
DUtils.cpp521 NativeHandle dup; in dupNativeHandle() local
523 dup.fds = std::vector<::ndk::ScopedFileDescriptor>(handle.fds.size()); in dupNativeHandle()
526 dup.fds.at(i).set(handle.fds[i].get()); in dupNativeHandle()
530 dup.fds[i] = std::move(handle.fds[i].dup()); in dupNativeHandle()
533 dup.ints = handle.ints; in dupNativeHandle()
535 return std::move(dup); in dupNativeHandle()
539 HardwareBuffer dup = { in dupHardwareBuffer() local
544 return std::move(dup); in dupHardwareBuffer()
548 BufferDesc dup = { in dupBufferDesc() local
557 return std::move(dup); in dupBufferDesc()
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/
DPluginCode.java113 public static CloseableList<PluginCode> dup(Iterable<PluginCode> source) throws IOException { in dup() method in PluginCode
118 .setNativeFd(pluginCode.nativeFd().dup()) in dup()
119 .setNonNativeFd(pluginCode.nonNativeFd().dup()) in dup()
/packages/services/Car/car-lib/src/android/car/telemetry/
DCarTelemetryManager.java476 ParcelFileDescriptor dup = null; in onResult() local
478 dup = reportFileDescriptor.dup(); in onResult()
485 final ParcelFileDescriptor readFd = dup; in onResult()
/packages/modules/NeuralNetworks/runtime/
DEvent.h69 mSyncFenceFd = dup(sync_fence_fd); in SyncFenceEvent()
110 return dup(mSyncFenceFd); in getSyncFenceFd()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DRemoteSocketFactoryClient.java88 final FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openSocketFd()
98 final FileDescriptor fd = Os.dup(pfd.getFileDescriptor()); in openDatagramSocketFd()
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DSdkSandboxShellCommand.java183 try (ParcelFileDescriptor pfdIn = ParcelFileDescriptor.dup(getInFileDescriptor()); in runAdServicesShellCommand()
184 ParcelFileDescriptor pfdOut = ParcelFileDescriptor.dup(getOutFileDescriptor()); in runAdServicesShellCommand()
185 ParcelFileDescriptor pfdErr = ParcelFileDescriptor.dup(getErrFileDescriptor())) { in runAdServicesShellCommand()
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DMockEvsHal.cpp72 NativeHandle dup; in copyNativeHandle() local
74 dup.fds = std::vector<ndk::ScopedFileDescriptor>(handle.fds.size()); in copyNativeHandle()
77 dup.fds.at(i).set(handle.fds[i].get()); in copyNativeHandle()
81 dup.fds[i] = std::move(handle.fds[i].dup()); in copyNativeHandle()
84 dup.ints = handle.ints; in copyNativeHandle()
86 return std::move(dup); in copyNativeHandle()
/packages/modules/Connectivity/framework/src/android/net/
DConnectivityManager.java2590 ParcelFileDescriptor dup; in createSocketKeepalive() local
2594 dup = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in createSocketKeepalive()
2598 dup = createInvalidFd(); in createSocketKeepalive()
2600 return new NattSocketKeepalive(mService, network, dup, socket.getResourceId(), source, in createSocketKeepalive()
2633 ParcelFileDescriptor dup; in createNattKeepalive() local
2636 dup = pfd.dup(); in createNattKeepalive()
2640 dup = createInvalidFd(); in createNattKeepalive()
2642 return new NattSocketKeepalive(mService, network, dup, in createNattKeepalive()
2670 ParcelFileDescriptor dup; in createSocketKeepalive() local
2672 dup = ParcelFileDescriptor.fromSocket(socket); in createSocketKeepalive()
[all …]
/packages/modules/Media/apex/framework/java/android/media/
DProxyDataSourceCallback.java38 mPFD = pfd.dup(); in ProxyDataSourceCallback()
/packages/services/Car/cpp/car_binder_lib/largeParcelable/include/
DSharedMemory.h74 unique_fd fd(dup(getFd())); in getDupFd()
/packages/modules/Connectivity/framework-t/src/android/net/
DIpSecUdpEncapResponse.java77 fileDescriptor = (status == IpSecManager.Status.OK) ? ParcelFileDescriptor.dup(inFd) : null; in IpSecUdpEncapResponse()
DIpSecManager.java493 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.dup(socket)) { in applyTransportModeTransform()
553 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.dup(socket)) { in removeTransportModeTransforms()
/packages/modules/Bluetooth/floss/pandora/server/
Dl2cap.py157 fd_dup = os.dup(fd)
229 fd_dup = os.dup(fd)
Drfcomm.py100 fd_dup = os.dup(fd)
272 fd_dup = os.dup(fd)
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/databroker/
DDataBrokerTest.java753 ParcelFileDescriptor dup = null; in invokeScriptForLargeInput() local
755 dup = publishedDataFileDescriptor.dup(); in invokeScriptForLargeInput()
757 final ParcelFileDescriptor fd = Objects.requireNonNull(dup); in invokeScriptForLargeInput()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperConnectionUtils.kt189 val dup = MotionEvent.obtainNoHistory(event).also { it.setLocation(event.x, event.y) } in <lambda>() constant
192 engine.dispatchPointer(dup) in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DLivePreviewFragment.java274 MotionEvent dup = MotionEvent.obtainNoHistory(ev);
275 dup.setLocation(ev.getX(), ev.getY());
277 mWallpaperConnection.getEngine().dispatchPointer(dup);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarTestServiceUnitTest.java97 fdHolder[0] = fd.dup(); in testDumpVhal_VhalNotClosingFd()
/packages/modules/Virtualization/libs/android_display_backend/
Dcrosvm_android_display_client.cpp76 mCursorStream = ndk::ScopedFileDescriptor(dup(in_stream.get())); in setCursorStream()
/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelable.java283 SharedMemory memory = SharedMemory.fromFileDescriptor(sharedMemoryFd.dup()); in reconstructStableAIDLParcelable()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java339 ParcelFileDescriptor readFd = fds[0].dup(); in testGetFinishedReport_whenMultiple_shouldReceiveCorrectStatusCode()
395 ParcelFileDescriptor readFd = fds[0].dup(); in testGetAllFinishedReports_shouldSendEverything()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DRegisteredT3tIdentifiersCache.java247 pFd = ParcelFileDescriptor.dup(fd); in dump()

123