/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | DomainNameElementTest.java | 43 * Helper function for appending a Domain Name to an output stream. 45 * @param stream Stream to write to 49 private void appendDomain(ByteArrayOutputStream stream, String domain) throws IOException { argument 51 stream.write((byte) domainBytes.length); 52 stream.write(domainBytes); 62 ByteArrayOutputStream stream = new ByteArrayOutputStream(); 64 appendDomain(stream, domain); 66 return stream.toByteArray();
|
H A D | HSFriendlyNameElementTest.java | 48 * Helper function for appending a Operator Name to an output stream. 50 * @param stream Stream to write to 54 private void appendOperatorName(ByteArrayOutputStream stream, String operator) argument 58 stream.write((byte) length); 59 stream.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); 60 stream.write(new byte[]{(byte) 0x0}); // Padding for language code. 61 stream.write(nameBytes); 71 ByteArrayOutputStream stream = new ByteArrayOutputStream(); 73 appendOperatorName(stream, name); 75 return stream [all...] |
H A D | RoamingConsortiumElementTest.java | 48 * Helper function for appending an OI field to the given output stream. 50 * @param stream The output stream to write to 51 * @param OI The OI to write to the output stream 53 private void appendOI(ByteArrayOutputStream stream, Pair<Integer, Long> oi) { argument 54 stream.write(oi.first.byteValue()); 57 stream.write((byte) ((oi.second.longValue() >> i * Byte.SIZE) & 0xFF)); 68 ByteArrayOutputStream stream = new ByteArrayOutputStream(); 70 appendOI(stream, oi); 72 return stream [all...] |
H A D | VenueNameElementTest.java | 48 * Helper function for appending a Venue Name to an output stream. 50 * @param stream Stream to write to 54 private void appendVenue(ByteArrayOutputStream stream, String venue) throws IOException { argument 57 stream.write((byte) length); 58 stream.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); 59 stream.write(new byte[]{(byte) 0x0}); // Padding for language code. 60 stream.write(venueBytes); 70 ByteArrayOutputStream stream = new ByteArrayOutputStream(); 72 stream.write(new byte[VenueNameElement.VENUE_INFO_LENGTH]); 74 appendVenue(stream, nam [all...] |
/frameworks/rs/ |
H A D | rsComponent.cpp | 259 void Component::serialize(OStream *stream) const { 260 stream->addU8((uint8_t)mType); 261 stream->addU8((uint8_t)mKind); 262 stream->addU8((uint8_t)(mNormalized ? 1 : 0)); 263 stream->addU32(mVectorSize); 266 void Component::loadFromStream(IStream *stream) { argument 267 mType = (RsDataType)stream->loadU8(); 268 mKind = (RsDataKind)stream->loadU8(); 269 uint8_t temp = stream->loadU8(); 271 mVectorSize = stream [all...] |
H A D | rsProgramRaster.cpp | 56 void ProgramRaster::serialize(Context *rsc, OStream *stream) const { 59 ProgramRaster *ProgramRaster::createFromStream(Context *rsc, IStream *stream) { argument
|
/frameworks/support/compat/java/android/support/v4/util/ |
H A D | AtomicFile.java | 116 * Call when you have successfully finished writing to the stream 119 * will return the new file stream. 134 * Call when you have failed for some reason at writing to the stream 136 * write stream, and roll back to the previous state of the file. 176 FileInputStream stream = openRead(); 179 int avail = stream.available(); 182 int amt = stream.read(data, pos, data.length-pos); 191 avail = stream.available(); 199 stream.close(); 203 static boolean sync(FileOutputStream stream) { argument [all...] |
/frameworks/av/media/libaaudio/tests/ |
H A D | test_open_params.cpp | 45 AAudioStream *stream, 50 (void) stream; 82 // Request stream properties. 100 // Check to see what kind of stream we actually got. 44 MyDataCallbackProc( AAudioStream *stream, void *userData, void *audioData, int32_t numFrames ) argument
|
/frameworks/av/media/libnbaio/ |
H A D | AudioStreamOutSink.cpp | 26 AudioStreamOutSink::AudioStreamOutSink(sp<StreamOutHalInterface> stream) : argument 28 mStream(stream), 31 ALOG_ASSERT(stream != 0);
|
/frameworks/av/services/audiopolicy/enginedefault/src/ |
H A D | Engine.h | 65 virtual routing_strategy getStrategyForStream(audio_stream_type_t stream) argument 67 return mPolicyEngine->getStrategyForStream(stream); 125 routing_strategy getStrategyForStream(audio_stream_type_t stream);
|
H A D | Engine.cpp | 164 routing_strategy Engine::getStrategyForStream(audio_stream_type_t stream) argument 166 // stream to strategy mapping 167 switch (stream) { 179 ALOGE("unknown stream type %d", stream); 181 // NOTE: SYSTEM stream uses MEDIA strategy because muting music and switching outputs 268 // the isStreamActive() method only informs about the activity of a stream, not
|
/frameworks/base/cmds/media/src/com/android/commands/media/ |
H A D | VolumeCtrl.java | 43 // --stream affects --set, --adj or --get options. 48 "\t\t--stream STREAM selects the stream to control, see AudioManager.STREAM_*\n" + 49 "\t\t controls AudioManager.STREAM_MUSIC if no stream is specified\n"+ 55 "\t\tadb shell media volume --show --stream 3 --set 11\n" + 56 "\t\tadb shell media volume --stream 0 --adj lower\n" + 57 "\t\tadb shell media volume --stream 3 --get\n" 70 int stream = AudioManager.STREAM_MUSIC; 90 case "--stream": 91 stream 177 streamName(int stream) argument [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
H A D | ProcFileReader.java | 27 * through the stream using a single space {@code ' '} as token separator, and 43 public ProcFileReader(InputStream stream) throws IOException { argument 44 this(stream, 4096); 47 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { argument 48 mStream = stream; 112 throw new ProtocolException("End of stream while looking for token boundary"); 116 * Check if stream has more data to be parsed. 143 throw new ProtocolException("End of stream while looking for line boundary");
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Picture.cpp | 68 Picture* Picture::CreateFromStream(SkStream* stream) { argument 71 sk_sp<SkPicture> skPicture = SkPicture::MakeFromStream(stream); 83 void Picture::serialize(SkWStream* stream) const { 85 this->makePartialCopy()->serialize(stream); 88 mPicture->serialize(stream); 93 recorder.finishRecordingAsPicture()->serialize(stream);
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmUtils.java | 82 private static void quietlyDispose(InputStream stream) { argument 84 if (null != stream) { 85 stream.close(); 92 private static void quietlyDispose(OutputStream stream) { argument 94 if (null != stream) { 95 stream.close();
|
/frameworks/native/libs/binder/ |
H A D | Status.cpp | 182 std::stringstream& operator<< (std::stringstream& stream, const Status& s) { argument 183 stream << s.toString8().string(); 184 return stream;
|
/frameworks/native/services/vr/performanced/ |
H A D | task.cpp | 23 std::ostringstream stream; local 24 stream << kProcBase << "/" << task_id; 27 open(stream.str().c_str(), O_RDONLY | O_DIRECTORY));
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMasRequestGetMessagesListing.java | 118 protected void readResponse(InputStream stream) { argument 119 mResponse = new BluetoothMapMessagesListing(stream);
|
/frameworks/av/media/libaaudio/src/binding/ |
H A D | AAudioBinderClient.cpp | 93 * @param request info needed to create the stream 94 * @param configuration contains information about the created stream 95 * @return handle to the stream or a negative error 99 aaudio_handle_t stream; local 106 stream = service->openStream(request, configurationOutput); 108 if (stream == AAUDIO_ERROR_NO_SERVICE) { 115 return stream;
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | conceal.cpp | 39 BitstreamDecVideo *stream = video->bitstream; local 43 movePointerTo(stream, startFirstPartition); 53 PV_VlcDecMCBPC_com_intra(stream);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | vop.cpp | 24 PV_STATUS EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop); 25 PV_STATUS EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop); 26 PV_STATUS EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds); 46 // BitstreamEncVideo *stream=video->bitstream1; 128 BitstreamEncVideo *stream = video->bitstream1; local 135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */ 137 video->header_bits = BitstreamGetPos(stream); /* Header Bits */ 147 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */ 149 status = EncodeVOPHeader(stream, currVol, currVop); /* Encode VOP Header */ 151 video->header_bits = BitstreamGetPos(stream); /* Heade 197 BitstreamEncVideo *stream = video->bitstream1; /* different from frame-based */ local 276 EncodeGOVHeader(BitstreamEncVideo *stream, UInt seconds) argument 314 BitstreamEncVideo *stream = currVol->stream; local 353 EncodeVOPHeader(BitstreamEncVideo *stream, Vol *currVol, Vop *currVop) argument 412 EncodeShortHeader(BitstreamEncVideo *stream, Vop *currVop) argument [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | StreamDescriptor.cpp | 40 // Initialize the current stream's index to mIndexMax so volume isn't 0 in 104 for (size_t stream = 0 ; stream < AUDIO_STREAM_CNT; stream++) { 105 add(static_cast<audio_stream_type_t>(stream), StreamDescriptor()); 109 bool StreamDescriptorCollection::canBeMuted(audio_stream_type_t stream) argument 111 return valueAt(stream).canBeMuted(); 114 void StreamDescriptorCollection::clearCurrentVolumeIndex(audio_stream_type_t stream) argument 116 editValueAt(stream).clearCurrentVolumeIndex(); 119 void StreamDescriptorCollection::addCurrentVolumeIndex(audio_stream_type_t stream, argument 125 setVolumeCurvePoint(audio_stream_type_t stream, device_category deviceCategory, const VolumeCurvePoint *point) argument 132 getVolumeCurvePoint(audio_stream_type_t stream, device_category deviceCategory) const argument 138 setVolumeIndexMin(audio_stream_type_t stream,int volIndexMin) argument 143 setVolumeIndexMax(audio_stream_type_t stream,int volIndexMax) argument 148 volIndexToDb(audio_stream_type_t stream, device_category category, int indexInUi) const argument 157 initStreamVolume(audio_stream_type_t stream, int indexMin, int indexMax) argument [all...] |
/frameworks/av/services/audiopolicy/engineconfigurable/src/ |
H A D | Engine.cpp | 155 * the isStreamActive() method only informs about the activity of a stream, not 178 bool Engine::PluginInterfaceImpl::setVolumeProfileForStream(const audio_stream_type_t &stream, argument 181 if (mPolicyEngine->setPropertyForKey<audio_stream_type_t, audio_stream_type_t>(stream, 183 mPolicyEngine->mApmObserver->getVolumeCurves().switchVolumeCurve(profile, stream);
|
/frameworks/base/cmds/incidentd/src/ |
H A D | IncidentService.cpp | 212 const sp<IIncidentReportStatusListener>& listener, const unique_fd& stream) 221 int fd = dup(stream.get()); 211 reportIncidentToStream(const IncidentReportArgs& args, const sp<IIncidentReportStatusListener>& listener, const unique_fd& stream) argument
|
/frameworks/base/core/java/android/gesture/ |
H A D | GestureStore.java | 221 public void save(OutputStream stream) throws IOException { argument 222 save(stream, false); 225 public void save(OutputStream stream, boolean closeStream) throws IOException { argument 236 out = new DataOutputStream((stream instanceof BufferedOutputStream) ? stream : 237 new BufferedOutputStream(stream, GestureConstants.IO_BUFFER_SIZE)); 274 public void load(InputStream stream) throws IOException { argument 275 load(stream, false); 278 public void load(InputStream stream, boolean closeStream) throws IOException { argument 281 in = new DataInputStream((stream instanceo [all...] |