Home
last modified time | relevance | path

Searched refs:fileDescriptors (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbMidiDevice.java174 FileDescriptor[] fileDescriptors = nativeOpen(mAlsaCard, mAlsaDevice, mSubdeviceCount); in openLocked() local
175 if (fileDescriptors == null) { in openLocked()
180 mFileDescriptors = fileDescriptors; in openLocked()
181 int inputStreamCount = fileDescriptors.length; in openLocked()
184 int outputStreamCount = fileDescriptors.length - 1; in openLocked()
189 FileDescriptor fd = fileDescriptors[i]; in openLocked()
200 mOutputStreams[i] = new FileOutputStream(fileDescriptors[i]); in openLocked()
359 private native void nativeClose(FileDescriptor[] fileDescriptors); in nativeClose() argument
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java1142 ParcelFileDescriptor[] fileDescriptors; in createPipe() local
1144 fileDescriptors = ParcelFileDescriptor.createPipe(); in createPipe()
1150 if (fileDescriptors.length != 2) { in createPipe()
1156 if (!fileDescriptors[0].getFileDescriptor().valid() in createPipe()
1157 || !fileDescriptors[1].getFileDescriptor().valid()) { in createPipe()
1163 return Pair.create(fileDescriptors[0], fileDescriptors[1]); in createPipe()