Home
last modified time | relevance | path

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

12

/aosp14/frameworks/base/location/lib/java/com/android/location/provider/
H A 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()
H A DFusedLocationHardware.java37 public void registerSink(FusedLocationHardwareSink sink, Looper looper) {} in registerSink() argument
39 public void unregisterSink(FusedLocationHardwareSink sink) {} in unregisterSink() argument
/aosp14/frameworks/base/tests/AccessoryDisplay/
H A 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 …]
/aosp14/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
H A Dcow_api_test.cpp147 StringSink sink; in TEST_F() local
225 StringSink sink; in TEST_F() local
288 StringSink sink; in TEST_F() local
473 StringSink sink; in TEST_F() local
492 sink.Reset(); in TEST_F()
534 StringSink sink; in TEST_F() local
644 StringSink sink; in TEST_F() local
656 sink.Reset(); in TEST_F()
831 sink.Reset(); in TEST_F()
840 sink.Reset(); in TEST_F()
[all …]
H A Dcow_decompress.h50 void set_sink(IByteSink* sink) { sink_ = sink; } in set_sink() argument
H A Dinspect_cow.cpp156 StringSink sink; in Inspect() local
165 if (!reader.ReadData(op, &sink)) { in Inspect()
170 sink.Reset(); in Inspect()
/aosp14/frameworks/base/core/java/android/printservice/
H A 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()
/aosp14/system/core/fs_mgr/libsnapshot/
H A Dsnapshot_reader.cpp170 MemoryByteSink sink(buf, count); in Read() local
172 size_t initial_bytes = std::min(block_size_ - start_offset, sink.remaining()); in Read()
173 ssize_t rv = ReadBlock(start_chunk, &sink, start_offset, initial_bytes); in Read()
180 ssize_t rv = ReadBlock(chunk, &sink, 0); in Read()
187 if (sink.remaining()) { in Read()
188 ssize_t rv = ReadBlock(end_chunk, &sink, 0, {sink.remaining()}); in Read()
197 DCHECK(sink.pos() - sink.buf() == count); in Read()
227 ssize_t CompressedSnapshotReader::ReadBlock(uint64_t chunk, IByteSink* sink, size_t start_offset, in ReadBlock() argument
244 void* buffer = sink->GetBuffer(bytes_to_read, &actual); in ReadBlock()
/aosp14/system/core/fastboot/device/
H A Dusb_client.cpp45 struct usb_endpoint_descriptor_no_audio sink; member
52 struct usb_endpoint_descriptor_no_audio sink; member
87 .sink =
89 .bLength = sizeof(fs_descriptors.sink),
107 .sink =
109 .bLength = sizeof(hs_descriptors.sink),
133 .sink =
135 .bLength = sizeof(ss_descriptors.sink),
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/dialog/
H A DMediaOutputBroadcastDialog.java196 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,
410 + ", the device: " + sink.getAnonymizedAddress()); in startBroadcastWithConnectedDevices()
412 if (mMediaOutputController.isThereAnyBroadcastSourceIntoSinkDevice(sink)) { in startBroadcastWithConnectedDevices()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A 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()
H A 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,
H A DPanProfile.java116 for (BluetoothDevice sink : sinks) { in setEnabled()
117 mService.setConnectionPolicy(sink, CONNECTION_POLICY_FORBIDDEN); in setEnabled()
/aosp14/frameworks/base/core/java/android/hardware/location/
H A 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()
H A DIActivityRecognitionHardware.aidl44 boolean registerSink(in IActivityRecognitionHardwareSink sink); in registerSink() argument
50 boolean unregisterSink(in IActivityRecognitionHardwareSink sink); in unregisterSink() argument
/aosp14/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A 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()
/aosp14/frameworks/base/media/java/android/media/
H A DAudioPatch.java82 for (AudioPortConfig sink : mSinks) { in toString()
83 s.append(sink.toString()); in toString()
/aosp14/frameworks/base/core/java/android/app/
H A DIUiAutomationConnection.aidl54 void executeShellCommand(String command, in ParcelFileDescriptor sink, in executeShellCommand() argument
62 void executeShellCommandWithStderr(String command, in ParcelFileDescriptor sink, in executeShellCommandWithStderr() argument
H A DUiAutomationConnection.java460 public void executeShellCommand(final String command, final ParcelFileDescriptor sink, in executeShellCommand() argument
462 executeShellCommandWithStderr(command, sink, source, null /* stderrSink */); in executeShellCommand()
466 public void executeShellCommandWithStderr(final String command, final ParcelFileDescriptor sink, in executeShellCommandWithStderr() argument
484 if (sink != null) { in executeShellCommandWithStderr()
486 OutputStream sink_out = new FileOutputStream(sink.getFileDescriptor()); in executeShellCommandWithStderr()
534 IoUtils.closeQuietly(sink); in executeShellCommandWithStderr()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/
H A Dsnapuserd_buffer.cpp62 void XorSink::Initialize(BufferSink* sink, size_t size) { in Initialize() argument
63 bufsink_ = sink; in Initialize()
/aosp14/frameworks/base/core/java/android/app/backup/
H A 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()
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dcow_reader.h87 virtual bool ReadData(const CowOperation& op, IByteSink* sink) = 0;
142 bool ReadData(const CowOperation& op, IByteSink* sink) override;
/aosp14/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryConstants.java17 package com.android.accessorydisplay.sink;
/aosp14/frameworks/base/services/core/java/com/android/server/utils/
H A DEventLogger.java89 dumpSink.sink(mTag, new ArrayList<>(mEvents)); in dump()
117 void sink(String tag, List<Event> events); in sink() method
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/
H A DDualOutputStreamDumpSink.java44 public void sink(String tag, List<EventLogger.Event> events) { in sink() method in DualOutputStreamDumpSink

12