Searched refs:stream (Results 151 - 175 of 530) sorted by relevance

1234567891011>>

/frameworks/base/cmds/am/
H A DAndroid.mk10 LOCAL_PROTOC_OPTIMIZE_TYPE := stream
/frameworks/base/core/java/android/app/slice/
H A DSliceQuery.java25 import java.util.stream.Collectors;
26 import java.util.stream.Stream;
27 import java.util.stream.StreamSupport;
77 return stream(container).filter(s -> (s == item)).findAny().isPresent();
99 return stream(s).filter(item -> compareTypes(item, type)
145 return stream(s).filter(item -> compareTypes(item, type)
152 public static Stream<SliceItem> stream(SliceItem slice) { method in class:SliceQuery
171 return StreamSupport.stream(Spliterators.spliteratorUnknownSize(iterator, 0), false);
/frameworks/base/services/robotests/src/com/android/server/backup/testing/
H A DTestUtils.java31 assertThat(ShadowLog.getLogsForTag(tag).stream().allMatch(logItem -> logItem.type <= level))
37 assertThat(ShadowLog.getLogsForTag(tag).stream().anyMatch(logItem -> logItem.type >= level))
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
H A DUsbACInterface.java99 ByteStream stream, int length, byte type, byte subtype, int subClass) {
103 int acInterfaceSpec = stream.unpackUsbShort();
160 ByteStream stream, int length, byte type, byte subtype, int subClass) {
172 return UsbASFormat.allocDescriptor(parser, stream, length, type, subtype, subClass);
211 public static UsbDescriptor allocDescriptor(UsbDescriptorParser parser, ByteStream stream, argument
213 byte subtype = stream.getByte();
219 parser, stream, length, type, subtype, subClass);
223 parser, stream, length, type, subtype, subClass);
98 allocAudioControlDescriptor(UsbDescriptorParser parser, ByteStream stream, int length, byte type, byte subtype, int subClass) argument
159 allocAudioStreamingDescriptor(UsbDescriptorParser parser, ByteStream stream, int length, byte type, byte subtype, int subClass) argument
H A DUsbASFormat.java66 * stream.
69 ByteStream stream, int length, byte type,
72 byte formatType = stream.getByte();
68 allocDescriptor(UsbDescriptorParser parser, ByteStream stream, int length, byte type, byte subtype, int subclass) argument
H A DUsbDescriptor.java32 * a rawdescriptor stream and perhaps accessing fields which have not been inialized (by
175 public void postParse(ByteStream stream) { argument
177 int bytesRead = stream.getReadCount();
180 stream.advance(mLength - bytesRead);
187 stream.reverse(bytesRead - mLength);
199 * Reads data fields from specified raw-data stream.
201 public int parseRawDescriptors(ByteStream stream) { argument
202 int numRead = stream.getReadCount();
207 mRawData[index] = stream.getByte();
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DPromoteClassClassAdapter.java22 import java.util.stream.Collectors;
39 classNames.stream().map(name -> name.replace(".", "/")).collect(Collectors.toSet());
/frameworks/rs/
H A DrsMesh.h62 virtual void serialize(Context *rsc, OStream *stream) const;
64 static Mesh *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramRaster.h51 virtual void serialize(Context *rsc, OStream *stream) const;
53 static ProgramRaster *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramStore.h64 virtual void serialize(Context *rsc, OStream *stream) const;
66 static ProgramStore *createFromStream(Context *rsc, IStream *stream);
H A DrsProgramVertex.h44 virtual void serialize(Context *rsc, OStream *stream) const;
46 static ProgramVertex *createFromStream(Context *rsc, IStream *stream);
H A DrsSampler.h68 virtual void serialize(Context *rsc, OStream *stream) const;
70 static Sampler *createFromStream(Context *rsc, IStream *stream);
H A DrsScriptC.h54 virtual void serialize(Context *rsc, OStream *stream) const { }
56 static Type *createFromStream(Context *rsc, IStream *stream) { return nullptr; } argument
H A DrsType.cpp164 void Type::serialize(Context *rsc, OStream *stream) const {
166 stream->addU32((uint32_t)getClassId());
167 stream->addString(getName());
169 mElement->serialize(rsc, stream);
171 stream->addU32(mHal.state.dimX);
172 stream->addU32(mHal.state.dimY);
173 stream->addU32(mHal.state.dimZ);
175 stream->addU8((uint8_t)(mHal.state.lodCount ? 1 : 0));
176 stream->addU8((uint8_t)(mHal.state.faces ? 1 : 0));
179 Type *Type::createFromStream(Context *rsc, IStream *stream) { argument
[all...]
/frameworks/base/cmds/hid/src/com/android/commands/hid/
H A DHid.java52 InputStream stream = null;
55 stream = System.in;
58 stream = new FileInputStream(f);
60 (new Hid(stream)).run();
65 IoUtils.closeQuietly(stream);
/frameworks/base/core/java/android/util/
H A DAtomicFile.java148 * Call when you have successfully finished writing to the stream
151 * will return the new file stream.
170 * Call when you have failed for some reason at writing to the stream
172 * write stream, and roll back to the previous state of the file.
260 FileInputStream stream = openRead();
263 int avail = stream.available();
266 int amt = stream.read(data, pos, data.length-pos);
275 avail = stream.available();
283 stream.close();
/frameworks/av/media/libaudioclient/
H A DAudioSystem.cpp162 status_t AudioSystem::setStreamVolume(audio_stream_type_t stream, float value, argument
165 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
168 af->setStreamVolume(stream, value, output);
172 status_t AudioSystem::setStreamMute(audio_stream_type_t stream, bool mute) argument
174 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
177 af->setStreamMute(stream, mute);
181 status_t AudioSystem::getStreamVolume(audio_stream_type_t stream, float* volume, argument
184 if (uint32_t(stream) >= AUDIO_STREAM_CNT) return BAD_VALUE;
187 *volume = af->streamVolume(stream, output);
191 status_t AudioSystem::getStreamMute(audio_stream_type_t stream, boo argument
856 getOutput(audio_stream_type_t stream) argument
863 getOutputForAttr(const audio_attributes_t *attr, audio_io_handle_t *output, audio_session_t session, audio_stream_type_t *stream, pid_t pid, uid_t uid, const audio_config_t *config, audio_output_flags_t flags, audio_port_handle_t *selectedDeviceId, audio_port_handle_t *portId) argument
881 startOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
890 stopOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
899 releaseOutput(audio_io_handle_t output, audio_stream_type_t stream, audio_session_t session) argument
947 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument
956 setStreamVolumeIndex(audio_stream_type_t stream, int index, audio_devices_t device) argument
965 getStreamVolumeIndex(audio_stream_type_t stream, int *index, audio_devices_t device) argument
974 getStrategyForStream(audio_stream_type_t stream) argument
981 getDevicesForStream(audio_stream_type_t stream) argument
1021 isStreamActive(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
1030 isStreamActiveRemotely(audio_stream_type_t stream, bool* state, uint32_t inPastMs) argument
1040 isSourceActive(audio_source_t stream, bool* state) argument
1275 getStreamVolumeDB(audio_stream_type_t stream, int index, audio_devices_t device) argument
[all...]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dmp4enc_api.cpp725 video->bitstream1 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 1*/
727 video->bitstream2 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 2*/
729 video->bitstream3 = BitStreamCreateEnc(2 * 4096); /*allocate working stream 3*/
909 pVol->stream = (BitstreamEncVideo *)M4VENC_MALLOC(sizeof(BitstreamEncVideo)); /* allocate BitstreamEncVideo Instance */
910 if (pVol->stream == NULL) goto CLEAN_UP;
1259 if (video->vol[idx]->stream)
1260 M4VENC_FREE(video->vol[idx]->stream);
1360 if (currVol->stream->bitstreamBuffer != video->overrunBuffer) // not used
1445 *size = video->vol[0]->stream->byteCount;
1458 /* Initialize Vol stream structur
2438 BitstreamEncVideo *stream = video->bitstream1; local
2601 BitstreamEncVideo *stream = currVol->stream; local
[all...]
/frameworks/av/media/libaaudio/tests/
H A Dtest_aaudio_monkey.cpp34 // TODO Consider adding an input stream.
43 AAudioStream *stream,
49 AAudioStream *stream __unused,
93 * @return true if stream passes tests
98 // update and query stream state
169 AAudioStream *stream,
173 int32_t samplesPerFrame = AAudioStream_getChannelCount(stream);
176 switch (AAudioStream_getFormat(stream)) {
212 AAudioStream *stream,
223 return monkey->renderAudio(stream, audioDat
[all...]
/frameworks/base/samples/training/network-usage/src/com/example/android/networkusage/
H A DNetworkActivity.java216 InputStream stream = null;
235 stream = downloadUrl(urlString);
236 entries = stackOverflowXmlParser.parse(stream);
240 if (stream != null) {
241 stream.close();
264 // an input stream.
274 InputStream stream = conn.getInputStream();
275 return stream;
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DTransferOwnershipMetadataManager.java83 FileOutputStream stream = null;
85 stream = atomicFile.startWrite();
87 serializer.setOutput(stream, StandardCharsets.UTF_8.name());
96 atomicFile.finishWrite(stream);
102 atomicFile.failWrite(stream);
123 try (FileInputStream stream = new FileInputStream(transferOwnershipMetadataFile)) {
125 parser.setInput(stream, null);
/frameworks/support/slices/core/src/main/java/androidx/slice/core/
H A DSliceQuery.java95 return findFirst(filter(stream(container), new Filter<SliceItem>() {
126 return collect(filter(stream(s), new Filter<SliceItem>() {
139 return collect(filter(stream(s), new Filter<SliceItem>() {
176 return findFirst(filter(stream(s), new Filter<SliceItem>() {
188 return findFirst(filter(stream(s), new Filter<SliceItem>() {
199 return findFirst(filter(stream(s), new Filter<SliceItem>() {
211 return findFirst(filter(stream(s), new Filter<SliceItem>() {
230 public static Iterator<SliceItem> stream(SliceItem slice) { method in class:SliceQuery
238 public static Iterator<SliceItem> stream(Slice slice) { method in class:SliceQuery
/frameworks/av/services/audiopolicy/enginedefault/src/
H A DEngine.h65 virtual routing_strategy getStrategyForStream(audio_stream_type_t stream) argument
67 return mPolicyEngine->getStrategyForStream(stream);
125 routing_strategy getStrategyForStream(audio_stream_type_t stream);
/frameworks/base/media/jni/
H A Dandroid_media_Utils.h39 explicit AssetStream(SkStream* stream);
45 // 'offset' bytes from the start of the stream.
46 // Returns 'kFail' if 'offset' + 'length' exceeds the stream and does not
55 // Growable memory stream
62 explicit BufferedStream(SkStream* stream);
68 // 'offset' bytes from the start of the stream.
69 // Returns 'kFail' if 'offset' + 'length' exceeds the stream and does not
88 // 'offset' bytes from the start of the stream.
89 // Returns 'kFail' if 'offset' + 'length' exceeds the stream and does not
99 piex::StreamInterface* stream, cons
[all...]
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequence.java87 public static FrameSequence decodeStream(InputStream stream) { argument
88 if (stream == null) throw new IllegalArgumentException();
90 return nativeDecodeStream(stream, tempStorage);

Completed in 2345 milliseconds

1234567891011>>