Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/av/media/libnbaio/
DPipeReader.cpp27 PipeReader::PipeReader(Pipe& pipe) : in PipeReader() argument
28 NBAIO_Source(pipe.mFormat), in PipeReader()
29 mPipe(pipe), mFifoReader(mPipe.mFifo, false /*throttlesWriter*/, false /*flush*/), in PipeReader()
33 android_atomic_inc(&pipe.mReaders); in PipeReader()
DMonoPipeReader.cpp26 MonoPipeReader::MonoPipeReader(MonoPipe* pipe) : in MonoPipeReader() argument
27 NBAIO_Source(pipe->mFormat), in MonoPipeReader()
28 mPipe(pipe), mFifoReader(mPipe->mFifo, true /*throttlesWriter*/) in MonoPipeReader()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java104 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in dumpAsync() local
106 TransferPipe.dumpAsync(binder, pipe[1].getFileDescriptor(), args); in dumpAsync()
109 pipe[1].close(); in dumpAsync()
110 pipe[1] = null; in dumpAsync()
114 try (FileInputStream is = new FileInputStream(pipe[0].getFileDescriptor())) { in dumpAsync()
128 pipe[0].close(); in dumpAsync()
129 IoUtils.closeQuietly(pipe[1]); in dumpAsync()
/frameworks/base/core/java/com/android/internal/infra/
DRemoteStream.java189 ParcelFileDescriptor[] pipe;
192 pipe = ParcelFileDescriptor.createPipe();
193 try (ParcelFileDescriptor remotePipe = pipe[read ? 1 : 0]) {
198 mLocalPipe = pipe[read ? 0 : 1];
/frameworks/av/media/libnbaio/include_mono/media/nbaio/
DMonoPipeReader.h33 MonoPipeReader(MonoPipe* pipe);
57 MonoPipe* pipe() const { return mPipe; }
/frameworks/av/media/libnbaio/include/media/nbaio/
DPipeReader.h31 PipeReader(Pipe& pipe);
55 Pipe& pipe() const { return mPipe; }
/frameworks/native/libs/input/tests/
DInputChannel_test.cpp43 Pipe pipe; in TEST_F() local
45 android::base::unique_fd sendFd(pipe.sendFd); in TEST_F()
60 Pipe pipe; in TEST_F() local
63 InputChannel::create("test channel", android::base::unique_fd(pipe.sendFd), token); in TEST_F()
DTestHelpers.h33 ::pipe(fds); in Pipe()
/frameworks/base/core/java/android/permission/
DIPermissionController.aidl34 void getRuntimePermissionBackup(in UserHandle user, in ParcelFileDescriptor pipe); in getRuntimePermissionBackup() argument
35 void stageAndApplyRuntimePermissionsBackup(in UserHandle user, in ParcelFileDescriptor pipe); in stageAndApplyRuntimePermissionsBackup() argument
DPermissionControllerService.java408 public void getRuntimePermissionBackup(UserHandle user, ParcelFileDescriptor pipe) { in onBind() argument
410 checkNotNull(pipe); in onBind()
414 try (OutputStream backup = new ParcelFileDescriptor.AutoCloseOutputStream(pipe)) { in onBind()
427 ParcelFileDescriptor pipe) { in onBind() argument
429 checkNotNull(pipe); in onBind()
434 try (InputStream backup = new ParcelFileDescriptor.AutoCloseInputStream(pipe)) { in onBind()
/frameworks/base/packages/SystemUI/scripts/
Dnew_merge.py96 pipe = Popen(['git', 'diff', '--name-only', argv[1]], stdout=PIPE).stdout
97 for line in iter(pipe.readline,''):
102 pipe.close()
/frameworks/base/core/tests/coretests/src/android/os/
DBundleTest.java58 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in createBundleParcel() local
59 pipe[1].close(); in createBundleParcel()
60 source.putParcelable("fd", pipe[0]); in createBundleParcel()
/frameworks/base/libs/androidfw/
DPosixUtils.cpp54 if (pipe(stdout) != 0) { in ExecuteBinary()
60 if (pipe(stderr) != 0) { in ExecuteBinary()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerShellCommand.java519 ByteTransferPipe pipe = null; in runDumpVisibleWindowViews()
521 pipe = new ByteTransferPipe(); in runDumpVisibleWindowViews()
523 pipe.getWriteFd()); in runDumpVisibleWindowViews()
524 requestList.add(Pair.create(w.getName(), pipe)); in runDumpVisibleWindowViews()
527 if (pipe != null) { in runDumpVisibleWindowViews()
528 pipe.kill(); in runDumpVisibleWindowViews()
/frameworks/av/services/audioflinger/
DNBAIO_Tee.cpp230 Pipe *pipe = new Pipe(frames, format); in makeSinkSource() local
233 ssize_t index = pipe->negotiate(offers, 1, NULL, numCounterOffers); in makeSinkSource()
238 PipeReader *pipeReader = new PipeReader(*pipe); in makeSinkSource()
246 return {pipe, pipeReader}; in makeSinkSource()
/frameworks/av/media/mtp/tests/MtpFfsHandleTest/
DMtpFfsHandle_test.cpp69 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
73 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
78 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
83 EXPECT_EQ(pipe(fd), 0); in MtpFfsHandleTest()
/frameworks/native/cmds/bugreportz/
Dbugreportz_test.cpp37 ASSERT_EQ(0, pipe(fds)); in SetUp()
/frameworks/av/media/bufferpool/1.0/vts/
Dmulti.cpp78 ASSERT_TRUE(pipe(mCommandPipeFds) == 0); in SetUp()
79 ASSERT_TRUE(pipe(mResultPipeFds) == 0); in SetUp()
/frameworks/av/media/bufferpool/2.0/tests/
Dmulti.cpp78 ASSERT_TRUE(pipe(mCommandPipeFds) == 0); in SetUp()
79 ASSERT_TRUE(pipe(mResultPipeFds) == 0); in SetUp()
Dcond.cpp81 ASSERT_TRUE(pipe(mCommandPipeFds) == 0); in SetUp()
82 ASSERT_TRUE(pipe(mResultPipeFds) == 0); in SetUp()
/frameworks/av/services/minijail/
Dminijail.cpp35 if (pipe(pipefd) == -1) { in WritePolicyToPipe()
/frameworks/base/cmds/incidentd/src/
DSection.cpp235 Fpipe pipe; member
268 if (!data->pipe.init()) { in Execute()
275 status_t err = data->section->BlockingCall(data->pipe.writeFd()); in Execute()
282 data->pipe.writeFd().reset(); in Execute()
291 err = buffer.read(data->pipe.readFd().get(), this->timeoutMs); in Execute()
300 data->pipe.close(); in Execute()
/frameworks/base/core/java/android/os/
DFileUtils.java1499 private final FileDescriptor[] pipe; field in FileUtils.MemoryPipe
1505 this.pipe = Os.pipe(); in MemoryPipe()
1527 return sink ? pipe[1] : pipe[0]; in getFD()
1531 return sink ? pipe[0] : pipe[1]; in getInternalFD()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbBackupEngine.java197 KeyValueAdbBackupDataCopier(PackageInfo pack, ParcelFileDescriptor pipe, in KeyValueAdbBackupDataCopier() argument
201 mPipe = ParcelFileDescriptor.dup(pipe.getFileDescriptor()); in KeyValueAdbBackupDataCopier()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java84 ParcelFileDescriptor pipe, in FullBackupRunner() argument
92 mPipe = ParcelFileDescriptor.dup(pipe.getFileDescriptor()); in FullBackupRunner()

123