/frameworks/native/libs/incidentcompanion/src/ |
D | IncidentManager.cpp | 26 mFileDescriptor(-1) { in IncidentReport() 30 if (mFileDescriptor >= 0) { in ~IncidentReport() 31 close(mFileDescriptor); in ~IncidentReport() 49 if (mFileDescriptor >= 0) { in writeToParcel() 55 err = out->writeDupParcelFileDescriptor(mFileDescriptor); in writeToParcel() 92 mFileDescriptor = dup(fd); in readFromParcel() 93 if (mFileDescriptor < 0) { in readFromParcel() 103 if (mFileDescriptor >= 0) { in setFileDescriptor() 104 close(mFileDescriptor); in setFileDescriptor() 107 mFileDescriptor = -1; in setFileDescriptor() [all …]
|
/frameworks/base/core/java/android/os/ |
D | SharedMemory.java | 42 private final FileDescriptor mFileDescriptor; field in SharedMemory 58 mFileDescriptor = fd; in SharedMemory() 59 mSize = nGetSize(mFileDescriptor); in SharedMemory() 65 mCleaner = Cleaner.create(mFileDescriptor, in SharedMemory() 66 new Closer(mFileDescriptor.getInt$(), mMemoryRegistration)); in SharedMemory() 91 if (!mFileDescriptor.valid()) { in checkOpen() 153 int errno = nSetProt(mFileDescriptor, prot); in setProtect() 168 return mFileDescriptor; in getFileDescriptor() 183 return mFileDescriptor.getInt$(); in getFd() 248 long address = Os.mmap(0, length, prot, OsConstants.MAP_SHARED, mFileDescriptor, offset); in map() [all …]
|
D | DropBoxManager.java | 125 private final @Nullable ParcelFileDescriptor mFileDescriptor; field in DropBoxManager.Entry 135 mFileDescriptor = null; in Entry() 148 mFileDescriptor = null; in Entry() 166 mFileDescriptor = null; in Entry() 184 mFileDescriptor = data; in Entry() 200 mFileDescriptor = ParcelFileDescriptor.open(data, ParcelFileDescriptor.MODE_READ_ONLY); in Entry() 206 try { if (mFileDescriptor != null) mFileDescriptor.close(); } catch (IOException e) { } in close() 256 } else if (mFileDescriptor != null) { in getInputStream() 257 is = new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 281 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() [all …]
|
D | IncidentManager.java | 280 private ParcelFileDescriptor mFileDescriptor; field in IncidentManager.IncidentReport 286 mFileDescriptor = ParcelFileDescriptor.CREATOR.createFromParcel(in); in IncidentReport() 288 mFileDescriptor = null; in IncidentReport() 297 if (mFileDescriptor != null) { in close() 298 mFileDescriptor.close(); in close() 299 mFileDescriptor = null; in close() 328 if (mFileDescriptor == null) { in getInputStream() 331 return new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 338 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() 347 if (mFileDescriptor != null) { in writeToParcel() [all …]
|
/frameworks/av/services/oboeservice/ |
D | SharedRingBuffer.cpp | 49 mFileDescriptor.reset(ashmem_create_region("AAudioSharedRingBuffer", mSharedMemorySizeInBytes)); in allocate() 50 if (mFileDescriptor.get() == -1) { in allocate() 54 ALOGV("allocate() mFileDescriptor = %d\n", mFileDescriptor.get()); in allocate() 56 …int err = ashmem_set_prot_region(mFileDescriptor.get(), PROT_READ|PROT_WRITE); // TODO error handl… in allocate() 59 mFileDescriptor.reset(); in allocate() 68 mFileDescriptor.get(), 0); in allocate() 71 mFileDescriptor.reset(); in allocate() 90 int fdIndex = endpointParcelable->addFileDescriptor(mFileDescriptor, mSharedMemorySizeInBytes); in fillParcelable()
|
D | SharedRingBuffer.h | 65 android::base::unique_fd mFileDescriptor;
|
/frameworks/base/media/java/android/media/tv/ |
D | AdRequest.java | 66 private final ParcelFileDescriptor mFileDescriptor; field in AdRequest 78 mFileDescriptor = fileDescriptor; in AdRequest() 90 mFileDescriptor = ParcelFileDescriptor.CREATOR.createFromParcel(source); in AdRequest() 92 mFileDescriptor = null; in AdRequest() 124 return mFileDescriptor; in getFileDescriptor() 189 if (mFileDescriptor != null) { in writeToParcel() 191 mFileDescriptor.writeToParcel(dest, flags); in writeToParcel()
|
D | DsmccResponse.java | 74 private final ParcelFileDescriptor mFileDescriptor; field in DsmccResponse 90 mFileDescriptor = file; in DsmccResponse() 107 mFileDescriptor = null; in DsmccResponse() 123 mFileDescriptor = null; in DsmccResponse() 148 mFileDescriptor = null; in DsmccResponse() 153 mFileDescriptor = source.readFileDescriptor(); in DsmccResponse() 172 mFileDescriptor = null; in DsmccResponse() 195 return mFileDescriptor; in getFile() 254 dest.writeFileDescriptor(mFileDescriptor.getFileDescriptor()); in writeToParcel()
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiInputPort.java | 41 private FileDescriptor mFileDescriptor; field in MidiInputPort 56 mFileDescriptor = fd; in MidiInputPort() 109 fd = mFileDescriptor; in claimFileDescriptor() 112 mFileDescriptor = null; in claimFileDescriptor() 139 if (mFileDescriptor != null) { in close() 140 IoUtils.closeQuietly(mFileDescriptor); in close() 141 mFileDescriptor = null; in close()
|
/frameworks/base/core/java/android/hardware/ |
D | SerialPort.java | 38 private ParcelFileDescriptor mFileDescriptor; field in SerialPort 58 mFileDescriptor = pfd; in open() 66 if (mFileDescriptor != null) { in close() 67 mFileDescriptor.close(); in close() 68 mFileDescriptor = null; in close()
|
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/ |
D | AccessoryChat.java | 53 private ParcelFileDescriptor mFileDescriptor; field in AccessoryChat 123 if (mFileDescriptor != null) { in onPause() 125 mFileDescriptor.close(); in onPause() 128 mFileDescriptor = null; in onPause() 141 mFileDescriptor = mUsbManager.openAccessory(accessory); in openAccessory() 142 if (mFileDescriptor != null) { in openAccessory() 143 FileDescriptor fd = mFileDescriptor.getFileDescriptor(); in openAccessory()
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowBackupDataOutput.java | 36 private FileDescriptor mFileDescriptor; field in ShadowBackupDataOutput 43 mFileDescriptor = fd; in __constructor__() 99 mOutput = new ObjectOutputStream(new FileOutputStream(mFileDescriptor)); in ensureOutput()
|
D | ShadowBackupDataInput.java | 48 private FileDescriptor mFileDescriptor; field in ShadowBackupDataInput 56 mFileDescriptor = fd; in __constructor__() 120 mInput = new ObjectInputStream(new FileInputStream(mFileDescriptor)); in ensureInput()
|
/frameworks/native/libs/incidentcompanion/include/android/os/ |
D | IncidentManager.h | 55 int getFileDescriptor() const { return mFileDescriptor; } in getFileDescriptor() 60 int mFileDescriptor; variable
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 21980 Landroid/hardware/SerialPort;->mFileDescriptor:Landroid/os/ParcelFileDescriptor; 29149 Landroid/media/midi/MidiInputPort;->mFileDescriptor:Ljava/io/FileDescriptor; 35831 Landroid/os/DropBoxManager$Entry;->mFileDescriptor:Landroid/os/ParcelFileDescriptor; 38526 Landroid/os/SharedMemory;->mFileDescriptor:Ljava/io/FileDescriptor;
|