/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 154 * @param fd descriptor of the protected content as a file source 158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 325 * @param fd File descriptor of the protected content to be decrypted 334 int fd, off64_t offset, off64_t length); 338 int fd, int offset, int length); 542 DecodeSession(int fd) { argument 543 fileDesc = fd;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightPlayer.cpp | 63 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument 64 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length); 65 return mPlayer->setDataSource(dup(fd), offset, length); 216 status_t StagefrightPlayer::dump(int fd, const Vector<String16> &args) const { argument 217 return mPlayer->dump(fd, args);
|
/frameworks/base/services/common_time/ |
H A D | common_time_server_api.cpp | 284 write(fd, buffer, res); \ 288 status_t CommonTimeServer::dumpClockInterface(int fd, argument 300 write(fd, buffer, strlen(buffer)); 356 mClient_PacketRTTLog.dumpLog(fd, mCommonClock); 357 mStateChangeLog.dumpLog(fd); 358 mElectionLog.dumpLog(fd); 359 mBadPktLog.dumpLog(fd); 365 status_t CommonTimeServer::dumpConfigInterface(int fd, argument 376 write(fd, buffer, strlen(buffer)); 406 void CommonTimeServer::PacketRTTLog::dumpLog(int fd, cons argument [all...] |
/frameworks/native/libs/binder/ |
H A D | ProcessState.cpp | 318 int fd = open("/dev/binder", O_RDWR); local 319 if (fd >= 0) { 320 fcntl(fd, F_SETFD, FD_CLOEXEC); 322 status_t result = ioctl(fd, BINDER_VERSION, &vers); 325 close(fd); 326 fd = -1; 330 close(fd); 331 fd = -1; 334 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); 341 return fd; [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_Parcel.cpp | 364 int fd = parcel->readFileDescriptor(); local 365 if (fd < 0) return NULL; 366 fd = dup(fd); 367 if (fd < 0) return NULL; 368 return jniCreateFileDescriptor(env, fd); 410 int fd = open(name8.string(), flags, realMode); local 411 if (fd < 0) { 415 jobject object = jniCreateFileDescriptor(env, fd); 417 close(fd); 434 int fd = dup(origfd); local 452 int fd = jniGetFDFromFileDescriptor(env, object); local 466 int fd = jniGetFDFromFileDescriptor(env, object); local [all...] |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local 123 if (fd < 0) { 131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { 134 close(fd); 223 int fd = mkstemp(localTmpFileName); local 224 if (fd < 0) { 229 if (!zipFile->uncompressEntry(zipEntry, fd)) { 231 close(fd); 236 close(fd);
|
H A D | android_backup_BackupDataInput.cpp | 35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 36 if (fd == -1) { 40 return (int)new BackupDataReader(fd);
|
H A D | android_util_Process.cpp | 206 int fd; local 211 fd = open(proc_path, O_RDONLY); 212 if (fd >= 0) { 213 int rc = read(fd, cmdline, sizeof(cmdline)-1); 215 close(fd); 368 int fd = open(text, O_WRONLY); local 369 if (fd >= 0) { 371 write(fd, text, strlen(text)); 372 close(fd); 416 int fd local 529 int fd = open(file.string(), O_RDONLY); local 814 int fd = open(file8, O_RDONLY); local 949 int fd = open(path, O_RDONLY); local [all...] |
/frameworks/base/core/java/android/app/ |
H A D | WallpaperManager.java | 272 ParcelFileDescriptor fd = mService.getWallpaper(this, params); 273 if (fd != null) { 280 fd.getFileDescriptor(), null, options); 286 fd.close(); 489 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper( 491 if (fd != null) { 494 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); 526 ParcelFileDescriptor fd = sGlobals.mService.setWallpaper(null); 527 if (fd == null) { 532 fos = new ParcelFileDescriptor.AutoCloseOutputStream(fd); [all...] |
H A D | ApplicationThreadNative.java | 348 ParcelFileDescriptor fd = data.readFileDescriptor(); 351 if (fd != null) { 352 dumpService(fd.getFileDescriptor(), service, args); 354 fd.close(); 363 ParcelFileDescriptor fd = data.readFileDescriptor(); 366 if (fd != null) { 367 dumpProvider(fd.getFileDescriptor(), service, args); 369 fd.close(); 413 ParcelFileDescriptor fd = data.readInt() != 0 415 profilerControl(start, path, fd, profileTyp 991 dumpService(FileDescriptor fd, IBinder token, String[] args) argument 1002 dumpProvider(FileDescriptor fd, IBinder token, String[] args) argument 1049 profilerControl(boolean start, String path, ParcelFileDescriptor fd, int profileType) argument 1108 dumpHeap(boolean managed, String path, ParcelFileDescriptor fd) argument 1125 dumpActivity(FileDescriptor fd, IBinder token, String prefix, String[] args) argument 1162 dumpMemInfo(FileDescriptor fd, boolean checkin, boolean all, String[] args) argument 1180 dumpGfxInfo(FileDescriptor fd, String[] args) argument 1189 dumpDbInfo(FileDescriptor fd, String[] args) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 880 AssetFileDescriptor fd = null; 883 fd = resolver.openAssetFileDescriptor(uri, "r"); 884 if (fd == null) { 890 if (fd.getDeclaredLength() < 0) { 891 setDataSource(fd.getFileDescriptor()); 893 setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength()); 899 if (fd != null) { 900 fd 991 setDataSource(FileDescriptor fd) argument 1007 setDataSource(FileDescriptor fd, long offset, long length) argument 1013 _setDataSource(FileDescriptor fd, long offset, long length) argument 1815 addTimedTextSource(FileDescriptor fd, String mimeType) argument 1839 addTimedTextSource(FileDescriptor fd, long offset, long length, String mimeType) argument [all...] |
H A D | SoundPool.java | 164 ParcelFileDescriptor fd = ParcelFileDescriptor.open(f, ParcelFileDescriptor.MODE_READ_ONLY); 165 if (fd != null) { 166 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); 167 fd.close(); 216 throw new AndroidRuntimeException("no length for fd"); 231 * @param fd a FileDescriptor object 238 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 239 return _load(fd, offset, length, priority); 244 private native final int _load(FileDescriptor fd, long offset, long length, int priority); argument
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 173 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument 177 int n = Libcore.os.read(fd, buffer, offset + totalRead, numBytes); 191 void consumeNativeCrashData(FileDescriptor fd) { argument 198 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout); 199 Libcore.os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout); 202 int headerBytes = readExactly(fd, buf, 0, 8); 233 bytes = Libcore.os.read(fd, buf, 0, buf.length);
|
/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 46 // Object assumes ownership of fd. 47 MyStreamSource(int fd); 68 MyStreamSource::MyStreamSource(int fd) argument 69 : mFd(fd), 72 CHECK_GE(fd, 0); 74 mFileSize = lseek64(fd, 0, SEEK_END); 75 lseek64(fd, 0, SEEK_SET); 359 int fd = open(argv[1], O_RDONLY); local 361 if (fd < 0) { 366 source = new MyStreamSource(fd); [all...] |
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 142 int fd; member in class:TouchEvents::EventThread 148 read(fd, &event, sizeof(event)); 170 fd = open("/dev/input/event1", O_RDONLY); 224 int fd = open("/dev/graphics/fb0", O_RDWR); local 225 ioctl(fd, FBIOGET_VSCREENINFO, &vi); 226 ioctl(fd, FBIOGET_FSCREENINFO, &fi); 227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); 260 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt); 292 close(fd);
|
/frameworks/av/drm/libdrmframework/include/ |
H A D | DrmManagerService.h | 75 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 102 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime); 123 virtual status_t dump(int fd, const Vector<String16>& args);
|
/frameworks/av/media/mtp/ |
H A D | MtpDataPacket.h | 98 int read(int fd); 101 int write(int fd); 102 int writeData(int fd, void* data, uint32_t length);
|
H A D | MtpServer.cpp | 98 MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, argument 100 : mFD(fd), 154 int fd = mFD; local 156 ALOGV("MtpServer::run fd: %d\n", fd); 159 int ret = mRequest.read(fd); 180 int ret = mData.read(fd); 201 ret = mData.write(fd); 214 ret = mResponse.write(fd); 240 close(fd); 274 addEditObject(MtpObjectHandle handle, MtpString& path, uint64_t size, MtpObjectFormat format, int fd) argument 1188 int fd = open((const char *)path, O_RDWR | O_EXCL); local [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 133 private native void observe(int fd); argument 134 private native int startWatching(int fd, String path, int mask); argument 135 private native void stopWatching(int fd, int wfd); argument
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 75 * @param fd The file descriptor containing the data to decode 87 FileDescriptor fd, boolean isShareable) throws IOException { 88 return nativeNewInstance(fd, isShareable); 269 FileDescriptor fd, boolean isShareable); 86 newInstance( FileDescriptor fd, boolean isShareable) argument 268 nativeNewInstance( FileDescriptor fd, boolean isShareable) argument
|
/frameworks/native/libs/gui/ |
H A D | SensorEventQueue.cpp | 79 const int fd = getFd(); local 97 } while (result != fd); 99 return (result == fd) ? status_t(NO_ERROR) : result;
|
/frameworks/base/services/input/ |
H A D | EventHub.cpp | 160 EventHub::Device::Device(int fd, int32_t id, const String8& path, argument 163 fd(fd), id(id), path(path), identifier(identifier), 183 if (fd >= 0) { 184 ::close(fd); 185 fd = -1; 292 if(ioctl(device->fd, EVIOCGABS(axis), &info)) { 293 ALOGW("Error reading absolute controller %d for device %s fd %d, errno=%d", 294 axis, device->identifier.name.string(), device->fd, errno); 344 if (ioctl(device->fd, EVIOCGKE [all...] |
/frameworks/av/include/media/ |
H A D | IMediaMetadataRetriever.h | 39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
|
H A D | MediaMetadataRetrieverInterface.h | 38 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
|
/frameworks/av/include/media/stagefright/ |
H A D | AMRWriter.h | 33 AMRWriter(int fd);
|