/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 | 126 private final @Nullable ParcelFileDescriptor mFileDescriptor; field in DropBoxManager.Entry 136 mFileDescriptor = null; in Entry() 149 mFileDescriptor = null; in Entry() 167 mFileDescriptor = null; in Entry() 185 mFileDescriptor = data; in Entry() 201 mFileDescriptor = ParcelFileDescriptor.open(data, ParcelFileDescriptor.MODE_READ_ONLY); in Entry() 207 try { if (mFileDescriptor != null) mFileDescriptor.close(); } catch (IOException e) { } in close() 257 } else if (mFileDescriptor != null) { in getInputStream() 258 is = new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 282 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() [all …]
|
D | IncidentManager.java | 294 private ParcelFileDescriptor mFileDescriptor; field in IncidentManager.IncidentReport 300 mFileDescriptor = ParcelFileDescriptor.CREATOR.createFromParcel(in); in IncidentReport() 302 mFileDescriptor = null; in IncidentReport() 311 if (mFileDescriptor != null) { in close() 312 mFileDescriptor.close(); in close() 313 mFileDescriptor = null; in close() 342 if (mFileDescriptor == null) { in getInputStream() 345 return new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 352 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() 361 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() 88 int fdIndex = endpointParcelable->addFileDescriptor(mFileDescriptor, mSharedMemorySizeInBytes); in fillParcelable()
|
D | SharedRingBuffer.h | 65 android::base::unique_fd mFileDescriptor;
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiInputPort.java | 42 private FileDescriptor mFileDescriptor; field in MidiInputPort 58 mFileDescriptor = fd; in MidiInputPort() 112 fd = mFileDescriptor; in claimFileDescriptor() 115 mFileDescriptor = null; in claimFileDescriptor() 142 if (mFileDescriptor != null) { in close() 143 IoUtils.closeQuietly(mFileDescriptor); in close() 144 mFileDescriptor = null; in close()
|
/frameworks/base/media/java/android/media/tv/ |
D | AdRequest.java | 67 private final ParcelFileDescriptor mFileDescriptor; field in AdRequest 109 mFileDescriptor = fileDescriptor; in AdRequest() 123 mFileDescriptor = ParcelFileDescriptor.CREATOR.createFromParcel(source); in AdRequest() 128 mFileDescriptor = null; in AdRequest() 130 mFileDescriptor = null; in AdRequest() 163 return mFileDescriptor; in getFileDescriptor() 239 if (mFileDescriptor != null) { in writeToParcel() 241 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/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 125 if (mFileDescriptor != null) { in onPause() 127 mFileDescriptor.close(); in onPause() 130 mFileDescriptor = null; in onPause() 143 mFileDescriptor = mUsbManager.openAccessory(accessory); in openAccessory() 144 if (mFileDescriptor != null) { in openAccessory() 145 FileDescriptor fd = mFileDescriptor.getFileDescriptor(); in openAccessory()
|
/frameworks/proto_logging/stats/stats_log_api_gen/ |
D | test_collation.cpp | 95 mFileDescriptor = mImporter.Import("test_external.proto"); in CollationTest() 125 mEvent = mFileDescriptor->FindMessageTypeByName("Event"); in SetUp() 126 mIntAtom = mFileDescriptor->FindMessageTypeByName("IntAtom"); in SetUp() 127 mBadTypesEvent = mFileDescriptor->FindMessageTypeByName("BadTypesEvent"); in SetUp() 129 mFileDescriptor->FindMessageTypeByName("BadSkippedFieldSingle"); in SetUp() 131 mFileDescriptor->FindMessageTypeByName("BadSkippedFieldMultiple"); in SetUp() 133 mFileDescriptor->FindMessageTypeByName("BadAttributionNodePosition"); in SetUp() 134 mBadStateAtoms = mFileDescriptor->FindMessageTypeByName("BadStateAtoms"); in SetUp() 135 mGoodStateAtoms = mFileDescriptor->FindMessageTypeByName("GoodStateAtoms"); in SetUp() 136 mBadUidAtoms = mFileDescriptor->FindMessageTypeByName("BadUidAtoms"); in SetUp() [all …]
|
/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; 35188 Landroid/os/DropBoxManager$Entry;->mFileDescriptor:Landroid/os/ParcelFileDescriptor; 37883 Landroid/os/SharedMemory;->mFileDescriptor:Ljava/io/FileDescriptor;
|