/frameworks/base/core/jni/android/graphics/ |
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 | FontFamily.cpp | 215 SkMemoryStream* stream = new SkMemoryStream(data); local 216 // CreateFromStream takes ownership of stream. 217 SkTypeface* face = SkTypeface::CreateFromStream(stream);
|
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 | 90 void write(SkWStream* stream) { argument 91 SkAutoTUnref<SkDocument> document(SkDocument::CreatePDF(stream));
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Picture.java | 133 * Create a new picture (already recorded) from the data in the stream. This 140 * input stream cannot be replayed on a hardware accelerated canvas. 148 public static Picture createFromStream(InputStream stream) { argument 149 return new Picture(nativeCreateFromStream(stream, new byte[WORKING_STREAM_STORAGE])); 153 * Write the picture contents to a stream. The data can be used to recreate 155 * The resulting stream is NOT to be persisted across device restarts as 160 * input stream cannot be replayed on a hardware accelerated canvas. 167 public void writeToStream(OutputStream stream) { argument 169 if (stream == null) { 172 if (!nativeWriteToStream(mNativePicture, stream, 180 nativeCreateFromStream(InputStream stream, byte[] storage) argument 186 nativeWriteToStream(long nativePicture, OutputStream stream, byte[] storage) argument [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
H A D | AndroidKeyStoreSpi.java | 922 public void engineStore(OutputStream stream, char[] password) throws IOException, argument 928 public void engineLoad(InputStream stream, char[] password) throws IOException, argument 930 if (stream != null) {
|
/frameworks/base/media/jni/ |
H A D | android_media_ExifInterface.cpp | 91 static bool is_asset_stream(const SkStream& stream) { argument 92 return stream.hasLength() && stream.hasPosition(); 99 std::unique_ptr<AssetStreamAdaptor> stream(new AssetStreamAdaptor(asset)); 108 stream->rewind(); 111 stream->skip((int)jthumbnailOffset); 112 stream->read((void*)thumbnailData.get(), (int)jthumbnailLength); 120 static jobject getRawAttributes(JNIEnv* env, SkStream* stream, bool returnThumbnail) { argument 121 std::unique_ptr<SkStream> streamDeleter(stream); 124 if (is_asset_stream(*stream)) { [all...] |
/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/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 293 * @param stream the AudioStream to use. 298 public void play(Context context, Uri uri, boolean looping, int stream) { argument 305 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 | 443 private static byte[] getByteArray(InputStream stream) throws IOException { argument 447 while ((read = stream.read(buffer, 0, buffer.length)) > -1) {
|
/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/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMasRequest.java | 107 * this will trigger ClientOperation to use non-buffered stream so 155 protected void readResponse(InputStream stream) throws IOException { argument
|
/frameworks/rs/api/ |
H A D | Utilities.cpp | 130 stringstream stream; local 131 stream << "0x" << std::hex << hash << "l"; 132 return stream.str(); 153 // Add the value to the stream, prefixed with a ", " if needed. 154 static void addCommaSeparated(const string& value, ostringstream* stream, bool* needComma) { argument 159 *stream << ", "; 161 *stream << value; 167 ostringstream stream; local 173 addCommaSeparated(userAttribute.substr(1), &stream, &needComma); 175 addCommaSeparated(userAttribute, &stream, [all...] |
/frameworks/rs/ |
H A D | rsMesh.cpp | 81 void Mesh::serialize(Context *rsc, OStream *stream) const { 83 stream->addU32((uint32_t)getClassId()); 84 stream->addString(getName()); 87 stream->addU32(mHal.state.vertexBuffersCount); 89 mHal.state.vertexBuffers[vCount]->serialize(rsc, stream); 92 stream->addU32(mHal.state.primitivesCount); 95 stream->addU8((uint8_t)mHal.state.primitives[pCount]); 98 stream->addU32(1); 99 mHal.state.indexBuffers[pCount]->serialize(rsc, stream); 101 stream 106 createFromStream(Context *rsc, IStream *stream) argument [all...] |
H A D | rsProgramVertex.cpp | 151 void ProgramVertex::serialize(Context *rsc, OStream *stream) const { 154 ProgramVertex *ProgramVertex::createFromStream(Context *rsc, IStream *stream) { argument
|
H A D | rsType.cpp | 164 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/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | slice.cpp | 28 AVCEncBitstream *stream = encvid->bitstream; local 140 ue_v(stream, video->mb_skip_run); 161 AVCEncBitstream *stream = encvid->bitstream; local 419 ue_v(stream, video->mb_skip_run); 555 AVCEncBitstream *stream = encvid->bitstream; local 564 status = ue_v(stream, mb_type); 568 status = sub_mb_pred(video, currMB, stream); 572 status = mb_pred(video, currMB, stream) ; 578 status = EncodeCBP(currMB, stream); 584 status = se_v(stream, currM 686 mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 772 sub_mb_pred(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument 920 EncodeIntra4x4Mode(AVCCommonObj *video, AVCMacroblock *currMB, AVCEncBitstream *stream) argument [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | vlc_decode.cpp | 103 PV_STATUS DecodeUserData(BitstreamDecVideo *stream) argument 108 BitstreamReadBits32HC(stream); 109 BitstreamShowBits32(stream, 24, &code); 114 BitstreamReadBits16(stream, 8); 115 BitstreamShowBits32(stream, 24, &code); 116 status = BitstreamCheckEndBuffer(stream); 135 BitstreamDecVideo *stream = video->bitstream; local 164 status = PV_VlcDecMV(stream, &vlc_code_mag); 174 status = PV_VlcDecMV(stream, &vlc_code_mag); 191 status = PV_VlcDecMV(stream, 267 PV_DecodeMBVec(BitstreamDecVideo *stream, MOT *mv_x, MOT *mv_y, int f_code_f) argument 452 PV_VlcDecMV(BitstreamDecVideo *stream, int *mv) argument 503 PV_VlcDecMCBPC_com_intra(BitstreamDecVideo *stream) argument 536 PV_VlcDecMCBPC_com_inter(BitstreamDecVideo *stream) argument 557 PV_VlcDecMCBPC_com_inter_H263(BitstreamDecVideo *stream) argument 590 PV_VlcDecCBPY(BitstreamDecVideo *stream, int intra) argument 628 PV_VlcDecIntraDCPredSize(BitstreamDecVideo *stream, int compnum, uint *DC_size) argument 839 VlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1022 VlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1201 VlcDecTCOEFShortHeader(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1261 VlcDecTCOEFShortHeader_AnnexI(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1316 VlcDecTCOEFShortHeader_AnnexT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1389 VlcDecTCOEFShortHeader_AnnexIT(BitstreamDecVideo *stream, Tcoef *pTcoef ) argument 1471 RvlcDecTCOEFInter(BitstreamDecVideo *stream, Tcoef *pTcoef) argument 1554 RvlcDecTCOEFIntra(BitstreamDecVideo *stream, Tcoef *pTcoef) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | DecTestBench.c | 44 /* Global variables for stream handling */ 136 DEBUG(("\t-U NAL unit stream mode\n")); 181 /* check size of the input file -> length of the stream in bytes */ 186 /* allocate memory for stream buffer. if unsuccessful -> exit */ 194 /* read input stream from file to buffer and close input file */ 233 * -> stream information is available for query now */ 271 * "consumed" is computed as difference between the new stream 272 * pointer and old stream pointer */ 286 * "consumed" is computed as difference between the new stream 287 * pointer and old stream pointe 492 u8 *stream; local [all...] |
/frameworks/base/core/java/android/os/ |
H A D | FileUtils.java | 175 * Perform an fsync on the given FileOutputStream. The stream at this 178 public static boolean sync(FileOutputStream stream) { argument 180 if (stream != null) { 181 stream.getFD().sync(); 218 * Copy data from a source stream to destFile. 265 // input stream, bytes read not equal to buffer size is not necessarily the correct 668 mimeTypeFromExt = "application/octet-stream";
|
/frameworks/base/core/java/android/widget/ |
H A D | CheckedTextView.java | 534 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument 535 super.encodeProperties(stream); 536 stream.addProperty("text:checked", isChecked());
|
H A D | CompoundButton.java | 551 protected void encodeProperties(@NonNull ViewHierarchyEncoder stream) { argument 552 super.encodeProperties(stream); 553 stream.addProperty("checked", isChecked());
|