Searched refs:sink (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/hardware/location/
H A DIActivityRecognitionHardware.aidl39 * Registers a sink with Hardware Activity-Recognition.
41 boolean registerSink(in IActivityRecognitionHardwareSink sink);
44 * Unregisters a sink with Hardware Activity-Recognition.
46 boolean unregisterSink(in IActivityRecognitionHardwareSink sink);
H A DActivityRecognitionHardware.java105 public boolean registerSink(IActivityRecognitionHardwareSink sink) { argument
107 return mSinks.register(sink);
111 public boolean unregisterSink(IActivityRecognitionHardwareSink sink) { argument
113 return mSinks.unregister(sink);
180 IActivityRecognitionHardwareSink sink = mSinks.getBroadcastItem(i);
182 sink.onActivityChanged(activityChangedEvent);
240 // up after them, this ensures that the AR HAL is not out of sink
/frameworks/base/core/java/android/printservice/
H A DPrintDocument.java77 ParcelFileDescriptor sink = null;
81 sink = fds[1];
82 mPrintServiceClient.writePrintJobData(sink, mPrintJobId);
89 if (sink != null) {
91 sink.close();
/frameworks/base/location/lib/java/com/android/location/provider/
H A DActivityRecognitionProvider.java75 public void registerSink(Sink sink) { argument
76 Preconditions.checkNotNull(sink);
78 mSinkSet.add(sink);
84 public void unregisterSink(Sink sink) { argument
85 Preconditions.checkNotNull(sink);
87 mSinkSet.remove(sink);
127 for (Sink sink : sinks) {
128 sink.onActivityChanged(gmsEvent);
H A DFusedLocationHardware.java77 public void registerSink(FusedLocationHardwareSink sink, Looper looper) { argument
78 if(sink == null || looper == null) {
79 throw new IllegalArgumentException("Parameter sink and looper cannot be null.");
87 if(mSinkList.containsKey(sink)) {
93 newSinkList.put(sink, new DispatcherHandler(looper));
106 public void unregisterSink(FusedLocationHardwareSink sink) { argument
107 if(sink == null) {
108 throw new IllegalArgumentException("Parameter sink cannot be null.");
113 if(!mSinkList.containsKey(sink)) {
120 newSinkList.remove(sink);
282 MessageCommand( FusedLocationHardwareSink sink, Location[] locations, String data, int capabilities, int status) argument
[all...]
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryConstants.java17 package com.android.accessorydisplay.sink;
H A DUsbAccessoryBulkTransport.java17 package com.android.accessorydisplay.sink;
H A DUsbHid.java17 package com.android.accessorydisplay.sink;
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
H A DAudioRoute.h44 void setSink(const sp<AudioPort> &sink) { mSink = sink; } argument
/frameworks/base/media/java/android/media/
H A DAudioPatch.java23 * An audio sink can be an output device (speaker) or an input mix (capture AudioBus).
26 * It contains the list of source and sink AudioPortConfig showing audio port configurations
75 for (AudioPortConfig sink : mSinks) {
76 s.append(sink.toString());
/frameworks/base/services/core/java/com/android/server/location/
H A DFlpHardwareProvider.java118 IFusedLocationHardwareSink sink;
120 sink = mLocationSink;
123 if (sink != null) {
124 sink.onLocationAvailable(locations);
145 IFusedLocationHardwareSink sink;
147 sink = mLocationSink;
150 if (sink != null) {
151 sink.onStatusChanged(status);
179 IFusedLocationHardwareSink sink;
183 sink
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmFrameThread.h101 WebmFrameSourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink);
114 WebmFrameEmptySourceThread(int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink) argument
115 : WebmFrameSourceThread(type, sink) {
128 LinkedBlockingQueue<const sp<WebmFrame> >& sink,
H A DWebmFrameThread.cpp58 LinkedBlockingQueue<const sp<WebmFrame> >& sink)
59 : mType(type), mSink(sink) {
251 LinkedBlockingQueue<const sp<WebmFrame> >& sink,
257 : WebmFrameSourceThread(type, sink),
56 WebmFrameSourceThread( int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink) argument
248 WebmFrameMediaSourceThread( const sp<IMediaSource>& source, int type, LinkedBlockingQueue<const sp<WebmFrame> >& sink, uint64_t timeCodeScale, int64_t startTimeRealUs, int32_t startTimeOffsetMs, int numTracks, bool realTimeRecording) argument
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DTracer.java150 for (TracerSink sink : mSinks) {
151 sink.close();
180 for (TracerSink sink : mSinks) {
181 sink.log(message);
/frameworks/base/core/java/android/app/backup/
H A DBlobBackupHelper.java164 ByteArrayOutputStream sink = new ByteArrayOutputStream();
165 DataOutputStream headerOut = new DataOutputStream(sink);
167 // write the header directly to the sink ahead of the deflated payload
170 DeflaterOutputStream out = new DeflaterOutputStream(sink);
173 result = sink.toByteArray();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DA2dpProfile.java118 for (BluetoothDevice sink : sinks) {
119 mService.disconnect(sink);
H A DPanProfile.java89 for (BluetoothDevice sink : sinks) {
90 mService.disconnect(sink);
H A DHeadsetProfile.java117 for (BluetoothDevice sink : sinks) {
118 Log.d(TAG,"Not disconnecting device = " + sink);
H A DSapProfile.java116 for (BluetoothDevice sink : sinks) {
117 mService.disconnect(sink);
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DVirtualDisplaySurface.cpp52 const sp<IGraphicBufferProducer>& sink,
78 mSource[SOURCE_SINK] = sink;
84 sink->query(NATIVE_WINDOW_WIDTH, &sinkWidth);
85 sink->query(NATIVE_WINDOW_HEIGHT, &sinkHeight);
89 // Pick the buffer format to request from the sink when not rendering to it
94 sink->query(NATIVE_WINDOW_CONSUMER_USAGE_BITS, &sinkUsage);
97 sink->query(NATIVE_WINDOW_FORMAT, &sinkFormat);
108 sink->setAsyncMode(true);
202 // in a GLES configuration, if the sink disappears then dequeueBuffer
269 VDS_LOGV("onFrameCommitted: queue sink sslo
51 VirtualDisplaySurface(HWComposer& hwc, int32_t dispId, const sp<IGraphicBufferProducer>& sink, const sp<IGraphicBufferProducer>& bqProducer, const sp<IGraphicBufferConsumer>& bqConsumer, const String8& name) argument
[all...]
/frameworks/base/core/java/android/app/
H A DUiAutomationConnection.java271 public void executeShellCommand(final String command, final ParcelFileDescriptor sink) argument
289 out = new FileOutputStream(sink.getFileDescriptor());
306 IoUtils.closeQuietly(sink);
H A DUiAutomation.java986 ParcelFileDescriptor sink = null;
991 sink = pipe[1];
994 mUiAutomationConnection.executeShellCommand(command, sink);
1000 IoUtils.closeQuietly(sink);
/frameworks/av/include/media/stagefright/
H A DUtils.h65 status_t sendMetaDataToHal(sp<MediaPlayerBase::AudioSink>& sink, const sp<MetaData>& meta);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DSerializer.cpp341 const char RouteTraits::Attributes::sink[] = "sink"; member in class:android::RouteTraits::Attributes
359 string sinkAttr = getXmlAttribute(root, Attributes::sink);
361 ALOGE("%s: No %s found", __FUNCTION__, Attributes::sink);
365 sp<AudioPort> sink = ctx->findPortByTagName(String8(sinkAttr.c_str())); local
366 if (sink == NULL) {
367 ALOGE("%s: no sink found with name=%s", __FUNCTION__, sinkAttr.c_str());
370 element->setSink(sink);
394 sink->addRoute(element);
H A DHwModule.cpp181 sp<AudioPort> sink = routes[j]->getSink(); local
182 if (sink == 0 || stream != sink) {
211 ALOGE("%s: invalid sink device for %s", __FUNCTION__, stream->getName().string());

Completed in 6921 milliseconds

12