Home
last modified time | relevance | path

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

12345678910>>...23

/frameworks/base/core/java/android/os/
DNativeHandle.java28 import java.io.FileDescriptor;
40 private FileDescriptor[] mFds;
48 this(new FileDescriptor[0], new int[0], false); in NativeHandle()
55 public NativeHandle(@NonNull FileDescriptor descriptor, boolean own) { in NativeHandle()
56 this(new FileDescriptor[] {descriptor}, new int[0], own); in NativeHandle()
64 private static FileDescriptor[] createFileDescriptorArray(@NonNull int[] fds) { in createFileDescriptorArray()
65 FileDescriptor[] list = new FileDescriptor[fds.length]; in createFileDescriptorArray()
67 FileDescriptor descriptor = new FileDescriptor(); in createFileDescriptorArray()
89 public NativeHandle(@NonNull FileDescriptor[] fds, @NonNull int[] ints, boolean own) { in NativeHandle()
114 FileDescriptor[] fds = new FileDescriptor[mFds.length]; in dup()
[all …]
DParcelFileDescriptor.java53 import java.io.FileDescriptor;
71 private final FileDescriptor mFd;
77 private FileDescriptor mCommFd;
183 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor()
188 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor()
220 final FileDescriptor fd = openInternal(file, mode); in open()
253 final FileDescriptor fd = openInternal(file, mode); in open()
262 final FileDescriptor original = new FileDescriptor(); in fromPfd()
268 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
277 final FileDescriptor[] comm = createCommSocketPair(); in fromFd()
[all …]
DFileBridge.java32 import java.io.FileDescriptor;
61 private FileDescriptor mTarget;
63 private final FileDescriptor mServer = new FileDescriptor();
64 private final FileDescriptor mClient = new FileDescriptor();
87 public void setTargetFile(FileDescriptor target) { in setTargetFile()
91 public FileDescriptor getClientSocket() { in getClientSocket()
138 private final FileDescriptor mClient;
146 public FileBridgeOutputStream(FileDescriptor client) { in FileBridgeOutputStream()
DIBinder.java23 import java.io.FileDescriptor;
216 public void dump(@NonNull FileDescriptor fd, @Nullable String[] args) throws RemoteException; in dump()
226 public void dumpAsync(@NonNull FileDescriptor fd, @Nullable String[] args) in dumpAsync()
241 public void shellCommand(@Nullable FileDescriptor in, @Nullable FileDescriptor out, in shellCommand()
242 @Nullable FileDescriptor err, in shellCommand()
DSharedMemory.java29 import java.io.FileDescriptor;
41 private final FileDescriptor mFileDescriptor;
46 private SharedMemory(FileDescriptor fd) { in SharedMemory()
146 public @NonNull FileDescriptor getFileDescriptor() { in getFileDescriptor()
279 FileDescriptor descriptor = source.readRawFileDescriptor();
293 private FileDescriptor mFd;
296 private Closer(FileDescriptor fd, MemoryRegistration memoryReference) { in Closer()
362 private static native FileDescriptor nCreate(String name, int size) throws ErrnoException; in nCreate()
363 private static native int nGetSize(FileDescriptor fd); in nGetSize()
364 private static native int nSetProt(FileDescriptor fd, int prot); in nSetProt()
DShellCommand.java25 import java.io.FileDescriptor;
41 private FileDescriptor mIn;
42 private FileDescriptor mOut;
43 private FileDescriptor mErr;
60 public void init(Binder target, FileDescriptor in, FileDescriptor out, FileDescriptor err, in init()
80 public int exec(Binder target, FileDescriptor in, FileDescriptor out, FileDescriptor err, in exec()
151 public FileDescriptor getOutFileDescriptor() { in getOutFileDescriptor()
178 public FileDescriptor getErrFileDescriptor() { in getErrFileDescriptor()
208 public FileDescriptor getInFileDescriptor() { in getInFileDescriptor()
/frameworks/base/core/java/android/net/
DLocalSocketImpl.java27 import java.io.FileDescriptor;
45 private FileDescriptor fd;
52 FileDescriptor[] inboundFileDescriptors;
55 FileDescriptor[] outboundFileDescriptors;
65 FileDescriptor myFd = fd; in available()
88 FileDescriptor myFd = fd; in read()
106 FileDescriptor myFd = fd; in read()
141 FileDescriptor myFd = fd; in write()
155 FileDescriptor myFd = fd; in write()
162 private native int read_native(FileDescriptor fd) throws IOException; in read_native()
[all …]
DNetworkUtils.java31 import java.io.FileDescriptor;
54 public static native void attachDropAllBPFFilter(FileDescriptor fd) throws SocketException; in attachDropAllBPFFilter()
60 public static native void detachBPFFilter(FileDescriptor fd) throws SocketException; in detachBPFFilter()
101 public static boolean protectFromVpn(FileDescriptor fd) { in protectFromVpn()
124 public static native FileDescriptor resNetworkSend( in resNetworkSend()
134 public static native FileDescriptor resNetworkQuery( in resNetworkQuery()
142 public static native DnsResolver.DnsResponse resNetworkResult(FileDescriptor fd) in resNetworkResult()
149 public static native void resNetworkCancel(FileDescriptor fd); in resNetworkCancel()
171 public static native TcpRepairWindow getTcpRepairWindow(FileDescriptor fd) in getTcpRepairWindow()
DLocalSocket.java22 import java.io.FileDescriptor;
84 public static LocalSocket createConnectedLocalSocket(FileDescriptor fd) { in createConnectedLocalSocket()
305 public void setFileDescriptorsForSend(FileDescriptor[] fds) { in setFileDescriptorsForSend()
319 public FileDescriptor[] getAncillaryFileDescriptors() throws IOException { in getAncillaryFileDescriptors()
339 public FileDescriptor getFileDescriptor() { in getFileDescriptor()
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java38 import java.io.FileDescriptor;
66 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte()
82 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges()
104 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile()
117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite()
174 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart()
186 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset()
198 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionStart()
210 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionEnd()
222 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeOutsideRedaction()
[all …]
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java26 import java.io.FileDescriptor;
75 public void tag(FileDescriptor fd) throws SocketException { in tag()
88 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { in tagSocketFd()
102 public void untag(FileDescriptor fd) throws SocketException { in untag()
109 private void unTagSocketFd(FileDescriptor fd) { in unTagSocketFd()
158 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd()
159 private static native int native_untagSocketFd(FileDescriptor fd); in native_untagSocketFd()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java25 import java.io.FileDescriptor;
71 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null; in performBackup_checked()
72 FileDescriptor newStateFd = newState.getFileDescriptor(); in performBackup_checked()
123 native private static int performBackup_native(FileDescriptor oldState, in performBackup_native()
124 long data, FileDescriptor newState, String[] files, String[] keys); in performBackup_native()
126 private static native int writeSnapshot_native(long ptr, FileDescriptor fd); in writeSnapshot_native()
DBackupDataOutput.java23 import java.io.FileDescriptor;
79 public BackupDataOutput(FileDescriptor fd) { in BackupDataOutput()
85 public BackupDataOutput(FileDescriptor fd, long quota) { in BackupDataOutput()
90 public BackupDataOutput(FileDescriptor fd, long quota, int transportFlags) { in BackupDataOutput()
170 private native static long ctor(FileDescriptor fd); in ctor()
DBackupHelperDispatcher.java23 import java.io.FileDescriptor;
55 FileDescriptor oldStateFD = null; in performBackup()
86 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup()
145 private static native int readHeader_native(Header h, FileDescriptor fd); in readHeader_native()
146 private static native int skipChunk_native(FileDescriptor fd, int bytesToSkip); in skipChunk_native()
148 private static native int allocateHeader_native(Header h, FileDescriptor fd); in allocateHeader_native()
149 private static native int writeHeader_native(Header h, FileDescriptor fd, int pos); in writeHeader_native()
/frameworks/base/media/java/android/media/midi/
DMidiDeviceServer.java35 import java.io.FileDescriptor;
172 private static FileDescriptor[] createSeqPacketSocketPair() throws IOException { in createSeqPacketSocketPair()
174 final FileDescriptor fd0 = new FileDescriptor(); in createSeqPacketSocketPair()
175 final FileDescriptor fd1 = new FileDescriptor(); in createSeqPacketSocketPair()
177 return new FileDescriptor[] { fd0, fd1 }; in createSeqPacketSocketPair()
187 public FileDescriptor openInputPort(IBinder token, int portNumber) {
206 FileDescriptor[] pair = createSeqPacketSocketPair();
225 public FileDescriptor openOutputPort(IBinder token, int portNumber) {
238 FileDescriptor[] pair = createSeqPacketSocketPair();
295 public int connectPorts(IBinder token, FileDescriptor fd,
DMidiInputPort.java28 import java.io.FileDescriptor;
41 private FileDescriptor mFileDescriptor;
51 FileDescriptor fd, int portNumber) { in MidiInputPort()
62 /* package */ MidiInputPort(FileDescriptor fd, int portNumber) { in MidiInputPort()
105 /* package */ FileDescriptor claimFileDescriptor() { in claimFileDescriptor()
107 FileDescriptor fd; in claimFileDescriptor()
DIMidiDeviceServer.aidl24 FileDescriptor openInputPort(IBinder token, int portNumber); in openInputPort()
25 FileDescriptor openOutputPort(IBinder token, int portNumber); in openOutputPort()
31 int connectPorts(IBinder token, in FileDescriptor fd, int outputPortNumber); in connectPorts()
/frameworks/base/services/core/java/com/android/server/utils/
DPriorityDump.java21 import java.io.FileDescriptor;
139 public static void dump(PriorityDumper dumper, FileDescriptor fd, PrintWriter pw, in dump()
220 default void dumpCritical(FileDescriptor fd, PrintWriter pw, String[] args, in dumpCritical()
228 default void dumpHigh(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dumpHigh()
235 default void dumpNormal(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dumpNormal()
247 default void dump(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dump()
/frameworks/base/services/core/java/com/android/server/connectivity/
DTcpKeepaliveController.java51 import java.io.FileDescriptor;
104 private final SparseArray<FileDescriptor> mListeners = new SparseArray<>();
111 public static TcpKeepalivePacketData getTcpKeepalivePacket(@NonNull FileDescriptor fd) in getTcpKeepalivePacket()
128 private static TcpKeepalivePacketDataParcelable switchToRepairMode(FileDescriptor fd) in switchToRepairMode()
230 private static void switchOutOfRepairMode(@NonNull final FileDescriptor fd) { in switchOutOfRepairMode()
246 public void startSocketMonitor(@NonNull final FileDescriptor fd, in startSocketMonitor()
283 final FileDescriptor fd; in stopSocketMonitor()
302 private static boolean isSocketIdle(FileDescriptor fd) throws ErrnoException { in isSocketIdle()
306 private static boolean isReceiveQueueEmpty(FileDescriptor fd) in isReceiveQueueEmpty()
317 private static boolean isSendQueueEmpty(FileDescriptor fd) in isSendQueueEmpty()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java33 import java.io.FileDescriptor;
51 FileDescriptor mOutFd;
59 void go(IInterface iface, FileDescriptor fd, String prefix, in go()
89 public static void dumpAsync(IBinder binder, FileDescriptor out, String[] args) in dumpAsync()
133 static void go(Caller caller, IInterface iface, FileDescriptor out, in go()
138 static void go(Caller caller, IInterface iface, FileDescriptor out, in go()
155 static void goDump(IBinder binder, FileDescriptor out, in goDump()
160 static void goDump(IBinder binder, FileDescriptor out, in goDump()
177 public void go(FileDescriptor out) throws IOException { in go()
181 public void go(FileDescriptor out, long timeout) throws IOException { in go()
/frameworks/base/cmds/locksettings/src/com/android/commands/locksettings/
DLockSettingsCmd.java26 import java.io.FileDescriptor;
74 lockSettings.asBinder().shellCommand(FileDescriptor.in, FileDescriptor.out, in onRun()
75 FileDescriptor.err, getRawArgs(), new ShellCallback(), new ResultReceiver(null) {}); in onRun()
/frameworks/base/core/java/android/util/
DLocalLog.java22 import java.io.FileDescriptor;
79 public synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump()
90 public synchronized void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { in reverseDump()
107 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump()
113 public void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { in reverseDump()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DTapPacketReader.java27 import java.io.FileDescriptor;
43 private final FileDescriptor mTapFd;
48 public TapPacketReader(Handler h, FileDescriptor tapFd, int maxPacketSize) { in TapPacketReader()
54 protected FileDescriptor createFd() { in createFd()
/frameworks/libs/net/common/device/android/net/util/
DFdEventsReader.java35 import java.io.FileDescriptor;
83 private FileDescriptor mFd;
86 protected static void closeFd(FileDescriptor fd) { in closeFd()
149 protected abstract FileDescriptor createFd(); in createFd()
160 protected abstract int readPacket(@NonNull FileDescriptor fd, @NonNull BufferType buffer) in readPacket()
/frameworks/base/services/coverage/java/com/android/server/coverage/
DCoverageService.java29 import java.io.FileDescriptor;
58 public void onShellCommand(FileDescriptor in, FileDescriptor out, FileDescriptor err, in onShellCommand()

12345678910>>...23