/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/av/services/oboeservice/ |
D | SharedRingBuffer.cpp | 47 mFileDescriptor.reset(ashmem_create_region("AAudioSharedRingBuffer", mSharedMemorySizeInBytes)); in allocate() 48 if (mFileDescriptor.get() == -1) { in allocate() 52 ALOGV("allocate() mFileDescriptor = %d\n", mFileDescriptor.get()); in allocate() 54 …int err = ashmem_set_prot_region(mFileDescriptor.get(), PROT_READ|PROT_WRITE); // TODO error handl… in allocate() 57 mFileDescriptor.reset(); in allocate() 65 mFileDescriptor.get(), 0); in allocate() 68 mFileDescriptor.reset(); in allocate() 86 int fdIndex = endpointParcelable.addFileDescriptor(mFileDescriptor, mSharedMemorySizeInBytes); in fillParcelable()
|
D | SharedRingBuffer.h | 55 android::base::unique_fd mFileDescriptor;
|
/frameworks/base/core/java/android/os/ |
D | SharedMemory.java | 41 private final FileDescriptor mFileDescriptor; field in SharedMemory 57 mFileDescriptor = fd; in SharedMemory() 58 mSize = nGetSize(mFileDescriptor); in SharedMemory() 64 mCleaner = Cleaner.create(mFileDescriptor, in SharedMemory() 65 new Closer(mFileDescriptor, mMemoryRegistration)); in SharedMemory() 90 if (!mFileDescriptor.valid()) { in checkOpen() 132 int errno = nSetProt(mFileDescriptor, prot); in setProtect() 147 return mFileDescriptor; in getFileDescriptor() 162 return mFileDescriptor.getInt$(); in getFd() 227 long address = Os.mmap(0, length, prot, OsConstants.MAP_SHARED, mFileDescriptor, offset); in map() [all …]
|
D | DropBoxManager.java | 112 private final ParcelFileDescriptor mFileDescriptor; field in DropBoxManager.Entry 122 mFileDescriptor = null; in Entry() 134 mFileDescriptor = null; in Entry() 151 mFileDescriptor = null; in Entry() 168 mFileDescriptor = data; in Entry() 183 mFileDescriptor = ParcelFileDescriptor.open(data, ParcelFileDescriptor.MODE_READ_ONLY); in Entry() 189 try { if (mFileDescriptor != null) mFileDescriptor.close(); } catch (IOException e) { } in close() 232 } else if (mFileDescriptor != null) { in getInputStream() 233 is = new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 256 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() [all …]
|
D | IncidentManager.java | 282 private ParcelFileDescriptor mFileDescriptor; field in IncidentManager.IncidentReport 288 mFileDescriptor = ParcelFileDescriptor.CREATOR.createFromParcel(in); in IncidentReport() 290 mFileDescriptor = null; in IncidentReport() 299 if (mFileDescriptor != null) { in close() 300 mFileDescriptor.close(); in close() 301 mFileDescriptor = null; in close() 330 if (mFileDescriptor == null) { in getInputStream() 333 return new ParcelFileDescriptor.AutoCloseInputStream(mFileDescriptor); in getInputStream() 340 return mFileDescriptor != null ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() 349 if (mFileDescriptor != null) { in writeToParcel() [all …]
|
/frameworks/base/core/java/android/net/ |
D | TestNetworkInterface.java | 30 private final ParcelFileDescriptor mFileDescriptor; field in TestNetworkInterface 35 return (mFileDescriptor != null) ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents() 40 out.writeParcelable(mFileDescriptor, PARCELABLE_WRITE_RETURN_VALUE); in writeToParcel() 45 mFileDescriptor = pfd; in TestNetworkInterface() 50 mFileDescriptor = in.readParcelable(ParcelFileDescriptor.class.getClassLoader()); in TestNetworkInterface() 55 return mFileDescriptor; in getFileDescriptor()
|
/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/core/java/com/android/server/connectivity/ |
D | NetworkDiagnostics.java | 349 protected FileDescriptor mFileDescriptor; field in NetworkDiagnostics.SimpleSocketCheck 388 mFileDescriptor = Os.socket(mAddressFamily, sockType, protocol); in setupSocket() 393 Os.setsockoptTimeval(mFileDescriptor, in setupSocket() 395 Os.setsockoptTimeval(mFileDescriptor, in setupSocket() 398 mNetwork.bindSocket(mFileDescriptor); in setupSocket() 400 Os.bind(mFileDescriptor, mSource, 0); in setupSocket() 402 Os.connect(mFileDescriptor, mTarget, dstPort); in setupSocket() 403 mSocketAddress = Os.getsockname(mFileDescriptor); in setupSocket() 417 IoUtils.closeQuietly(mFileDescriptor); in close() 478 Os.write(mFileDescriptor, icmpPacket, 0, icmpPacket.length); in run() [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/services/core/java/com/android/server/security/ |
D | VerityUtils.java | 327 private final FileDescriptor mFileDescriptor; field in VerityUtils.SetupResult 344 this.mFileDescriptor = fileDescriptor; in SetupResult() 357 return mFileDescriptor; in getUnownedFileDescriptor()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 26608 Landroid/hardware/SerialPort;->mFileDescriptor:Landroid/os/ParcelFileDescriptor; 42127 Landroid/media/midi/MidiInputPort;->mFileDescriptor:Ljava/io/FileDescriptor; 53240 Landroid/os/DropBoxManager$Entry;->mFileDescriptor:Landroid/os/ParcelFileDescriptor; 56193 Landroid/os/SharedMemory;->mFileDescriptor:Ljava/io/FileDescriptor;
|