Home
last modified time | relevance | path

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

123

/frameworks/base/location/lib/java/com/android/location/provider/
DActivityRecognitionProvider.java75 public void registerSink(Sink sink) { in registerSink() argument
76 Preconditions.checkNotNull(sink); in registerSink()
78 mSinkSet.add(sink); in registerSink()
84 public void unregisterSink(Sink sink) { in unregisterSink() argument
85 Preconditions.checkNotNull(sink); in unregisterSink()
87 mSinkSet.remove(sink); in unregisterSink()
127 for (Sink sink : sinks) { in onActivityChanged()
128 sink.onActivityChanged(gmsEvent); in onActivityChanged()
DFusedLocationHardware.java77 public void registerSink(FusedLocationHardwareSink sink, Looper looper) { in registerSink() argument
78 if(sink == null || looper == null) { in registerSink()
87 if(mSinkList.containsKey(sink)) { in registerSink()
93 newSinkList.put(sink, new DispatcherHandler(looper)); in registerSink()
106 public void unregisterSink(FusedLocationHardwareSink sink) { in unregisterSink() argument
107 if(sink == null) { in unregisterSink()
113 if(!mSinkList.containsKey(sink)) { in unregisterSink()
120 newSinkList.remove(sink); in unregisterSink()
283 FusedLocationHardwareSink sink, in MessageCommand() argument
288 mSink = sink; in MessageCommand()
/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/services/core/java/com/android/server/location/
DFlpHardwareProvider.java118 IFusedLocationHardwareSink sink; in onLocationReport() local
120 sink = mLocationSink; in onLocationReport()
123 if (sink != null) { in onLocationReport()
124 sink.onLocationAvailable(locations); in onLocationReport()
145 IFusedLocationHardwareSink sink; in onBatchingStatus() local
147 sink = mLocationSink; in onBatchingStatus()
150 if (sink != null) { in onBatchingStatus()
151 sink.onStatusChanged(status); in onBatchingStatus()
179 IFusedLocationHardwareSink sink; in maybeSendCapabilities() local
183 sink = mLocationSink; in maybeSendCapabilities()
[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/core/java/android/hardware/location/
DActivityRecognitionHardware.java105 public boolean registerSink(IActivityRecognitionHardwareSink sink) { in registerSink() argument
107 return mSinks.register(sink); in registerSink()
111 public boolean unregisterSink(IActivityRecognitionHardwareSink sink) { in unregisterSink() argument
113 return mSinks.unregister(sink); in unregisterSink()
180 IActivityRecognitionHardwareSink sink = mSinks.getBroadcastItem(i); in onActivityChanged() local
182 sink.onActivityChanged(activityChangedEvent); in onActivityChanged()
DIActivityRecognitionHardware.aidl41 boolean registerSink(in IActivityRecognitionHardwareSink sink); in registerSink() argument
46 boolean unregisterSink(in IActivityRecognitionHardwareSink sink); in unregisterSink() argument
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.h101 WebmFrameSourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink);
114 WebmFrameEmptySourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink) in WebmFrameEmptySourceThread() argument
115 : WebmFrameSourceThread(type, sink) { in WebmFrameEmptySourceThread()
128 LinkedBlockingQueue<const sp<WebmFrame> >& sink,
DWebmFrameThread.cpp58 LinkedBlockingQueue<const sp<WebmFrame> >& sink) in WebmFrameSourceThread()
59 : mType(type), mSink(sink) { in WebmFrameSourceThread()
251 LinkedBlockingQueue<const sp<WebmFrame> >& sink, in WebmFrameMediaSourceThread()
257 : WebmFrameSourceThread(type, sink), in WebmFrameMediaSourceThread()
/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<AudioPort> &sink) { mSink = sink; } in setSink() argument
/frameworks/base/media/java/android/media/
DAudioPatch.java75 for (AudioPortConfig sink : mSinks) { in toString()
76 s.append(sink.toString()); in toString()
/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/native/services/surfaceflinger/DisplayHardware/
DVirtualDisplaySurface.cpp52 const sp<IGraphicBufferProducer>& sink, in VirtualDisplaySurface() argument
78 mSource[SOURCE_SINK] = sink;
84 sink->query(NATIVE_WINDOW_WIDTH, &sinkWidth);
85 sink->query(NATIVE_WINDOW_HEIGHT, &sinkHeight);
94 sink->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &sinkUsage);
97 sink->query(NATIVE_WINDOW_FORMAT, &sinkFormat);
108 sink->setAsyncMode(true);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DPanProfile.java89 for (BluetoothDevice sink : sinks) { in connect()
90 mService.disconnect(sink); in connect()
DSapProfile.java116 for (BluetoothDevice sink : sinks) { in connect()
117 mService.disconnect(sink); in connect()
DA2dpProfile.java118 for (BluetoothDevice sink : sinks) { in connect()
119 mService.disconnect(sink); in connect()
DHeadsetProfile.java117 for (BluetoothDevice sink : sinks) { in connect()
118 Log.d(TAG,"Not disconnecting device = " + sink); in connect()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DUsbAccessoryConstants.java17 package com.android.accessorydisplay.sink;
DUsbAccessoryBulkTransport.java17 package com.android.accessorydisplay.sink;
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DSerializer.cpp341 const char RouteTraits::Attributes::sink[] = "sink"; member in android::RouteTraits::Attributes
359 string sinkAttr = getXmlAttribute(root, Attributes::sink); in deserialize()
361 ALOGE("%s: No %s found", __FUNCTION__, Attributes::sink); in deserialize()
365 sp<AudioPort> sink = ctx->findPortByTagName(String8(sinkAttr.c_str())); in deserialize() local
366 if (sink == NULL) { in deserialize()
370 element->setSink(sink); in deserialize()
394 sink->addRoute(element); in deserialize()
DHwModule.cpp181 sp<AudioPort> sink = routes[j]->getSink(); in refreshSupportedDevices() local
182 if (sink == 0 || stream != sink) { in refreshSupportedDevices()
/frameworks/base/core/java/android/app/
DUiAutomationConnection.java271 public void executeShellCommand(final String command, final ParcelFileDescriptor sink) in executeShellCommand() argument
289 out = new FileOutputStream(sink.getFileDescriptor()); in executeShellCommand()
306 IoUtils.closeQuietly(sink); in executeShellCommand()
DUiAutomation.java986 ParcelFileDescriptor sink = null; in executeShellCommand() local
991 sink = pipe[1]; in executeShellCommand()
994 mUiAutomationConnection.executeShellCommand(command, sink); in executeShellCommand()
1000 IoUtils.closeQuietly(sink); in executeShellCommand()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DRemotePrintDocument.java1016 ParcelFileDescriptor sink = null; in run() local
1021 sink = pipe[1]; in run()
1030 mAdapter.write(mPages, sink, mRemoteResultCallback, mSequence); in run()
1033 sink.close(); in run()
1034 sink = null; in run()
1050 IoUtils.closeQuietly(sink); in run()

123