HomeSort by relevance Sort by last modified time
    Searched defs:stream (Results 176 - 200 of 3182) sorted by null

1 2 3 4 5 6 78 91011>>

  /external/ltp/testcases/kernel/fs/stream/
stream01.c 25 >WHAT: < 1) check that freopen substitutes the named file in place of stream.
26 >HOW: < 1) open a stream, write something to it, perform freopen and
27 < write some more. Check that second write to stream went to
52 FILE *stream; local
70 if ((stream = fopen(tempfile1, "a+")) == NULL) {
75 fwrite("a", 1, 1, stream);
76 if ((stream = freopen(tempfile2, "a+", stream)) == NULL) {
80 fwrite("a", 1, 1, stream);
81 fclose(stream);
    [all...]
stream02.c 52 FILE *stream; local
75 if ((stream = fopen(tempfile1, "w+")) == NULL) {
80 fclose(stream);
82 if ((stream = fopen(tempfile1, "a+")) == NULL) {
87 fclose(stream);
101 if ((stream = fopen("/dev/tty", "w")) == NULL) {
106 fclose(stream);
stream03.c 51 FILE *stream; local
72 if ((stream = fopen(tempfile1, "a+")) == NULL) {
79 pos = ftell(stream);
87 if (fwrite(junk, sizeof(*junk), strlen(junk), stream) == 0) {
92 pos = ftell(stream);
102 rewind(stream);
103 pos = ftell(stream);
113 if (fseek(stream, strlen(junk), 1) != 0) {
118 pos = ftell(stream);
128 if (fseek(stream, 0, 2) != 0)
    [all...]
stream04.c 25 >WHAT: < 1) Ensure fwrite appends data to stream.
56 FILE *stream; local
75 if ((stream = fopen(tempfile1, "a+")) == NULL) {
81 fwrite(junk, sizeof(*junk), strlen(junk), stream)) == 0) {
93 fclose(stream);
94 if ((stream = fopen(tempfile1, "r+")) == NULL) {
103 fread(inbuf, sizeof(*junk), strlen(junk), stream)) == 0) {
113 fclose(stream);
stream05.c 20 /* ported from SPIE, section2/filesuite/stream.c, by Airong Zhang */
29 >HOW: < 1) open a stream and immediately execute ferror
31 < written with stream - compare actual vs expected.
32 < 3) open stream and ensure feof returns zero, read to end of
57 FILE *stream; local
76 if ((stream = fopen(tempfile, "a+")) == NULL) {
81 fprintf(stream, "a");
82 fclose(stream);
84 if ((stream = fopen(tempfile, "r+")) == NULL) {
91 if (ferror(stream) != 0)
    [all...]
  /external/lzma/CPP/7zip/Archive/7z/
7zFolderInStream.cpp 39 CMyComPtr<ISequentialInStream> stream; local
40 HRESULT result = _updateCallback->GetStream(_indexes[_index], &stream);
47 _stream = stream;
49 if (stream)
52 stream.QueryInterface(IID_IStreamGetSize, &streamGetSize);
  /external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
streamout_jit.h 36 /// STREAMOUT_DECL - Stream decl
40 // Buffer that stream maps to.
43 // attribute to stream
54 /// STREAMOUT_STREAM - Stream decls
58 // numnber of decls for this stream
76 // stream decls
77 STREAMOUT_STREAM stream; member in struct:STREAMOUT_COMPILE_STATE
82 if (stream.numDecls != other.stream.numDecls) return false;
84 for (uint32_t i = 0; i < stream.numDecls; ++i
    [all...]
  /external/nanopb-c/examples/using_union_messages/
decode.c 11 /* This function reads manually the first tag from the stream and finds the
17 const pb_field_t* decode_unionmessage_type(pb_istream_t *stream)
23 while (pb_decode_tag(stream, &wire_type, &tag, &eof))
39 pb_skip_field(stream, wire_type);
45 bool decode_unionmessage_contents(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct)
49 if (!pb_make_string_substream(stream, &substream))
53 pb_close_string_substream(stream, &substream);
62 pb_istream_t stream = pb_istream_from_buffer(buffer, count); local
64 const pb_field_t *type = decode_unionmessage_type(&stream);
70 status = decode_unionmessage_contents(&stream, MsgType1_fields, &msg)
    [all...]
  /external/nanopb-c/tests/callbacks/
encode_callbacks.c 9 bool encode_string(pb_ostream_t *stream, const pb_field_t *field, void * const *arg)
13 if (!pb_encode_tag_for_field(stream, field))
16 return pb_encode_string(stream, (uint8_t*)str, strlen(str));
19 bool encode_int32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg)
21 if (!pb_encode_tag_for_field(stream, field))
24 return pb_encode_varint(stream, 42);
27 bool encode_fixed32(pb_ostream_t *stream, const pb_field_t *field, void * const *arg)
31 if (!pb_encode_tag_for_field(stream, field))
34 return pb_encode_fixed32(stream, &value);
37 bool encode_fixed64(pb_ostream_t *stream, const pb_field_t *field, void * const *arg
66 pb_ostream_t stream; local
    [all...]
  /external/pdfium/core/fpdfdoc/
cpdf_filespec_unittest.cpp 192 // Keys in reverse order of precedence to retrieve the file content stream.
197 // Set the file stream.
205 // Check that the file content stream is as expected.
233 // Add a file stream to the embedded files dictionary.
242 // Add a params dictionary to the file stream.
243 CPDF_Stream* stream = file_dict->GetStreamFor("UF"); local
244 CPDF_Dictionary* stream_dict = stream->GetDict();
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowImageDecoder.java 49 final InputStream stream = ReflectionHelpers.getField(realObject, "mInputStream"); local
50 if (stream != null) {
51 return BitmapFactory.decodeStream(stream);
  /external/skia/bench/
RecordingBench.cpp 79 SkDynamicMemoryWStream stream; local
83 fSrc->playback(serializer.beginWrite(fSrc->cullRect(), &stream));
85 stream.reset();
  /external/skia/src/ports/
SkFontMgr_custom_directory.cpp 54 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(filename.c_str()); local
55 if (!stream) {
61 if (!scanner.recognizedFont(stream.get(), &numFaces)) {
70 if (!scanner.scanFont(stream.get(), faceIndex,
SkImageEncoder_CG.cpp 32 SkWStream* stream = reinterpret_cast<SkWStream*>(info); local
33 return stream->write(buffer, count) ? count : 0;
37 // we do nothing, since by design we don't "own" the stream (i.e. info)
40 static CGDataConsumerRef SkStreamToCGDataConsumer(SkWStream* stream) {
44 // we don't own/reference the stream, so it our consumer must not live
45 // longer that our caller's ownership of the stream
46 return CGDataConsumerCreate(stream, &procs);
49 static CGImageDestinationRef SkStreamToImageDestination(SkWStream* stream,
51 CGDataConsumerRef consumer = SkStreamToCGDataConsumer(stream);
64 bool SkEncodeImageWithCG(SkWStream* stream, const SkPixmap& pixmap, SkEncodedImageFormat format)
    [all...]
  /external/skia/src/utils/mac/
SkStream_mac.cpp 25 SkStream* stream = (SkStream*)info; local
26 SkASSERT(stream->getMemoryBase() == addr);
27 SkASSERT(stream->getLength() == size);
28 delete stream;
53 CGDataProviderRef SkCreateDataProviderFromStream(std::unique_ptr<SkStreamRewindable> stream) {
56 const void* addr = stream->getMemoryBase();
58 // special-case when the stream is just a block of ram
59 size_t size = stream->getLength();
60 return CGDataProviderCreateWithData(stream.release(), addr, size, delete_stream_proc);
70 return CGDataProviderCreateSequential(stream.release(), &rec)
    [all...]
  /external/skia/tools/mdbviz/
Model.cpp 28 std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(filename); local
29 if (!stream) {
32 sk_sp<SkPicture> pic(SkPicture::MakeFromStream(stream.get()));
  /external/skia/tools/skiaserve/urlhandlers/
BreakHandler.cpp 81 SkDynamicMemoryWStream stream; local
82 stream.writeText(Json::FastWriter().write(response).c_str());
83 return SendData(connection, stream.detachAsData().get(), "application/json");
  /external/skqp/bench/
RecordingBench.cpp 79 SkDynamicMemoryWStream stream; local
83 fSrc->playback(serializer.beginWrite(fSrc->cullRect(), &stream));
85 stream.reset();
  /external/skqp/src/ports/
SkFontMgr_custom_directory.cpp 54 std::unique_ptr<SkStreamAsset> stream = SkStream::MakeFromFile(filename.c_str()); local
55 if (!stream) {
61 if (!scanner.recognizedFont(stream.get(), &numFaces)) {
70 if (!scanner.scanFont(stream.get(), faceIndex,
SkImageEncoder_CG.cpp 32 SkWStream* stream = reinterpret_cast<SkWStream*>(info); local
33 return stream->write(buffer, count) ? count : 0;
37 // we do nothing, since by design we don't "own" the stream (i.e. info)
40 static CGDataConsumerRef SkStreamToCGDataConsumer(SkWStream* stream) {
44 // we don't own/reference the stream, so it our consumer must not live
45 // longer that our caller's ownership of the stream
46 return CGDataConsumerCreate(stream, &procs);
49 static CGImageDestinationRef SkStreamToImageDestination(SkWStream* stream,
51 CGDataConsumerRef consumer = SkStreamToCGDataConsumer(stream);
64 bool SkEncodeImageWithCG(SkWStream* stream, const SkPixmap& pixmap, SkEncodedImageFormat format)
    [all...]
  /external/skqp/src/utils/mac/
SkStream_mac.cpp 25 SkStream* stream = (SkStream*)info; local
26 SkASSERT(stream->getMemoryBase() == addr);
27 SkASSERT(stream->getLength() == size);
28 delete stream;
53 CGDataProviderRef SkCreateDataProviderFromStream(std::unique_ptr<SkStreamRewindable> stream) {
56 const void* addr = stream->getMemoryBase();
58 // special-case when the stream is just a block of ram
59 size_t size = stream->getLength();
60 return CGDataProviderCreateWithData(stream.release(), addr, size, delete_stream_proc);
70 return CGDataProviderCreateSequential(stream.release(), &rec)
    [all...]
  /external/skqp/tools/mdbviz/
Model.cpp 28 std::unique_ptr<SkStream> stream = SkStream::MakeFromFile(filename); local
29 if (!stream) {
32 sk_sp<SkPicture> pic(SkPicture::MakeFromStream(stream.get()));
  /external/skqp/tools/skiaserve/urlhandlers/
BreakHandler.cpp 81 SkDynamicMemoryWStream stream; local
82 stream.writeText(Json::FastWriter().write(response).c_str());
83 return SendData(connection, stream.detachAsData().get(), "application/json");
  /external/spirv-llvm/lib/SPIRV/Mangler/
FunctionDescriptor.cpp 24 std::stringstream stream; local
28 stream << name << "(";
32 stream << parameters[i]->toString() << ", ";
33 stream << parameters[paramCount-1]->toString();
35 stream << ")";
36 return stream.str();
  /external/swiftshader/src/OpenGL/compiler/
DirectiveHandler.cpp 169 std::stringstream stream; local
170 stream << version;
171 std::string str = stream.str();

Completed in 446 milliseconds

1 2 3 4 5 6 78 91011>>