Home
last modified time | relevance | path

Searched refs:sink (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionProvider.java76 public void registerSink(Sink sink) { in registerSink() argument
77 Preconditions.checkNotNull(sink); in registerSink()
79 mSinkSet.add(sink); in registerSink()
85 public void unregisterSink(Sink sink) { in unregisterSink() argument
86 Preconditions.checkNotNull(sink); in unregisterSink()
88 mSinkSet.remove(sink); in unregisterSink()
128 for (Sink sink : sinks) { in onActivityChanged()
129 sink.onActivityChanged(gmsEvent); in onActivityChanged()
DFusedLocationHardware.java37 public void registerSink(FusedLocationHardwareSink sink, Looper looper) {} in registerSink() argument
39 public void unregisterSink(FusedLocationHardwareSink sink) {} in unregisterSink() argument
/frameworks/base/tests/AccessoryDisplay/
DREADME6 There are two applications with two distinct roles: a sink
11 The role of the sink is to emulate an external display that happens
15 The sink application uses the UsbDevice APIs to receive connections
16 from the source device over USB. The sink acts as a USB host
19 The sink application decodes encoded video from the source and
20 displays it in a SurfaceView. The sink also injects passes touch
31 to the sink device over USB. The source acts as a USB peripheral
32 in this arrangement and will receive power from the sink.
36 an encoder and streams the output to the sink over USB. Then
44 Remember that the sink device is functioning as the USB host
[all …]
/frameworks/base/core/java/android/printservice/
DPrintDocument.java77 ParcelFileDescriptor sink = null; in getData() local
81 sink = fds[1]; in getData()
82 mPrintServiceClient.writePrintJobData(sink, mPrintJobId); in getData()
89 if (sink != null) { in getData()
91 sink.close(); in getData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
DMediaOutputBroadcastDialog.java195 public void onSourceAdded(@NonNull BluetoothDevice sink, int sourceId, int reason) {
196 Log.d(TAG, "Assistant-onSourceAdded: Device: " + sink
202 public void onSourceAddFailed(@NonNull BluetoothDevice sink,
204 Log.d(TAG, "Assistant-onSourceAddFailed: Device: " + sink);
208 public void onSourceModified(@NonNull BluetoothDevice sink, int sourceId,
214 public void onSourceModifyFailed(@NonNull BluetoothDevice sink, int sourceId,
220 public void onSourceRemoved(@NonNull BluetoothDevice sink, int sourceId,
226 public void onSourceRemoveFailed(@NonNull BluetoothDevice sink, int sourceId,
232 public void onReceiveStateChanged(@NonNull BluetoothDevice sink, int sourceId,
408 for (BluetoothDevice sink : mMediaOutputController.getConnectedBroadcastSinkDevices()) { in startBroadcastWithConnectedDevices()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothLeBroadcastAssistant.java129 public void addSource(BluetoothDevice sink, BluetoothLeBroadcastMetadata metadata, in addSource() argument
135 mService.addSource(sink, metadata, isGroupOp); in addSource()
158 public void addSource(@NonNull BluetoothDevice sink, int sourceAddressType, in addSource() argument
167 addSource(sink, mBluetoothLeBroadcastMetadata, isGroupOp); in addSource()
184 public void removeSource(@NonNull BluetoothDevice sink, int sourceId) { in removeSource() argument
192 mService.removeSource(sink, sourceId); in removeSource()
253 @NonNull BluetoothDevice sink) { in getAllSources()
261 return mService.getAllSources(sink); in getAllSources()
DLocalBluetoothLeBroadcast.java223 public void onSourceAdded(@NonNull BluetoothDevice sink, int sourceId,
241 public void onSourceAddFailed(@NonNull BluetoothDevice sink,
245 public void onSourceModified(@NonNull BluetoothDevice sink, int sourceId,
249 public void onSourceModifyFailed(@NonNull BluetoothDevice sink, int sourceId,
253 public void onSourceRemoved(@NonNull BluetoothDevice sink, int sourceId,
256 Log.d(TAG, "onSourceRemoved(), sink = " + sink + ", reason = "
262 public void onSourceRemoveFailed(@NonNull BluetoothDevice sink, int sourceId,
265 Log.d(TAG, "onSourceRemoveFailed(), sink = " + sink + ", reason = "
271 public void onReceiveStateChanged(@NonNull BluetoothDevice sink, int sourceId,
DPanProfile.java116 for (BluetoothDevice sink : sinks) { in setEnabled()
117 mService.setConnectionPolicy(sink, CONNECTION_POLICY_FORBIDDEN); in setEnabled()
/frameworks/av/media/mtp/
DMtpDescriptors.cpp121 .sink = fs_sink,
128 .sink = hs_sink,
135 .sink = ss_sink,
145 .sink = fs_sink,
152 .sink = hs_sink,
159 .sink = ss_sink,
DMtpDescriptors.h55 struct usb_endpoint_descriptor_no_audio sink; member
62 struct usb_endpoint_descriptor_no_audio sink; member
/frameworks/av/media/libstagefright/webm/include/webm/
DWebmFrameThread.h102 WebmFrameSourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink);
115 WebmFrameEmptySourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink) in WebmFrameEmptySourceThread() argument
116 : WebmFrameSourceThread(type, sink) { in WebmFrameEmptySourceThread()
129 LinkedBlockingQueue<const sp<WebmFrame> >& sink,
/frameworks/base/core/java/android/hardware/location/
DActivityRecognitionHardware.java110 public boolean registerSink(IActivityRecognitionHardwareSink sink) { in registerSink() argument
113 return mSinks.register(sink); in registerSink()
118 public boolean unregisterSink(IActivityRecognitionHardwareSink sink) { in unregisterSink() argument
121 return mSinks.unregister(sink); in unregisterSink()
194 IActivityRecognitionHardwareSink sink = mSinks.getBroadcastItem(i); in onActivityChanged() local
196 sink.onActivityChanged(activityChangedEvent); in onActivityChanged()
DIActivityRecognitionHardware.aidl44 boolean registerSink(in IActivityRecognitionHardwareSink sink); in registerSink() argument
50 boolean unregisterSink(in IActivityRecognitionHardwareSink sink); in unregisterSink() argument
/frameworks/av/media/codec2/hal/hidl/1.0/utils/
DInputSurface.cpp130 const sp<IInputSink>& sink, in connect() argument
134 if (!sink) { in connect()
138 std::shared_ptr<C2Component> comp = Component::findLocalComponent(sink); in connect()
142 connection = new InputSurfaceConnection(mSource, sink, mParameterCache); in connect()
DInputSurfaceConnection.cpp82 const sp<IInputSink>& sink) in Impl()
83 : mSource{source}, mLocalComp{}, mSink{sink}, mFrameIndex{0} { in Impl()
84 Return<sp<IConfigurable>> transResult = sink->getConfigurable();
459 const sp<IInputSink>& sink, in InputSurfaceConnection() argument
461 : mImpl{new Impl(source, sink)}, in InputSurfaceConnection()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DTracer.java150 for (TracerSink sink : mSinks) { in closeSinks()
151 sink.close(); in closeSinks()
180 for (TracerSink sink : mSinks) { in log()
181 sink.log(message); in log()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioRoute.h44 void setSink(const sp<PolicyAudioPort> &sink) { mSink = sink; } in setSink() argument
/frameworks/base/media/java/android/media/
DAudioPatch.java82 for (AudioPortConfig sink : mSinks) { in toString()
83 s.append(sink.toString()); in toString()
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/async/
DFakeOsAccess.java201 if (file.type == FileType.PIPE && file.sink.openCount == 0) { in write()
223 + ", src_red=" + file.outboundLimiter + ", dst_red=" + file.sink.inboundLimiter)); in write()
230 boolean hasChanges = copyFileBuffers(file, file.sink); in maybeTransferData()
330 file1.sink = file2; in registerFilePair()
332 file2.sink = file1; in registerFilePair()
374 copyFileBuffers(file, file.sink); in poll()
439 if (file.type == FileType.PIPE && file.sink.openCount == 0) { in calculateReadyCount()
518 File sink; field in FakeOsAccess.File
/frameworks/base/core/java/android/app/
DIUiAutomationConnection.aidl54 void executeShellCommand(String command, in ParcelFileDescriptor sink, in executeShellCommand() argument
62 void executeShellCommandWithStderr(String command, in ParcelFileDescriptor sink, in executeShellCommandWithStderr() argument
DUiAutomationConnection.java455 public void executeShellCommand(final String command, final ParcelFileDescriptor sink, in executeShellCommand() argument
457 executeShellCommandWithStderr(command, sink, source, null /* stderrSink */); in executeShellCommand()
461 public void executeShellCommandWithStderr(final String command, final ParcelFileDescriptor sink, in executeShellCommandWithStderr() argument
479 if (sink != null) { in executeShellCommandWithStderr()
481 OutputStream sink_out = new FileOutputStream(sink.getFileDescriptor()); in executeShellCommandWithStderr()
529 IoUtils.closeQuietly(sink); in executeShellCommandWithStderr()
/frameworks/base/core/java/android/app/backup/
DBlobBackupHelper.java164 ByteArrayOutputStream sink = new ByteArrayOutputStream(); in deflate() local
165 DataOutputStream headerOut = new DataOutputStream(sink); in deflate()
170 DeflaterOutputStream out = new DeflaterOutputStream(sink); in deflate()
173 result = sink.toByteArray(); in deflate()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DUsbAccessoryConstants.java17 package com.android.accessorydisplay.sink;
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp64 LinkedBlockingQueue<const sp<WebmFrame> >& sink) in WebmFrameSourceThread()
65 : mType(type), mSink(sink) { in WebmFrameSourceThread()
265 LinkedBlockingQueue<const sp<WebmFrame> >& sink, in WebmFrameMediaSourceThread()
271 : WebmFrameSourceThread(type, sink), in WebmFrameMediaSourceThread()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.cpp50 const sp<IGraphicBufferProducer>& sink, in VirtualDisplaySurface() argument
73 mSource[SOURCE_SINK] = sink;
79 sink->query(NATIVE_WINDOW_WIDTH, &sinkWidth);
80 sink->query(NATIVE_WINDOW_HEIGHT, &sinkHeight);
89 sink->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &sinkUsage);
92 sink->query(NATIVE_WINDOW_FORMAT, &sinkFormat);
103 sink->setAsyncMode(true);

123