Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 672) sorted by relevance

12345678910>>...27

/aosp14/frameworks/base/cmds/idmap2/tests/
H A DRawPrintVisitorTests.cpp62 std::stringstream stream; in TEST() local
63 RawPrintVisitor visitor(stream); in TEST()
66 ASSERT_CONTAINS_REGEX(ADDRESS "504d4449 magic\n", stream.str()); in TEST()
67 ASSERT_CONTAINS_REGEX(ADDRESS "00000009 version\n", stream.str()); in TEST()
70 stream.str()); in TEST()
73 stream.str()); in TEST()
111 std::stringstream stream; in TEST() local
112 RawPrintVisitor visitor(stream); in TEST()
115 ASSERT_CONTAINS_REGEX(ADDRESS "504d4449 magic\n", stream.str()); in TEST()
116 ASSERT_CONTAINS_REGEX(ADDRESS "00000009 version\n", stream.str()); in TEST()
[all …]
H A DPrettyPrintVisitorTests.cpp49 std::stringstream stream; in TEST() local
50 PrettyPrintVisitor visitor(stream); in TEST()
53 ASSERT_NE(stream.str().find("target path : "), std::string::npos); in TEST()
54 ASSERT_NE(stream.str().find("overlay path : "), std::string::npos); in TEST()
55 ASSERT_NE(stream.str().find(StringPrintf("0x%08x -> 0x%08x (integer/int1 -> integer/int1)\n", in TEST()
69 std::stringstream stream; in TEST() local
70 PrettyPrintVisitor visitor(stream); in TEST()
73 ASSERT_NE(stream.str().find("target path : "), std::string::npos); in TEST()
74 ASSERT_NE(stream.str().find("overlay path : "), std::string::npos); in TEST()
75 ASSERT_NE(stream.str().find("0x7f020000 -> 0x7f020000 (\?\?\? -> \?\?\?)\n"), std::string::npos); in TEST()
/aosp14/frameworks/base/media/jni/soundpool/
H A DStreamManager.cpp74 return stream != nullptr && stream->getStreamID() == streamID ? stream : nullptr; in findStream()
93 stream, in getNextIdForStream()
94 [] (Stream *stream) { in getNextIdForStream() argument
95 return stream == nullptr ? 0 : stream->getStreamID(); in getNextIdForStream()
146 forEach([](Stream *stream) { stream->stop(); }); in ~StreamManager() argument
151 forEach([](Stream *stream) { stream->clearAudioTrack(); }); in ~StreamManager() argument
320 addToRestartQueue_l(stream); in moveToRestartQueue_l()
329 if (*it == stream) { in removeFromQueues_l()
355 mRestartStreams.emplace(stream->getStopTimeNs(), stream); in addToRestartQueue_l()
398 stream->stop(); in run()
[all …]
H A DSoundPool.cpp149 mStreamManager.forEach([](soundpool::Stream *stream) { stream->autoPause(); }); in autoPause() argument
156 mStreamManager.forEach([](soundpool::Stream *stream) { stream->autoResume(); }); in autoResume() argument
163 mStreamManager.forEach([=](soundpool::Stream *stream) { stream->mute(muting); }); in mute() argument
171 stream->pause(streamID); in pause()
180 stream->resume(streamID); in resume()
189 if (stream != nullptr && stream->requestStop(streamID)) { in stop()
190 mStreamManager.moveToRestartQueue(stream, streamID); in stop()
200 stream->setVolume(streamID, leftVolume, rightVolume); in setVolume()
210 stream->setPriority(streamID, priority); in setPriority()
220 stream->setLoop(streamID, loop); in setLoop()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/apphibernation/
H A DGlobalLevelHibernationProto.java37 public void writeToProto(@NonNull ProtoOutputStream stream, in writeToProto() argument
40 long token = stream.start(GlobalLevelHibernationStatesProto.HIBERNATION_STATE); in writeToProto()
42 stream.write(GlobalLevelHibernationStateProto.PACKAGE_NAME, state.packageName); in writeToProto()
43 stream.write(GlobalLevelHibernationStateProto.HIBERNATED, state.hibernated); in writeToProto()
44 stream.write(GlobalLevelHibernationStateProto.SAVED_BYTE, state.savedByte); in writeToProto()
45 stream.end(token); in writeToProto()
53 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
54 if (stream.getFieldNumber() in readFromProto()
60 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
61 switch (stream.getFieldNumber()) { in readFromProto()
[all …]
H A DUserLevelHibernationProto.java37 public void writeToProto(@NonNull ProtoOutputStream stream, in writeToProto() argument
40 long token = stream.start(UserLevelHibernationStatesProto.HIBERNATION_STATE); in writeToProto()
42 stream.write(UserLevelHibernationStateProto.PACKAGE_NAME, state.packageName); in writeToProto()
43 stream.write(UserLevelHibernationStateProto.HIBERNATED, state.hibernated); in writeToProto()
44 stream.end(token); in writeToProto()
49 public @Nullable List<UserLevelState> readFromProto(@NonNull ProtoInputStream stream) in readFromProto() argument
52 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
53 if (stream.getFieldNumber() in readFromProto()
59 while (stream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
60 switch (stream.getFieldNumber()) { in readFromProto()
[all …]
/aosp14/frameworks/base/cmds/idmap2/libidmap2/
H A DIdmap.cpp68 if (!Read32(stream, &size)) { in ReadString()
76 if (!stream.read(buf.data(), size)) { in ReadString()
91 if (!Read32(stream, &idmap_header->magic_) || !Read32(stream, &idmap_header->version_)) { in FromBinaryStream()
101 if (!Read32(stream, &idmap_header->target_crc_) || !Read32(stream, &idmap_header->overlay_crc_) || in FromBinaryStream()
103 !Read32(stream, &enforce_overlayable) || !ReadString(stream, &idmap_header->target_path_) || in FromBinaryStream()
208 if (!Read32(stream, &target_entry.target_id) || !Read32(stream, &target_entry.overlay_id)) { in FromBinaryStream()
220 if (!Read32(stream, &target_entry.target_id) || !Read32(stream, &entry_offset) in FromBinaryStream()
233 if (!Read32(stream, &config_index)) { in FromBinaryStream()
237 if (!Read16(stream, &unused2) in FromBinaryStream()
238 || !Read8(stream, &unused1) in FromBinaryStream()
[all …]
H A DCommandLineOptions.cpp95 std::stringstream stream; in Parse() local
96 Usage(stream); in Parse()
107 std::stringstream stream; in Parse() local
108 Usage(stream); in Parse()
118 std::stringstream stream; in Parse() local
119 Usage(stream); in Parse()
125 std::stringstream stream; in Parse() local
129 stream << ", "; in Parse()
134 stream << std::endl; in Parse()
135 Usage(stream); in Parse()
[all …]
/aosp14/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
H A DProtoInputStreamIncompleteValueTest.java45 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteVarint() local
46 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteVarint()
60 stream.close(); in testIncompleteVarint()
64 stream.close(); in testIncompleteVarint()
83 InputStream stream = new ByteArrayInputStream(protobuf); in testIncompleteFixed64() local
98 stream.close(); in testIncompleteFixed64()
102 stream.close(); in testIncompleteFixed64()
136 stream.close(); in testIncompleteLengthDelimited()
140 stream.close(); in testIncompleteLengthDelimited()
173 stream.close(); in testIncompleteFixed32()
[all …]
H A DProtoInputStreamObjectTest.java101 InputStream stream = new ByteArrayInputStream(protobuf); in testObjectOneChar() local
121 stream.close(); in testObjectOneChar()
155 InputStream stream = new ByteArrayInputStream(protobuf); in testObjectOneLargeChar() local
175 stream.close(); in testObjectOneLargeChar()
212 InputStream stream = new ByteArrayInputStream(protobuf); in testObjectAndTwoChars() local
237 stream.close(); in testObjectAndTwoChars()
282 InputStream stream = new ByteArrayInputStream(protobuf); in testComplexObject() local
307 stream.close(); in testComplexObject()
351 InputStream stream = new ByteArrayInputStream(protobuf); in testDeepObjects() local
368 stream.close(); in testDeepObjects()
[all …]
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DUsbMidiBlockParser.java65 mLength = stream.getUnsignedByte(); in parseRawDescriptors()
66 mDescriptorType = stream.getUnsignedByte(); in parseRawDescriptors()
68 mGroupBlockId = stream.getUnsignedByte(); in parseRawDescriptors()
70 mGroupTerminal = stream.getUnsignedByte(); in parseRawDescriptors()
72 mBlockItem = stream.getUnsignedByte(); in parseRawDescriptors()
73 mMidiProtocol = stream.getUnsignedByte(); in parseRawDescriptors()
120 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
121 mHeaderLength = stream.getUnsignedByte(); in parseRawDescriptors()
124 mTotalLength = stream.unpackUsbShort(); in parseRawDescriptors()
128 block.parseRawDescriptors(stream); in parseRawDescriptors()
[all …]
H A DUsb20ACInputTerminal.java70 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
71 super.parseRawDescriptors(stream); in parseRawDescriptors()
73 mClkSourceID = stream.getByte(); in parseRawDescriptors()
74 mNumChannels = stream.getByte(); in parseRawDescriptors()
75 mChanConfig = stream.unpackUsbInt(); in parseRawDescriptors()
76 mChanNames = stream.getByte(); in parseRawDescriptors()
77 mControls = stream.unpackUsbShort(); in parseRawDescriptors()
78 mTerminalName = stream.getByte(); in parseRawDescriptors()
H A DUsbInterfaceAssoc.java65 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
66 mFirstInterface = stream.getByte(); in parseRawDescriptors()
67 mInterfaceCount = stream.getByte(); in parseRawDescriptors()
68 mFunctionClass = stream.getByte(); in parseRawDescriptors()
69 mFunctionSubClass = stream.getByte(); in parseRawDescriptors()
70 mFunctionProtocol = stream.getByte(); in parseRawDescriptors()
71 mFunction = stream.getByte(); in parseRawDescriptors()
H A DUsb20ACMixerUnit.java56 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
57 super.parseRawDescriptors(stream); in parseRawDescriptors()
59 mChanConfig = stream.unpackUsbInt(); in parseRawDescriptors()
60 mChanNames = stream.getByte(); in parseRawDescriptors()
64 mControls[index] = stream.getByte(); in parseRawDescriptors()
66 mControlsMask = stream.getByte(); in parseRawDescriptors()
67 mNameID = stream.getByte(); in parseRawDescriptors()
H A DUsbBinaryParser.java32 private void dumpDescriptor(ByteStream stream, int length, byte type, StringBuilder builder) { in dumpDescriptor() argument
40 sb.append("0x" + Integer.toHexString(stream.getByte() & 0xFF) + " "); in dumpDescriptor()
50 builder.append("0x" + Integer.toHexString(stream.getByte() & 0xFF) + " "); in dumpDescriptor()
64 ByteStream stream = new ByteStream(descriptors); in parseDescriptors() local
65 while (stream.available() > 0) { in parseDescriptors()
66 int length = (int) stream.getByte() & 0x000000FF; in parseDescriptors()
67 byte type = stream.getByte(); in parseDescriptors()
68 dumpDescriptor(stream, length, type, builder); in parseDescriptors()
H A DUsb20ASGeneral.java80 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
82 mTerminalLink = stream.getByte(); in parseRawDescriptors()
83 mControls = stream.getByte(); in parseRawDescriptors()
84 mFormatType = stream.getByte(); in parseRawDescriptors()
85 mFormats = stream.unpackUsbInt(); in parseRawDescriptors()
86 mNumChannels = stream.getByte(); in parseRawDescriptors()
87 mChannelConfig = stream.unpackUsbInt(); in parseRawDescriptors()
88 mChannelNames = stream.getByte(); in parseRawDescriptors()
H A DUsbDeviceDescriptor.java169 mSpec = stream.unpackUsbShort(); in parseRawDescriptors()
170 mDevClass = stream.getUnsignedByte(); in parseRawDescriptors()
171 mDevSubClass = stream.getUnsignedByte(); in parseRawDescriptors()
172 mProtocol = stream.getUnsignedByte(); in parseRawDescriptors()
173 mPacketSize = stream.getByte(); in parseRawDescriptors()
174 mVendorID = stream.unpackUsbShort(); in parseRawDescriptors()
175 mProductID = stream.unpackUsbShort(); in parseRawDescriptors()
177 mMfgIndex = stream.getByte(); in parseRawDescriptors()
178 mProductIndex = stream.getByte(); in parseRawDescriptors()
179 mSerialIndex = stream.getByte(); in parseRawDescriptors()
[all …]
H A DUsb10ASFormatI.java74 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
75 mNumChannels = stream.getByte(); in parseRawDescriptors()
76 mSubframeSize = stream.getByte(); in parseRawDescriptors()
77 mBitResolution = stream.getByte(); in parseRawDescriptors()
78 mSampleFreqType = stream.getByte(); in parseRawDescriptors()
81 mSampleRates[0] = stream.unpackUsbTriple(); in parseRawDescriptors()
82 mSampleRates[1] = stream.unpackUsbTriple(); in parseRawDescriptors()
86 mSampleRates[index] = stream.unpackUsbTriple(); in parseRawDescriptors()
H A DUsbACAudioControlEndpoint.java62 public int parseRawDescriptors(ByteStream stream) { in parseRawDescriptors() argument
63 super.parseRawDescriptors(stream); in parseRawDescriptors()
65 mAddress = stream.getByte(); in parseRawDescriptors()
66 mAttribs = stream.getByte(); in parseRawDescriptors()
67 mMaxPacketSize = stream.unpackUsbShort(); in parseRawDescriptors()
68 mInterval = stream.getByte(); in parseRawDescriptors()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DVolumeCtrl.java67 int stream = AudioManager.STREAM_MUSIC; in run() local
90 "will control stream=" + stream + " (" + streamName(stream) + ")"); in run()
138 if ((volIndex > audioService.getStreamMaxVolume(stream)) in run()
139 || (volIndex < audioService.getStreamMinVolume(stream))) { in run()
142 audioService.getStreamMinVolume(stream), in run()
143 audioService.getStreamMaxVolume(stream))); in run()
155 audioService.adjustStreamVolume(stream, adjDir, flag, pack); in run()
159 + " in range [" + audioService.getStreamMinVolume(stream) in run()
160 + ".." + audioService.getStreamMaxVolume(stream) + "]"); in run()
164 static String streamName(int stream) { in streamName() argument
[all …]
/aosp14/frameworks/base/core/java/android/os/incremental/
H A DV4Signature.java195 return readFrom(stream); in readFrom()
205 return readFrom(stream); in readFrom()
214 this.writeTo(stream); in toByteArray()
215 return stream.toByteArray(); in toByteArray()
269 writeIntLE(stream, this.version); in writeTo()
293 readFully(stream, buffer); in readIntLE()
300 stream.write(buffer); in writeIntLE()
311 readFully(stream, bytes); in readBytes()
333 writeIntLE(stream, 0); in writeBytes()
336 writeIntLE(stream, bytes.length); in writeBytes()
[all …]
/aosp14/frameworks/base/cmds/idmap2/include/idmap2/
H A DSysTrace.h37 std::ostream& stream() { in stream() function
50 && android::idmap2::utils::ScopedTraceMessageHelper().stream()
56 std::ostream& stream() {
64 #define SYSTRACE android::idmap2::utils::DummyStream().stream()
70 std::ostream& operator<<(std::ostream& stream, const std::vector<T>& vector) {
72 stream << "[";
75 stream << ", ";
77 stream << item;
80 stream << "]";
81 return stream;
/aosp14/system/core/debuggerd/common/include/
H A Ddump_type.h31 inline std::ostream& operator<<(std::ostream& stream, const DebuggerdDumpType& rhs) {
34 stream << "kDebuggerdNativeBacktrace";
37 stream << "kDebuggerdTombstone";
40 stream << "kDebuggerdJavaBacktrace";
43 stream << "kDebuggerdAnyIntercept";
46 stream << "kDebuggerdTombstoneProto";
49 stream << "[unknown]";
52 return stream;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DVolumeDialogControllerImpl.java560 updateStreamLevelW(stream, getAudioManagerStreamVolume(stream));
561 streamStateW(stream).levelMin = getAudioManagerStreamMinVolume(stream);
562 streamStateW(stream).levelMax = Math.max(1, getAudioManagerStreamMaxVolume(stream));
563 updateStreamMuteW(stream, mAudio.isStreamMute(stream));
590 if (isLogWorthy(stream)) {
597 switch (stream) {
613 if (isLogWorthy(stream)) {
623 return stream == AudioManager.STREAM_RING || stream == AudioManager.STREAM_NOTIFICATION;
1255 int stream = 0; in onRemoteUpdate() local
1286 int stream = 0;
[all …]
/aosp14/frameworks/base/proto/src/
H A Dcamera.proto29 // The stream width (in pixels)
31 // The stream height (in pixels)
33 // The format of the stream
35 // The dataspace of the stream
37 // The usage flag of the stream
40 // The number of requests for this stream
42 // The number of buffer error for this stream
52 // Type of stream histogram
66 // The dynamic range profile of the stream
68 // The stream use case
[all …]

12345678910>>...27