/frameworks/base/core/jni/android/graphics/ |
H A D | Bitmap.h | 54 Bitmap(void* address, int fd, const SkImageInfo& info, size_t rowBytes, 113 int fd; member in struct:android::Bitmap::__anon841::__anon843
|
/frameworks/base/libs/androidfw/tests/ |
H A D | ObbFile_test.cpp | 46 int fd = ::open(mFileName.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); local 47 if (fd < 0) {
|
/frameworks/ex/framesequence/jni/ |
H A D | Stream.h | 65 FileStream(FILE* fd) : mFd(fd) {} argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | MessageQueue.h | 88 static int cb_eventReceiver(int fd, int events, void* data); 89 int eventReceiver(int fd, int events);
|
/frameworks/av/media/libstagefright/ |
H A D | FileSource.cpp | 56 FileSource::FileSource(int fd, int64_t offset, int64_t length) argument 57 : mFd(fd), 66 ALOGV("fd=%d (%s), offset=%lld, length=%lld", 67 fd, nameForFd(fd).c_str(), (long long) offset, (long long) length); 79 if (fstat(fd, &s) == 0) { 95 "FileSource(fd(%s), %lld, %lld)", 96 nameForFd(fd).c_str(),
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_AlarmManagerService.cpp | 57 CLOCK_REALTIME fd which exists specifically to be canceled on RTC changes */ 77 AlarmImplAlarmDriver(int fd) : AlarmImpl(&fd, 1) { } argument 169 int fd; local 185 fd = open(rtc_dev.string(), O_RDWR); 186 if (fd < 0) { 208 res = ioctl(fd, RTC_SET_TIME, &rtc); 212 close(fd); 288 int fd = open("/dev/alarm", O_RDWR); local 289 if (fd < [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | PhoneFactory.java | 369 public static void dump(FileDescriptor fd, PrintWriter printwriter, String[] args) { argument 374 sPhoneSwitcher.dump(fd, pw, args); 383 phone.dump(fd, pw, args); 392 sTelephonyNetworkFactories[i].dump(fd, pw, args); 398 ((IccCardProxy)phone.getIccCard()).dump(fd, pw, args); 410 sSubscriptionMonitor.dump(fd, pw, args); 420 sUiccController.dump(fd, pw, args); 431 SubscriptionController.getInstance().dump(fd, pw, args); 442 sSubInfoRecordUpdater.dump(fd, pw, args); 456 sLocalLogs.get(key).dump(fd, p [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MessageQueue.java | 66 private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events); argument 174 * @param fd The file descriptor for which a listener will be registered. 185 public void addOnFileDescriptorEventListener(@NonNull FileDescriptor fd, argument 188 if (fd == null) { 189 throw new IllegalArgumentException("fd must not be null"); 196 updateOnFileDescriptorEventListenerLocked(fd, events, listener); 207 * @param fd The file descriptor whose listener will be unregistered. 212 public void removeOnFileDescriptorEventListener(@NonNull FileDescriptor fd) { argument 213 if (fd == null) { 214 throw new IllegalArgumentException("fd mus 222 updateOnFileDescriptorEventListenerLocked(FileDescriptor fd, int events, OnFileDescriptorEventListener listener) argument 259 dispatchEvents(int fd, int events) argument 856 onFileDescriptorEvents(@onNull FileDescriptor fd, @Events int events) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ExifInterfaceTest.java | 345 FileDescriptor fd = null; 347 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); 348 exifInterface = new ExifInterface(fd); 353 IoUtils.closeQuietly(fd); 383 FileDescriptor fd = null; 385 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600); 386 ExifInterface exifInterface = new ExifInterface(fd); 388 Os.lseek(fd, 0, OsConstants.SEEK_SET); 389 exifInterface = new ExifInterface(fd); 396 Os.lseek(fd, [all...] |
/frameworks/base/media/java/android/media/ |
H A D | SoundPool.java | 219 ParcelFileDescriptor fd = ParcelFileDescriptor.open(f, 221 if (fd != null) { 222 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); 223 fd.close(); 272 throw new AndroidRuntimeException("no length for fd"); 287 * @param fd a FileDescriptor object 294 public int load(FileDescriptor fd, long offset, long length, int priority) { argument 295 return _load(fd, offset, length, priority); 542 private native final int _load(FileDescriptor fd, long offset, long length, int priority); argument
|
/frameworks/av/media/mtp/ |
H A D | MtpServer.cpp | 100 MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, argument 102 : mFD(fd), 156 int fd = mFD; local 158 ALOGV("MtpServer::run fd: %d\n", fd); 161 int ret = mRequest.read(fd); 182 int ret = mData.read(fd); 203 ret = mData.write(fd); 216 ret = mResponse.write(fd); 243 close(fd); 282 addEditObject(MtpObjectHandle handle, MtpString& path, uint64_t size, MtpObjectFormat format, int fd) argument 1292 int fd = open((const char *)path, O_RDWR | O_EXCL); local [all...] |
/frameworks/base/core/jni/ |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 130 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local 131 if (fd < 0) { 141 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { 144 close(fd); 257 int fd = mkstemp(localTmpFileName); local 258 if (fd < 0) { 263 if (!zipFile->uncompressEntry(zipEntry, fd)) { 265 close(fd); 270 close(fd);
|
H A D | android_os_Parcel.cpp | 442 int fd = parcel->readFileDescriptor(); local 443 if (fd < 0) return NULL; 444 fd = dup(fd); 445 if (fd < 0) return NULL; 446 return jniCreateFileDescriptor(env, fd); 485 int fd = open(name8.c_str(), flags, realMode); local 486 if (fd < 0) { 490 jobject object = jniCreateFileDescriptor(env, fd); 492 close(fd); 509 int fd = dup(origfd); local 527 int fd = jniGetFDFromFileDescriptor(env, object); local 541 int fd = jniGetFDFromFileDescriptor(env, object); local [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 79 int fd = open(outputFileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local 81 if (fd < 0) { 83 return fd; 85 sp<MediaMuxer> muxer = new MediaMuxer(fd, container); 86 close(fd);
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 69 String8 DrmEngineBase::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument 70 return onGetOriginalMimeType(uniqueId, path, fd); 124 int fd, off64_t offset, off64_t length, const char* mime) { 127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 463 sp<MediaRecorder> SurfaceMediaSourceGLTest::setUpMediaRecorder(int fd, int videoSource, argument 469 mr->setOutputFile(fd, 0, 0); 736 int fd = open(fileName, O_RDWR | O_CREAT, 0744); 737 if (fd < 0) { 738 ALOGE("ERROR: Could not open the the file %s, fd = %d !!", fileName, fd); 740 CHECK(fd >= 0); 742 sp<MediaRecorder> mr = SurfaceMediaSourceGLTest::setUpMediaRecorder(fd, 765 close(fd); 870 int fd [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioOutputDescriptor.h | 43 status_t dump(int fd); 100 status_t dump(int fd); 142 status_t dump(int fd); 190 status_t dump(int fd) const; 204 status_t dump(int fd) const;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPatch.cpp | 38 status_t AudioPatch::dump(int fd, int spaces, int index) const argument 83 write(fd, result.string(), result.size()); 165 status_t AudioPatchCollection::dump(int fd) const 170 write(fd, buffer, strlen(buffer)); 172 valueAt(i)->dump(fd, 2, i);
|
H A D | AudioSession.cpp | 133 status_t AudioSession::dump(int fd, int spaces, int index) const argument 162 write(fd, result.string(), result.size()); 247 status_t AudioSessionCollection::dump(int fd, int spaces) const argument 252 write(fd, buffer, strlen(buffer)); 254 valueAt(i)->dump(fd, spaces + 2, i);
|
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 35 int fd; local 42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { 46 if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { 47 close(fd); 51 close(fd);
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestBassBoostPath.cpp | 119 int fd = open(path, O_RDONLY); local 120 if (fd == -1) { 123 locatorFd.fd = (SLint32) fd; 243 close(fd);
|
H A D | slesTestPlayFdPath.cpp | 132 int fd = open(path, O_RDONLY); local 133 if (fd == -1) { 137 locatorFd.fd = (SLint32) fd; 218 close(fd);
|
H A D | slesTestVirtualizerPath.cpp | 120 int fd = open(path, O_RDONLY); local 121 if (fd == -1) { 124 locatorFd.fd = (SLint32) fd; 245 close(fd);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 425 int fd, int dumpFlags) { 426 args->context->profiler().dumpData(args->fd); 428 args->context->dumpFrames(args->fd); 434 args->thread->jankTracker().dump(args->fd); 439 void RenderProxy::dumpProfileInfo(int fd, int dumpFlags) { argument 443 args->fd = fd; 459 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) { argument 460 args->thread->jankTracker().dump(args->fd); 462 FILE *file = fdopen(args->fd, " 424 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument 479 dumpGraphicsMemory(int fd) argument 504 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) argument 510 setProcessStatsBuffer(int fd) argument [all...] |
/frameworks/av/drm/libdrmframework/include/ |
H A D | DrmManagerService.h | 92 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 119 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime); 140 virtual status_t dump(int fd, const Vector<String16>& args);
|