/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | HwModule.cpp | 177 sp<IOProfile> stream = mInputProfiles[i]; local 179 const AudioRouteVector &routes = stream->getRoutes(); 182 if (sink == 0 || stream != sink) { 183 ALOGE("%s: Invalid route attached to input stream", __FUNCTION__); 188 ALOGE("%s: invalid source devices for %s", __FUNCTION__, stream->getName().string()); 194 ALOGE("%s: invalid source devices for %s", __FUNCTION__, stream->getName().string()); 197 stream->setSupportedDevices(sourceDevices); 200 sp<IOProfile> stream = mOutputProfiles[i]; local 202 const AudioRouteVector &routes = stream->getRoutes(); 204 sp<AudioPort> source = routes[j]->getSources().findByTagName(stream [all...] |
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.h | 64 virtual routing_strategy getStrategyForStream(audio_stream_type_t stream) argument 66 return mPolicyEngine->getPropertyForKey<routing_strategy, audio_stream_type_t>(stream); 106 virtual status_t addStream(const std::string &name, audio_stream_type_t stream) argument 108 return mPolicyEngine->add<audio_stream_type_t>(name, stream); 123 virtual bool setStrategyForStream(const audio_stream_type_t &stream, argument 127 stream); 129 virtual bool setVolumeProfileForStream(const audio_stream_type_t &stream, 155 bool setVolumeProfileForStream(const audio_stream_type_t &stream,
|
/frameworks/av/services/audiopolicy/service/ |
H A D | AudioPolicyClientImpl.cpp | 126 status_t AudioPolicyService::AudioPolicyClient::setStreamVolume(audio_stream_type_t stream, argument 130 return mAudioPolicyService->setStreamVolume(stream, volume, output, 134 status_t AudioPolicyService::AudioPolicyClient::invalidateStream(audio_stream_type_t stream) argument 141 return af->invalidateStream(stream); 159 audio_stream_type_t stream) 161 return mAudioPolicyService->startTone(tone, stream); 158 startTone(audio_policy_tone_t tone, audio_stream_type_t stream) argument
|
H A D | AudioPolicyEffects.cpp | 225 audio_stream_type_t stream, 231 // create audio processors according to stream 234 if (stream >= AUDIO_STREAM_PUBLIC_CNT) { 235 stream = AUDIO_STREAM_MUSIC; 237 ssize_t index = mOutputStreams.indexOfKey(stream); 239 ALOGV("addOutputSessionEffects(): no output processing needed for this stream"); 271 ALOGV("addOutputSessionEffects(): added Fx %s on session: %d for stream: %d", 272 effect->mName, audioSession, (int32_t)stream); 283 audio_stream_type_t stream, 288 (void) stream; // argumen 224 addOutputSessionEffects(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t audioSession) argument 282 releaseOutputSessionEffects(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t audioSession) argument 636 audio_stream_type_t stream = streamNameToEnum(node->name); local [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3BufferManager.cpp | 38 status_t Camera3BufferManager::registerStream(wp<Camera3OutputStream>& stream, argument 46 ALOGE("%s: Stream id (%d) or stream set id (%d) is invalid", 51 ALOGE("%s: Stream id (%d) with stream set id (%d) total buffer count %zu is invalid", 60 // For Gralloc v1, try to allocate a buffer and see if it is successful, otherwise, stream 61 // buffer sharing for this newly added stream is not supported. For Gralloc v0, we don't 63 // allocated for each stream individually, the allocation failure will be checked in 74 // Check if this stream was registered with different stream set ID, if so, error out. 79 ALOGE("%s: It is illegal to register the same stream id with different stream se 206 sp<Camera3OutputStream> stream = local [all...] |
/frameworks/base/core/java/android/gesture/ |
H A D | GestureUtils.java | 48 * Closes the specified stream. 50 * @param stream The stream to close. 52 static void closeStream(Closeable stream) { argument 53 if (stream != null) { 55 stream.close(); 57 Log.e(LOG_TAG, "Could not close stream", e);
|
/frameworks/base/core/java/android/webkit/ |
H A D | CacheManager.java | 178 * Gets the input stream to the content of this cache entry, to allow 182 * @return an input stream to the content of this cache entry 189 * Gets an output stream to the content of this cache entry, to allow 193 * @return an output stream to the content of this cache entry 202 * Sets an input stream to the content of this cache entry. 204 * @param stream an input stream to the content of this cache entry 206 public void setInputStream(InputStream stream) { argument 207 this.inStream = stream; 280 * The input stream o [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | TextClock.java | 608 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument 609 super.encodeProperties(stream); 612 stream.addProperty("format12Hour", s == null ? null : s.toString()); 615 stream.addProperty("format24Hour", s == null ? null : s.toString()); 616 stream.addProperty("format", mFormat == null ? null : mFormat.toString()); 617 stream.addProperty("hasSeconds", mHasSeconds);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 46 static jobject createBitmapRegionDecoder(JNIEnv* env, std::unique_ptr<SkStreamRewindable> stream) { argument 48 SkBitmapRegionDecoder::Create(stream.release(), 65 std::unique_ptr<SkMemoryStream> stream(new SkMemoryStream(ar.ptr() + offset, length, true)); 67 // the decoder owns the stream. 68 jobject brd = createBitmapRegionDecoder(env, std::move(stream)); 85 std::unique_ptr<SkMemoryStream> stream(new SkMemoryStream(std::move(data))); 87 // the decoder owns the stream. 88 jobject brd = createBitmapRegionDecoder(env, std::move(stream)); 98 std::unique_ptr<SkStreamRewindable> stream(CopyJavaInputStream(env, is, storage)); 100 if (stream) { [all...] |
H A D | CreateJavaOutputStreamAdaptor.cpp | 82 // Consider the stream to be at the end, since there was an error. 98 // The error was not with the stream itself, but consider it to be at the 139 SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, argument 141 return new JavaInputStreamAdaptor(env, stream, storage); 145 static SkMemoryStream* adaptor_to_mem_stream(SkStream* stream) { argument 146 SkASSERT(stream != NULL); 152 while ((len = stream->read(data + streamLen, 167 SkStreamRewindable* CopyJavaInputStream(JNIEnv* env, jobject stream, argument 169 std::unique_ptr<SkStream> adaptor(CreateJavaInputStreamAdaptor(env, stream, storage)); 183 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArra argument 243 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument [all...] |
H A D | YuvToJpegEncoder.cpp | 26 bool YuvToJpegEncoder::encode(SkWStream* stream, void* inYuv, int width, argument 30 skjpeg_destination_mgr sk_wstream(stream);
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 91 void write(SkWStream* stream) { argument 92 sk_sp<SkDocument> document = SkDocument::MakePDF(stream);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Picture.java | 136 * Create a new picture (already recorded) from the data in the stream. This 147 public static Picture createFromStream(InputStream stream) { argument 148 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE])); 152 * Write the picture contents to a stream. The data can be used to recreate 154 * The resulting stream is NOT to be persisted across device restarts as 162 public void writeToStream(OutputStream stream) { argument 164 if (stream == null) { 167 if (!nativeWriteToStream(mNativePicture, stream, 175 private static native long nativeCreateFromStream(InputStream stream, byte[] storage); argument 182 OutputStream stream, byt 181 nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage) argument [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreSpi.java | 931 public void engineStore(OutputStream stream, char[] password) throws IOException, argument 937 public void engineLoad(InputStream stream, char[] password) throws IOException, argument 939 if (stream != null) {
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | SimplePlayer.java | 65 int stopButtonId, ImageView stopButton, TextView sessionText, String fileName, int stream, int session) 67 set(context, playPausebuttonId, playPausebutton, stopButtonId, stopButton, sessionText, stream, session); 72 int stopButtonId, ImageView stopButton, TextView sessionText, int fileResId, int stream, int session) { 73 set(context, playPausebuttonId, playPausebutton, stopButtonId, stopButton, sessionText, stream, session); 79 int stopButtonId, ImageView stopButton, TextView sessionText, int stream, int session) { 92 mStreamType = stream; 64 SimplePlayer(Context context, int playPausebuttonId, ImageView playPausebutton, int stopButtonId, ImageView stopButton, TextView sessionText, String fileName, int stream, int session) argument 71 SimplePlayer(Context context, int playPausebuttonId, ImageView playPausebutton, int stopButtonId, ImageView stopButton, TextView sessionText, int fileResId, int stream, int session) argument 78 set(Context context, int playPausebuttonId, ImageView playPausebutton, int stopButtonId, ImageView stopButton, TextView sessionText, int stream, int session) argument
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/ |
H A D | VolumeDialogController.java | 42 void setActiveStream(int stream); argument 43 void setStreamVolume(int stream, int userLevel); argument 131 final int stream = states.keyAt(i); 133 sb.append(AudioSystem.streamToString(stream)).append(":").append(ss.level)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 308 * @param stream the AudioStream to use. 313 public void play(Context context, Uri uri, boolean looping, int stream) { argument 314 PlayerBase.deprecateStreamTypeForPlayback(stream, "NotificationPlayer", "play"); 321 cmd.attributes = new AudioAttributes.Builder().setInternalLegacyStreamType(stream).build();
|
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/ |
H A D | DisplaySourceService.java | 212 stream(codec); 227 private void stream(MediaCodec codec) { method in class:DisplaySourceService.VirtualDisplayThread
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
H A D | AsmGeneratorTest.java | 303 private static byte[] getByteArray(InputStream stream) throws IOException { argument 307 while ((read = stream.read(buffer, 0, buffer.length)) > -1) { 368 Arrays.stream(interfaces).forEach(this::addClass); 381 Arrays.stream(type.getArgumentTypes()).forEach(this::processType);
|
/frameworks/data-binding/compilationTests/src/test/java/android/databinding/compilationTest/ |
H A D | BaseCompilationTest.java | 278 private static String collect(InputStream stream) throws IOException { argument 281 final BufferedReader reader = new BufferedReader(new InputStreamReader(stream));
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequence.java | 87 public static FrameSequence decodeStream(InputStream stream) { argument 88 if (stream == null) throw new IllegalArgumentException(); 90 return nativeDecodeStream(stream, tempStorage);
|
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/native/ |
H A D | sparse_weight_vector.h | 162 std::stringstream stream; local 163 stream << *this; 164 return stream.str(); 191 std::ostream& operator<<(std::ostream &stream, argument 194 stream << "[[ "; 198 stream << "<" << iter->first << ", " << iter->second << "> "; 200 return stream << " ]]";
|
/frameworks/native/libs/math/include/math/ |
H A D | TQuatHelpers.h | 292 friend std::ostream& operator<< (std::ostream& stream, const QUATERNION<T>& q) { argument 293 return stream << "< " << q.w << " + " << q.x << "i + " << q.y << "j + " << q.z << "k >";
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | serialization.h | 163 std::ostringstream stream; local 169 stream << "UNEXPECTED_ENCODING: " << static_cast<int>(encoding_class()) 171 return stream.str();
|
/frameworks/native/services/vr/bufferhubd/ |
H A D | buffer_hub.cpp | 37 std::ostringstream stream; local 46 stream << "Active Producer Buffers:\n"; 47 stream << std::right; 48 stream << std::setw(6) << "Id"; 49 stream << " "; 50 stream << std::setw(9) << "Consumers"; 51 stream << " "; 52 stream << std::setw(14) << "Geometry"; 53 stream << " "; 54 stream << st [all...] |