Searched refs:fd (Results 101 - 125 of 1163) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/view/textclassifier/
H A DTextClassifierImplNative.java37 TextClassifierImplNative(int fd) { argument
38 mModelPtr = nativeNew(fd);
109 public static String getLocales(int fd) { argument
110 return nativeGetLocales(fd);
114 public static int getVersion(int fd) { argument
115 return nativeGetVersion(fd);
272 private static native long nativeNew(int fd); argument
298 private static native String nativeGetLocales(int fd); argument
300 private static native int nativeGetVersion(int fd); argument
/frameworks/base/services/core/jni/
H A Dcom_android_server_UsbMidiDevice.cpp46 int fd; local
55 while ((fd = open(path, O_RDWR)) < 0) {
71 int ret = ioctl(fd, SNDRV_CTL_IOCTL_RAWMIDI_INFO, &info);
72 close(fd);
99 int fd = open(path, O_RDWR); local
100 if (fd < 0) {
105 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
133 jobject fd = env->GetObjectArrayElement(fds, i); local
134 close(jniGetFDFromFileDescriptor(env, fd));
H A Dcom_android_server_tv_TvUinputBridge.cpp111 NativeConnection(int fd, int32_t maxPointers);
117 NativeConnection::NativeConnection(int fd, int32_t maxPointers) : argument
118 mFd(fd), mMaxPointers(maxPointers) {
132 int fd = ::open("/dev/uinput", O_WRONLY | O_NDELAY); local
133 if (fd < 0) {
148 ioctl(fd, UI_SET_PHYS, uniqueId);
151 ioctl(fd, UI_SET_EVBIT, EV_KEY);
153 ioctl(fd, UI_SET_KEYBIT, KEYS[i].linuxKeyCode);
157 ioctl(fd, UI_SET_EVBIT, EV_MSC);
158 ioctl(fd, UI_SET_MSCBI
[all...]
/frameworks/base/cmds/screencap/
H A Dscreencap.cpp137 int fd = -1; local
140 fd = dup(STDOUT_FILENO);
143 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664);
144 if (fd == -1) {
154 if (fd == -1) {
206 close(fd);
213 close(fd);
237 } fdStream(fd);
244 write(fd, &w, 4);
245 write(fd,
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java51 * @param fd The underlying file descriptor.
57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
59 this(fd, startOffset, length, null);
65 * @param fd The underlying file descriptor.
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
75 if (fd == null) {
76 throw new IllegalArgumentException("fd must not be null");
82 mFd = fd;
204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument
205 super(fd
291 AutoCloseOutputStream(AssetFileDescriptor fd) argument
[all...]
H A DApkAssets.java82 * Performs a dup of the underlying fd, so you must take care of still closing
85 * @param fd The FileDescriptor of an open, readable APK.
93 public static @NonNull ApkAssets loadFromFd(@NonNull FileDescriptor fd, argument
96 return new ApkAssets(fd, friendlyName, system, forceSharedLibrary);
120 private ApkAssets(@NonNull FileDescriptor fd, @NonNull String friendlyName, boolean system, argument
122 Preconditions.checkNotNull(fd, "fd");
124 mNativePtr = nativeLoadFromFd(fd, friendlyName, system, forceSharedLib);
187 private static native long nativeLoadFromFd(@NonNull FileDescriptor fd, argument
/frameworks/rs/driver/
H A DrsdShader.cpp315 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { argument
324 ALOGV("{%f, %f, %f, %f", fd[0], fd[4], fd[8], fd[12]);
325 ALOGV(" %f, %f, %f, %f", fd[1], fd[5], fd[9], fd[13]);
326 ALOGV(" %f, %f, %f, %f", fd[
361 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument
545 const float *fd = reinterpret_cast<const float *>(&data[offset]); local
[all...]
/frameworks/native/cmds/installd/
H A Dotapreopt_chroot.cpp40 static void CloseDescriptor(int fd) { argument
41 if (fd >= 0) {
42 int result = close(fd);
49 int fd = -1; local
51 stream >> fd; local
53 CloseDescriptor(fd);
58 // [cmd] [status-fd] [target-slot] "dexopt" [dexopt-params]
59 // The file descriptor denoted by status-fd will be closed. The rest of the parameters will
160 // Incoming: cmd + status-fd + target-slot + cmd... + null | Incoming | = argc + 1
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp212 void Progress::Dump(int fd, const std::string& prefix) const { argument
214 dprintf(fd, "%sprogress: %d\n", pr, progress_);
215 dprintf(fd, "%smax: %d\n", pr, max_);
216 dprintf(fd, "%sinitial_max: %d\n", pr, initial_max_);
217 dprintf(fd, "%sgrowth_factor: %0.2f\n", pr, growth_factor_);
218 dprintf(fd, "%spath: %s\n", pr, path_.c_str());
219 dprintf(fd, "%sn_runs: %d\n", pr, n_runs_);
220 dprintf(fd, "%saverage_max: %d\n", pr, average_max_);
276 int fd; local
287 if ((fd
348 int fd; local
394 int fd, ret, save_errno; local
461 int fd, ret, save_errno; local
570 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); local
596 dump_files(const std::string& title, const char* dir, bool (*skip)(const char* path), int (*dump_from_fd)(const char* title, const char* path, int fd)) argument
664 dump_file_from_fd(const char *title, const char *path, int fd) argument
715 int fd = accept(s, &addr, &alen); local
726 int fd = open_socket(service); local
762 int fd = TEMP_FAILURE_RETRY(open(path, local
915 int fd = TEMP_FAILURE_RETRY( local
1141 get_mtime(int fd, time_t default_mtime) argument
[all...]
/frameworks/av/services/audioflinger/
H A DFastMixerDumpState.cpp59 void FastMixerDumpState::dump(int fd) const
62 dprintf(fd, " FastMixer not initialized\n");
68 dprintf(fd, " FastMixer command=%s writeSequence=%u framesWritten=%u\n"
128 dprintf(fd, " Simple moving statistics over last %.1f seconds:\n",
130 dprintf(fd, " wall clock time in ms per mix cycle:\n"
134 dprintf(fd, " raw CPU load in us per mix cycle:\n"
139 dprintf(fd, " No FastMixer statistics available currently\n");
142 dprintf(fd, " CPU clock frequency in MHz:\n"
145 dprintf(fd, " adjusted CPU load in MHz (i.e. normalized for CPU clock frequency):\n"
158 dprintf(fd, " Distributio
[all...]
/frameworks/base/libs/hwui/
H A DJankTracker.cpp187 void JankTracker::dumpData(int fd, const ProfileDataDescription* description, argument
194 dprintf(fd, "\nPackage: %s", description->name.c_str());
197 dprintf(fd, "\nWindow: %s", description->name.c_str());
202 dprintf(fd, "\nNote: Data has been filtered!");
204 data->dump(fd);
205 dprintf(fd, "\n");
208 void JankTracker::dumpFrames(int fd) { argument
209 dprintf(fd, "\n\n---PROFILEDATA---\n");
211 dprintf(fd, "%s", FrameInfoNames[i].c_str());
212 dprintf(fd, ",");
[all...]
/frameworks/av/media/mtp/
H A DMtpFfsCompatHandle.h29 int writeHandle(int fd, const void *data, size_t len);
30 int readHandle(int fd, void *data, size_t len);
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioPatch.h33 status_t dump(int fd, int spaces, int index) const;
50 status_t dump(int fd) const;
H A DAudioSourceDescriptor.h42 status_t dump(int fd);
56 status_t dump(int fd) const;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioRoute.cpp27 void AudioRoute::dump(int fd, int spaces) const argument
49 write(fd, result.string(), result.size());
/frameworks/av/services/mediaextractor/
H A DMediaExtractorService.h38 virtual sp<IDataSource> makeIDataSource(int fd, int64_t offset, int64_t length);
40 virtual status_t dump(int fd, const Vector<String16>& args);
/frameworks/base/core/java/android/net/
H A DLocalServerSocket.java60 * @param fd bound file descriptor
63 public LocalServerSocket(FileDescriptor fd) throws IOException argument
65 impl = new LocalSocketImpl(fd);
99 * @return fd or null
/frameworks/base/media/java/android/media/midi/
H A DIMidiDeviceServer.aidl31 int connectPorts(IBinder token, in FileDescriptor fd, int outputPortNumber);
/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp35 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET));
36 android::base::ReadFdToString(cap.fd(), &output);
64 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET));
65 android::base::ReadFdToString(cap.fd(), &output);
73 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET));
74 android::base::ReadFdToString(cap.fd(), &output);
82 ASSERT_EQ(0, lseek(cap.fd(), 0, SEEK_SET));
83 android::base::ReadFdToString(cap.fd(), &output);
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Depoll_file_descriptor.h21 explicit EpollFileDescriptor(int fd) : fd_(fd) {} argument
27 ALOGW("epoll fd has already been created.");
/frameworks/native/libs/vr/libvrflinger/
H A Depoll_event_dispatcher.cpp16 ALOGE("Failed to create epoll fd: %s", strerror(errno));
28 // identify events from the event fd.
45 pdx::Status<void> EpollEventDispatcher::AddEventHandler(int fd, int event_mask, argument
51 event.data.ptr = &(handlers_[fd] = handler);
55 "EpollEventDispatcher::AddEventHandler: fd=%d event_mask=0x%x handler=%p",
56 fd, event_mask, event.data.ptr);
58 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, fd, &event) < 0) {
60 ALOGE("Failed to add fd to epoll set because: %s", strerror(error));
67 pdx::Status<void> EpollEventDispatcher::RemoveEventHandler(int fd) { argument
68 ALOGD_IF(TRACE, "EpollEventDispatcher::RemoveEventHandler: fd
[all...]
H A Depoll_event_dispatcher.h29 // |handler| is called on the internal dispatch thread when |fd| is signaled
31 pdx::Status<void> AddEventHandler(int fd, int event_mask, Handler handler);
32 pdx::Status<void> RemoveEventHandler(int fd);
/frameworks/native/services/utils/include/serviceutils/
H A DPriorityDumper.h42 status_t priorityDump(int fd, const Vector<String16>& args);
45 virtual status_t dumpCritical(int /*fd*/, const Vector<String16>& /*args*/, bool /*asProto*/) {
50 virtual status_t dumpHigh(int /*fd*/, const Vector<String16>& /*args*/, bool /*asProto*/) {
55 virtual status_t dumpNormal(int /*fd*/, const Vector<String16>& /*args*/, bool /*asProto*/) {
62 virtual status_t dumpAll(int fd, const Vector<String16>& args, bool asProto);
/frameworks/av/include/media/stagefright/
H A DStagefrightMediaScanner.h33 virtual MediaAlbumArt *extractAlbumArt(int fd);
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp44 MidiIoWrapper::MidiIoWrapper(int fd, off64_t offset, int64_t size) { argument
45 ALOGV("MidiIoWrapper(fd=%d)", fd);
46 mFd = fd < 0 ? -1 : dup(fd);

Completed in 208 milliseconds

1234567891011>>