/aosp_15_r20/libcore/ojluni/src/test/java/nio/channels/Selector/ |
H A D | SelectWithConsumer.java | 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 82 int n = sel.select(k -> { in testActionInvoked() 95 n = sel.select(k -> { in testActionInvoked() 108 n = sel.selectNow(k -> { in testActionInvoked() 124 Pipe p = Pipe.open(); in testReadable() 125 try (Selector sel = Selector.open()) { in testReadable() 127 Pipe.SourceChannel source = p.source(); in testReadable() local 128 source.configureBlocking(false); in testReadable() 129 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testReadable() 131 // write to sink to ensure source is readable in testReadable() [all …]
|
/aosp_15_r20/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/rawfhir/ |
D | RawFhirFormatterTest.kt | 2 * Copyright (C) 2024 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 128 " \"id\": \"immunization-1\",\n" + in smallImmunization_formatCorrectly() 138 " \"code\": \"58160-842-11\"\n" + in smallImmunization_formatCorrectly() 147 " \"occurrenceDateTime\": \"2018-05-21\"\n" + in smallImmunization_formatCorrectly() 158 " \"id\": \"immunization-1\",\n" + in longImmunization_formatCorrectly() 168 " \"code\": \"58160-842-11\"\n" + in longImmunization_formatCorrectly() 181 " \"occurrenceDateTime\": \"2018-05-21\",\n" + in longImmunization_formatCorrectly() 190 … " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActSite\",\n" + in longImmunization_formatCorrectly() 200 …" \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RouteOfAdministration\",\n… in longImmunization_formatCorrectly() [all …]
|
D | RawFhirViewModelTest.kt | 2 * Copyright (C) 2024 The Android Open Source Project in <lambda>() 8 * http://www.apache.org/licenses/LICENSE-2.0 in <lambda>() 128 " \"id\": \"immunization-1\",\n" + in <lambda>() 138 " \"code\": \"58160-842-11\"\n" + in <lambda>() 147 " \"occurrenceDateTime\": \"2018-05-21\"\n" + in <lambda>() 150 …source code: Open bracket. Field resourceType Value: Immunization. Field id Value: immunization-1.… in <lambda>() 180 " \"id\": \"immunization-1\",\n" + in <lambda>() 190 " \"code\": \"58160-842-11\"\n" + in <lambda>() 203 " \"occurrenceDateTime\": \"2018-05-21\",\n" + in <lambda>() 212 … " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActSite\",\n" + in <lambda>() [all …]
|
D | RawFhirFragmentTest.kt | 2 * Copyright (C) 2024 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 74 " \"code\": \"58160-842-11\"\n" + 87 " \"occurrenceDateTime\": \"2018-05-21\",\n" + 96 " \"system\": \"http://terminology.hl7.org/CodeSystem/v3-ActSite\",\n" + 106 …" \"system\": \"http://terminology.hl7.org/CodeSystem/v3-RouteOfAdministration\",\n… 122 … " \"system\": \"http://terminology.hl7.org/CodeSystem/v2-0443\",\n" + 138 …source code: Open bracket. Field resourceType Value: Immunization. Field id Value: immunization_1.…
|
/aosp_15_r20/external/google-java-format/core/src/main/java/com/google/googlejavaformat/java/ |
H A D | JavaInputAstVisitor.java | 7 * http://www.apache.org/licenses/LICENSE-2.0 32 import static com.sun.source.tree.Tree.Kind.ANNOTATION; 33 import static com.sun.source.tree.Tree.Kind.ARRAY_ACCESS; 34 import static com.sun.source.tree.Tree.Kind.ASSIGNMENT; 35 import static com.sun.source.tree.Tree.Kind.BLOCK; 36 import static com.sun.source.tree.Tree.Kind.EXTENDS_WILDCARD; 37 import static com.sun.source.tree.Tree.Kind.IF; 38 import static com.sun.source.tree.Tree.Kind.METHOD_INVOCATION; 39 import static com.sun.source.tree.Tree.Kind.NEW_ARRAY; 40 import static com.sun.source.tree.Tree.Kind.NEW_CLASS; [all …]
|
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/ |
H A D | AImageDecoderTest.java | 2 * Copyright (C) 2019 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 187 private static ParcelFileDescriptor open(int resId, int offset) throws FileNotFoundException { in open() method in AImageDecoderTest 191 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, in open() 197 private static ParcelFileDescriptor open(int resId) throws FileNotFoundException { in open() method in AImageDecoderTest 198 return open(resId, 0); in open() 204 try (ParcelFileDescriptor pfd = open(record.resId)) { in testCreateFdResources() 210 fail("Could not open " + Utils.getAsResourceUri(record.resId)); in testCreateFdResources() 219 try (ParcelFileDescriptor pfd = open(record.resId, offset)) { in testCreateFdOffset() 227 fail("Could not open " + Utils.getAsResourceUri(record.resId)); in testCreateFdOffset() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/test_importlib/source/ |
D | test_file_loader.py | 27 """Should have no issue importing a source module [basic]. And if there is 126 with open(mapping['_temp'], 'w', encoding='utf-8') as file: 147 with open(mapping[name], 'w', encoding='utf-8') as file: 164 with open(mapping['_temp'], 'w', encoding='utf-8') as file: 177 with open(file_path, 'w', encoding='utf-8') as file: 199 source = mapping['_temp'] 200 compiled = self.util.cache_from_source(source) 201 with open(source, 'w', encoding='utf-8') as f: 204 os.utime(source, (2 ** 33 - 5, 2 ** 33 - 5)) 243 source = mapping['_temp'] [all …]
|
/aosp_15_r20/bionic/tests/ |
H A D | NOTICE | 1 Copyright (C) 2012 The Android Open Source Project 7 http://www.apache.org/licenses/LICENSE-2.0 15 ------------------------------------------------------------------- 17 Copyright (C) 2013 The Android Open Source Project 23 http://www.apache.org/licenses/LICENSE-2.0 31 ------------------------------------------------------------------- 33 Copyright (C) 2013 The Android Open Source Project 36 Redistribution and use in source and binary forms, with or without 39 * Redistributions of source code must retain the above copyright 59 ------------------------------------------------------------------- [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/math/rand/v2/ |
D | rand.go | 2 // Use of this source code is governed by a BSD-style 5 // Package rand implements pseudo-random number generators suitable for tasks 6 // such as simulation, but it should not be used for security-sensitive work. 8 // Random numbers are generated by a [Source], usually wrapped in a [Rand]. 12 // Top-level functions, such as [Float64] and [Int], 16 // seeded. For random numbers suitable for security-sensitive work, see the 25 // A Source is a source of uniformly-distributed 26 // pseudo-random uint64 values in the range [0, 1<<64). 28 // A Source is not safe for concurrent use by multiple goroutines. 29 type Source interface { interface [all …]
|
/aosp_15_r20/trusty/kernel/app/uirqtest/ |
H A D | uevt_test.c | 2 * Copyright (C) 2019 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 31 #define TEST_EVS_NAME1 "com.android.trusty.test-uevent-source1" 32 #define TEST_EVS_NAME2 "com.android.trusty.test-uevent-source2" 33 #define TEST_EVT_NAME1 "com.android.trusty.test-uevent-client1" 34 #define TEST_EVT_NAME2 "com.android.trusty.test-uevent-client2" 51 if (_state->hevts_ref.handle) { in TEST_F_TEARDOWN() 52 handle_set_detach_ref(&_state->hevts_ref); in TEST_F_TEARDOWN() 55 if (_state->hevt1_ref.handle) { in TEST_F_TEARDOWN() 56 handle_set_detach_ref(&_state->hevt1_ref); in TEST_F_TEARDOWN() [all …]
|
/aosp_15_r20/prebuilts/runtime/mainline/runtime/host-exports/licenses/bionic/linker/ |
H A D | NOTICE | 1 Copyright (C) 2007 The Android Open Source Project 4 Redistribution and use in source and binary forms, with or without 7 * Redistributions of source code must retain the above copyright 27 ------------------------------------------------------------------- 29 Copyright (C) 2008 The Android Open Source Project 32 Redistribution and use in source and binary forms, with or without 35 * Redistributions of source code must retain the above copyright 55 ------------------------------------------------------------------- 57 Copyright (C) 2012 The Android Open Source Project 60 Redistribution and use in source and binary forms, with or without [all …]
|
/aosp_15_r20/bionic/linker/ |
H A D | NOTICE | 1 Copyright (C) 2007 The Android Open Source Project 4 Redistribution and use in source and binary forms, with or without 7 * Redistributions of source code must retain the above copyright 27 ------------------------------------------------------------------- 29 Copyright (C) 2008 The Android Open Source Project 32 Redistribution and use in source and binary forms, with or without 35 * Redistributions of source code must retain the above copyright 55 ------------------------------------------------------------------- 57 Copyright (C) 2012 The Android Open Source Project 60 Redistribution and use in source and binary forms, with or without [all …]
|
/aosp_15_r20/external/okio/okio-fakefilesystem/src/commonMain/kotlin/okio/fakefilesystem/ |
H A D | FakeFileSystem.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 34 import okio.Source 42 * A fully in-memory file system useful for testing. It includes features to support writing 49 * ----------------- 53 * * Moving a file that is currently open for reading or writing. 54 * * Deleting a file that is currently open for reading or writing. 57 * * Opening a file for writing that is already open for writing. 68 /** File system roots. Each element is a Directory and is created on-demand. */ 71 /** Files that are currently open and need to be closed to avoid resource leaks. */ 87 * True to allow files to be moved even if they're currently open for read or write. UNIX file [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | test_import.py | 46 # Brief digression to test that import is case-sensitive: if we got 58 from test import double_const # don't blink -- that *was* the test 63 source = TESTFN + ext 70 with open(source, "w") as f: 88 unlink(source) 120 f = open(fname, 'w').close() 143 # a read only source file resulted in a read only pyc file, which 148 # Write a Python file, make it read-only and import it 149 with open(fname, 'w') as f: 151 # Tweak the mtime of the source to ensure pyc gets updated later [all …]
|
/aosp_15_r20/tools/metalava/ |
H A D | README.md | 5 tool also works on non-Android libraries. 16 * Extracting source level annotations into external annotations file (such as 44 $ ./gradlew run --args="--api path/to/api.txt" 61 metalava extracts metadata from source code to generate artifacts such as the 68 --help This message. 69 --quiet Only include vital output 70 --verbose Include extra diagnostic output 93 …can also be run for repeated measurement using [gradle-profiler](https://github.com/gradle/gradle-… 95 …$ INTEGRATION=true /path/to/gradle-profiler --benchmark --project-dir . --scenario-file integratio… 99 * Ability to read in an existing android.jar file instead of from source, which [all …]
|
/aosp_15_r20/external/python/cpython3/Tools/iobench/ |
D | iobench.py | 1 # -*- coding: utf-8 -*- 25 return open(fn, mode, encoding=encoding or TEXT_ENCODING) 29 return open(fn, mode) 41 return (("%s-%s-%s.txt" % (name, TEXT_ENCODING, NEWLINES), size) 106 for i in xrange(0, size - 1): 116 for i in xrange(0, size - 1, 1000): 138 def write_bytewise(f, source): argument 140 for i in xrange(0, len(source)): 141 f.write(source[i:i+1]) 145 def write_small_chunks(f, source): argument [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/test_import/ |
D | __init__.py | 49 def _ready_to_import(name=None, source=""): argument 56 path = script_helper.make_script(tempdir, name, source) 119 # _warning has no path as it's a built-in module. 133 with open(path, 'w', encoding='utf-8') as f: 142 with open(path, 'w', encoding='utf-8') as f: 152 # Brief digression to test that import is case-sensitive: if we got 160 from test import double_const # don't blink -- that *was* the test 165 source = TESTFN + ext 171 with open(source, "w", encoding='utf-8') as f: 194 unlink(source) [all …]
|
/aosp_15_r20/external/fonttools/Tests/designspaceLib/data/ |
H A D | test_v5_decovar.designspace | 1 <?xml version='1.0' encoding='UTF-8'?> 10 <axis tag="TRMF" name="Open Inline Terminal" minimum="0" maximum="1000" default="0"/> 21 …<!-- Labels without location or just partly specified location are at the default location plus th… 24 <label name="Open"> 60 <label name="Flared Open"> 84 <dimension name="Open Inline Terminal" uservalue="500"/> 109 <dimension name="Open Inline Terminal" uservalue="250"/> 123 <source filename="DecovarAlpha-Regular24.ufo" name="master_Regular"/> 124 <source filename="DecovarAlpha-Regular24SkelA.ufo" name="master_sklA"> 128 </source> [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/fs-err/src/ |
D | file.rs | 10 /// [std::fs::File]: https://doc.rust-lang.org/stable/std/fs/struct.File.html 19 pub(crate) fn open(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in open() function 20 fs::File::open(path).map_err(|err| |path| Error::build(err, ErrorKind::OpenFile, path)) in open() 23 // like `open()` but for `crate::write` 24 pub(crate) fn create(path: &Path) -> Result<std::fs::File, impl FnOnce(PathBuf) -> io::Error> { in create() 30 /// [std::fs::File]: https://doc.rust-lang.org/stable/std/fs/struct.File.html 32 /// Attempts to open a file in read-only mode. 34 …/// Wrapper for [`File::open`](https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.ope… 35 pub fn open<P>(path: P) -> Result<Self, io::Error> in open() method 40 match open(&path) { in open() [all …]
|
/aosp_15_r20/bionic/benchmarks/ |
H A D | NOTICE | 1 Copyright (C) 2012 The Android Open Source Project 7 http://www.apache.org/licenses/LICENSE-2.0 15 ------------------------------------------------------------------- 17 Copyright (C) 2013 The Android Open Source Project 23 http://www.apache.org/licenses/LICENSE-2.0 31 ------------------------------------------------------------------- 33 Copyright (C) 2014 The Android Open Source Project 39 http://www.apache.org/licenses/LICENSE-2.0 47 ------------------------------------------------------------------- 49 Copyright (C) 2017 The Android Open Source Project [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/math/rand/ |
D | rand.go | 2 // Use of this source code is governed by a BSD-style 5 // Package rand implements pseudo-random number generators suitable for tasks 6 // such as simulation, but it should not be used for security-sensitive work. 8 // Random numbers are generated by a [Source], usually wrapped in a [Rand]. 12 // Top-level functions, such as [Float64] and [Int], 16 // seeded. For random numbers suitable for security-sensitive work, see the 27 // A Source represents a source of uniformly-distributed 28 // pseudo-random int64 values in the range [0, 1<<63). 30 // A Source is not safe for concurrent use by multiple goroutines. 31 type Source interface { interface [all …]
|
/aosp_15_r20/external/cronet/build/toolchain/win/ |
H A D | midl.py | 2 # Use of this source code is governed by a BSD-style license that can be 26 contents = open(filename, 'rb').read() 27 # midl.exe writes timestamp 2147483647 (2^31 - 1) as creation date into its 28 # outputs, but using the local timezone. To make the output timezone- 32 # See https://chromium-review.googlesource.com/c/chromium/src/+/693223 for 47 # 0x0801026e for v8.1.622 -- 0x26e == 622). These 3 fields take 0x54 bytes. 49 # there for file-level metadata. 50 # All data is little-endian in the file. 87 # TODO(thakis): If we need more hacks than these, try to verify checked-in 97 open(filename, 'wb').write(contents) [all …]
|
/aosp_15_r20/external/angle/build/toolchain/win/ |
H A D | midl.py | 2 # Use of this source code is governed by a BSD-style license that can be 26 contents = open(filename, 'rb').read() 27 # midl.exe writes timestamp 2147483647 (2^31 - 1) as creation date into its 28 # outputs, but using the local timezone. To make the output timezone- 32 # See https://chromium-review.googlesource.com/c/chromium/src/+/693223 for 47 # 0x0801026e for v8.1.622 -- 0x26e == 622). These 3 fields take 0x54 bytes. 49 # there for file-level metadata. 50 # All data is little-endian in the file. 87 # TODO(thakis): If we need more hacks than these, try to verify checked-in 97 open(filename, 'wb').write(contents) [all …]
|
/aosp_15_r20/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
H A D | FramedStream.java | 1 /* GENERATED SOURCE. DO NOT MODIFY. */ 3 * Copyright (C) 2011 The Android Open Source Project 9 * http://www.apache.org/licenses/LICENSE-2.0 30 import com.android.okhttp.okio.Source; 38 // Internal state is guarded by this. No long-running or potentially 66 private final FramedDataSource source; field in FramedStream 74 * near-simultaneously) then this is the first reason known to this peer. 86 this.source = new FramedDataSource( in FramedStream() 89 this.source.finished = inFinished; in FramedStream() 99 * Returns true if this stream is open. A stream is open until either: [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/datasource/src/main/java/com/google/android/exoplayer2/upstream/ |
H A D | DataSource.java | 2 * Copyright (C) 2016 The Android Open Source Project 8 * http://www.apache.org/licenses/LICENSE-2.0 26 /** Reads data from URI-identified resources. */ 37 * Adds a {@link TransferListener} to listen to data transfers. This method is not thread-safe. 44 * Opens the source to read the specified data. If an {@link IOException} is thrown, callers must 53 * {@link #open} will succeed and data from the requested position to the end of the 56 * resource, then {@link #open} will succeed, and {@link #read} will immediately return 59 * resource, then {@link #open} will throw an {@link IOException} for which {@link 64 * @throws IOException If an error occurs opening the source. {@link DataSourceException} can be 66 * @return The number of bytes that can be read from the opened source. For unbounded requests [all …]
|