/frameworks/av/media/ndk/ |
NdkMediaDataSourceCallbacks.cpp | 2 * Copyright 2018, The Android Open Source Project 27 DataSource *source = static_cast<DataSource *>(userdata); local 29 source->getSize(&size); 34 DataSource *source = static_cast<DataSource *>(userdata); local 35 return source->readAt(offset, buf, size); 39 DataSource *source = static_cast<DataSource *>(userdata); local 40 source->close(); 45 DataSource *source = static_cast<DataSource *>(userdata); local 46 source->getAvailableSize(offset, &size);
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
FileCopyHelper.java | 2 * Copyright (C) 2009 The Android Open Source Project 63 InputStream source = mContext.getResources().openRawResource(resId); local 65 copyFile(source, target); 71 InputStream source = mContext.getResources().openRawResource(resId); local 73 copyFile(source, target); 76 private void copyFile(InputStream source, OutputStream target) throws IOException { 79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { 83 if (source != null) { 84 source.close() [all...] |
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
FileCopyHelper.java | 2 * Copyright (C) 2009 The Android Open Source Project 63 InputStream source = mContext.getResources().openRawResource(resId); local 65 copyFile(source, target); 71 InputStream source = mContext.getResources().openRawResource(resId); local 73 copyFile(source, target); 76 private void copyFile(InputStream source, OutputStream target) throws IOException { 79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { 83 if (source != null) { 84 source.close() [all...] |
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
TestDateOrder.java | 21 XMLSource source = new SimpleXMLSource("xx"); local 24 source.putValueAtPath(fullDate, "EEEE, dd MMMM, y"); 26 source.putValueAtPath(longDate, "dd MMMM y"); 28 source.putValueAtPath(mediumDate, "dd-MMM-y"); 30 source.putValueAtPath(shortDate, "dd/MM/yy"); 32 source.putValueAtPath(availableFormat, "M/d/y"); 34 source.putValueAtPath(intervalFormat, "d/M/y ? d/M/y"); 35 CLDRFile cldrFile = new CLDRFile(source); 48 source.putValueAtPath(fullDate, "EEEE, y MMMM dd");
|
/external/grpc-grpc-java/stub/src/main/java/io/grpc/stub/ |
StreamObservers.java | 38 * @param source of values expressed as an {@link Iterator}. 39 * @param target {@link CallStreamObserver} which accepts values from the source. 41 public static <V> void copyWithFlowControl(final Iterator<V> source, 43 Preconditions.checkNotNull(source, "source"); 49 while (target.isReady() && source.hasNext()) { 50 target.onNext(source.next()); 52 if (!source.hasNext()) { 70 * @param source of values expressed as an {@link Iterable}. 71 * @param target {@link CallStreamObserver} which accepts values from the source [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
CharSourceTester.java | 36 * Generates tests of a all methods on a {@code CharSource} given various inputs the source is 65 private CharSource source; field in class:CharSourceTester 75 this.source = factory.createSource(data); 79 Reader reader = source.openStream(); 94 BufferedReader reader = source.openBufferedStream(); 111 assertEquals(expected.length(), source.copyTo(builder)); 119 assertEquals(expected.length(), source.copyTo(sink)); 125 String string = source.read(); 131 assertNull(source.readFirstLine()); 133 assertEquals(expectedLines.get(0), source.readFirstLine()) [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
OkioTest.java | 44 BufferedSource source = Okio.buffer(Okio.source(file)); local 45 assertEquals("Hello, java.io file!", source.readUtf8()); 46 source.close(); 63 BufferedSource source = Okio.buffer(Okio.source(file)); local 64 assertEquals("Hello, java.io file!", source.readUtf8()); 65 source.close(); 78 // BufferedSource source = Okio.buffer(Okio.source(path)) 103 Source source = Okio.source(in); local 123 Source source = Okio.source(new ByteArrayInputStream(new byte[100])); local [all...] |
/external/guice/core/test/com/google/inject/ |
ModulesTest.java | 58 ElementSource source = (ElementSource) injector.getBinding(Integer.class).getSource(); local 59 assertEquals(4, source.getModuleClassNames().size()); 66 source.getModuleClassNames()); 67 StackTraceElement stackTraceElement = (StackTraceElement) source.getDeclaringSource();
|
ReflectionTest.java | 46 ElementSource source = (ElementSource) fooBinding.getSource(); local 47 assertNotNull(source.getDeclaringSource()); 63 ElementSource source = (ElementSource) i.getSource(); local 64 assertNotNull(source.getDeclaringSource()); 83 ElementSource source = (ElementSource) fooBinding.getSource(); local 84 assertNotNull(source.getDeclaringSource());
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
NameValueBlockReader.java | 29 import okio.Source; 38 /** This source transforms compressed bytes into uncompressed bytes. */ 47 /** This source holds inflated bytes. */ 48 private final BufferedSource source; field in class:NameValueBlockReader 50 public NameValueBlockReader(BufferedSource source) { 52 // block. We cut the inflater off at its source because we can't predict the 54 Source throttleSource = new ForwardingSource(source) { 78 this.source = Okio.buffer(inflaterSource); 84 int numberOfPairs = source.readInt() [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
InflaterSource.java | 24 * A source that uses <a href="http://tools.ietf.org/html/rfc1951">DEFLATE</a> 25 * to decompress data read from another source. 27 public final class InflaterSource implements Source { 28 private final BufferedSource source; field in class:InflaterSource 39 public InflaterSource(Source source, Inflater inflater) { 40 this(Okio.buffer(source), inflater); 48 InflaterSource(BufferedSource source, Inflater inflater) { 49 if (source == null) throw new IllegalArgumentException("source == null") [all...] |
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
NameValueBlockReader.java | 1 /* GENERATED SOURCE. DO NOT MODIFY. */ 30 import com.android.okhttp.okio.Source; 39 /** This source transforms compressed bytes into uncompressed bytes. */ 48 /** This source holds inflated bytes. */ 49 private final BufferedSource source; field in class:NameValueBlockReader 51 public NameValueBlockReader(BufferedSource source) { 53 // block. We cut the inflater off at its source because we can't predict the 55 Source throttleSource = new ForwardingSource(source) { 79 this.source = Okio.buffer(inflaterSource) [all...] |
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/ |
InflaterSource.java | 1 /* GENERATED SOURCE. DO NOT MODIFY. */ 25 * A source that uses <a href="http://tools.ietf.org/html/rfc1951">DEFLATE</a> 26 * to decompress data read from another source. 29 public final class InflaterSource implements Source { 30 private final BufferedSource source; field in class:InflaterSource 41 public InflaterSource(Source source, Inflater inflater) { 42 this(Okio.buffer(source), inflater); 50 InflaterSource(BufferedSource source, Inflater inflater) { 51 if (source == null) throw new IllegalArgumentException("source == null") [all...] |
/bootable/recovery/tests/unit/ |
commands_test.cpp | 2 * Copyright (C) 2018 The Android Open Source Project 52 SourceInfo source; local 56 "1d74d1a60332fd38cf9405f1bae67917888da6cb", &source, &err)); 62 source); 63 ASSERT_EQ(117, source.blocks()); 74 SourceInfo source; local 78 "1c25ba04d3278d6b65a1b9f17abac78425ec8b8d", &source, &err)); 87 source); 88 ASSERT_EQ(2, source.blocks()); 100 SourceInfo source; local 128 SourceInfo source; local 152 SourceInfo source; local [all...] |
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13253/ |
poc.cpp | 2 * Copyright (C) 2018 The Android Open Source Project 67 ICrypto::SourceBuffer source = { .mSharedMemory = sourceMemory, local 76 CryptoPlugin::kMode_Unencrypted, pattern, source, 0, subSamples, 1,
|
/cts/tests/tests/text/src/android/text/cts/ |
Editable_FactoryTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 39 CharSequence source = "abc"; local 41 Editable expected = new SpannableStringBuilder(source); 44 Editable actual = mFactory.newEditable(source);
|
InputFilter_LengthFilterTest.java | 2 * Copyright (C) 2008 The Android Open Source Project 37 CharSequence source; local 46 // cut off the source CharSequence from beginning to fit the filter length. 47 source = "abc"; 51 dest.insert(1, source); 55 dest.replace(5, 8, source);
|
/development/tools/repo_diff/service/repodiff/repositories/ |
source.go | 18 type source struct { type 22 func (s source) getOrCreateURLBranchID(url, branch string) (int16, error) { 36 func (s source) getOrCreateURLBranchIDPersistence(url, branch string) (int16, error) { 45 func (s source) insertIgnoreError(url, branch string) { 61 func (s source) getIDByURLBranch(url, branch string) (int16, error) { 79 func (s source) GetURLBranchByID(id int16) (string, string, error) { 92 func (s source) getURLBranchByIDPersistence(id int16) (string, string, error) { 109 func (s source) DiffTargetToMapped(target e.DiffTarget) (e.MappedDiffTarget, error) { 127 func NewSourceRepository() (source, error) { 129 return source{ [all...] |
/external/Reactive-Extensions/RxCpp/Rx/v2/src/rxcpp/operators/ |
rx-connect_forever.hpp | 7 \brief takes a connectable_observable source and calls connect during the construction of the expression. 8 This means that the source starts running without any subscribers and continues running after all subscriptions have been unsubscribed. 10 \return An observable that emitting the items from its source. 39 source_type source; member in struct:rxcpp::operators::detail::connect_forever 42 : source(std::move(o)) 44 source.connect(); 49 source.subscribe(std::forward<Subscriber>(o));
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/exception/util/ |
DummyLocalizable.java | 32 /** Source string. */ 33 private final String source; field in class:DummyLocalizable 36 * @param source source text 38 public DummyLocalizable(final String source) { 39 this.source = source; 44 return source; 49 return source; 55 return source; [all...] |
/external/brotli/java/org/brotli/wrapper/dec/ |
EagerStreamTest.java | 26 InputStream source = new InputStream() { local 58 BrotliInputStream reader = new BrotliInputStream(source);
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
FilteredTransform.java | 18 public String transform(String source) { 23 while (getNextRegion(source, startEnd)) { 25 result.append(source.substring(last, startEnd[0])); 27 result.append(transform.transform(source.substring(startEnd[0], startEnd[1]))); 30 if (last < source.length()) { 31 result.append(source.substring(last));
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
SemiFileReader.java | 26 String source = parts[0]; local 27 int range = source.indexOf(".."); 29 start = Integer.parseInt(source.substring(0, range), 16); 30 end = Integer.parseInt(source.substring(range + 2), 16); 32 start = end = Integer.parseInt(source, 16);
|
/external/deqp/external/vulkancts/framework/vulkan/ |
vkSpirVProgram.hpp | 68 : source(source_) 79 std::string source; member in struct:vk::SpirVAsmSource 90 std::string source; member in struct:vk::SpirVProgramInfo 103 src.source += de::toString(val);
|
/external/deqp/external/vulkancts/modules/vulkan/vkrunner/ |
vktVkRunnerTestCase.hpp | 44 struct vr_source *source; member in struct:vkt::vkrunner::TestCaseData
|