/aosp_15_r20/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ThreadPoolExecutorTest.java | 2 * Written by Doug Lea with assistance from members of JCP JSR-166 40 // android-note: Removed because the CTS runner does a bad job of 91 final ThreadPoolExecutor p = in testExecute() local 95 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 99 p.execute(task); in testExecute() 110 final ThreadPoolExecutor p = in testGetActiveCount() local 114 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() method 116 assertEquals(0, p.getActiveCount()); in testGetActiveCount() 117 p.execute(new CheckedRunnable() { in testGetActiveCount() 120 assertEquals(1, p.getActiveCount()); in testGetActiveCount() [all …]
|
H A D | ThreadPoolExecutorSubclassTest.java | 2 * Written by Doug Lea with assistance from members of JCP JSR-166 43 // android-note: Removed because the CTS runner does a bad job of 72 lock.lock(); try { return done; } finally { lock.unlock() ; } in isDone() 75 lock.lock(); try { return cancelled; } finally { lock.unlock() ; } in isCancelled() 79 try { in cancel() 93 try { in run() 101 try { in run() 108 try { in run() 121 try { in get() 136 try { in get() [all …]
|
H A D | ScheduledExecutorTest.java | 2 * Written by Doug Lea with assistance from members of JCP JSR-166 39 // android-note: Removed because the CTS runner does a bad job of 53 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testExecute() local 54 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 58 p.execute(task); in testExecute() 67 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule1() local 68 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule1() method 77 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 88 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule3() local 89 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() method [all …]
|
H A D | ScheduledExecutorSubclassTest.java | 2 * Written by Doug Lea with assistance from members of JCP JSR-166 42 // android-note: Removed because the CTS runner does a bad job of 110 final CustomExecutor p = new CustomExecutor(1); in testExecute() local 111 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 115 p.execute(task); in testExecute() 125 final CustomExecutor p = new CustomExecutor(1); in testSchedule1() local 126 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() method 134 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() 144 final CustomExecutor p = new CustomExecutor(1); in testSchedule3() local 145 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule3() method [all …]
|
H A D | ForkJoinPoolTest.java | 2 * Written by Doug Lea with assistance from members of JCP JSR-166 36 // android-note: Removed because the CTS runner does a bad job of 75 public FailingFJWSubclass(ForkJoinPool p) { super(p) ; } in FailingFJWSubclass() argument 82 public ForkJoinWorkerThread newThread(ForkJoinPool p) { in newThread() argument 84 return new FailingFJWSubclass(p); in newThread() 120 FibTask f1 = new FibTask(n - 1); in compute() 122 return (new FibTask(n - 2)).compute() + f1.join(); in compute() 151 f1 = new LockingFibTask(n - 1, locker, lock); in compute() 152 f2 = new LockingFibTask(n - 2, locker, lock); in compute() 170 ForkJoinPool p = new ForkJoinPool(1); in testDefaultInitialState() local [all …]
|
/aosp_15_r20/libcore/ojluni/src/test/java/util/concurrent/tck/ |
H A D | ThreadPoolExecutorTest.java | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 * Written by Doug Lea with assistance from members of JCP JSR-166 74 // Android-changed: Use JUnit4. 77 // Android-changed: Use JUnitCore.main. 128 final ThreadPoolExecutor p = in testExecute() local 132 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 136 p.execute(task); in testExecute() 148 final ThreadPoolExecutor p = in testGetActiveCount() local 152 try (PoolCleaner cleaner = cleaner(p, done)) { in testGetActiveCount() method 154 assertEquals(0, p.getActiveCount()); in testGetActiveCount() [all …]
|
H A D | ThreadPoolExecutorSubclassTest.java | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 * Written by Doug Lea with assistance from members of JCP JSR-166 76 // Android-changed: Use JUnit4. 79 // Android-changed: Use JUnitCore.main. 107 lock.lock(); try { return done; } finally { lock.unlock() ; } in isDone() 110 lock.lock(); try { return cancelled; } finally { lock.unlock() ; } in isCancelled() 114 try { in cancel() 128 try { in run() 136 try { in run() 143 try { in run() [all …]
|
H A D | ScheduledExecutorTest.java | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 * Written by Doug Lea with assistance from members of JCP JSR-166 84 // Android-changed: Use JUnit4. 87 // Android-changed: Use JUnitCore.main. 96 // Android-changed: b/288912692 need this to support added test cases. 105 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testExecute() local 106 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 110 p.execute(task); in testExecute() 120 final ScheduledThreadPoolExecutor p = new ScheduledThreadPoolExecutor(1); in testSchedule1() local 121 try (PoolCleaner cleaner = cleaner(p)) { in testSchedule1() method [all …]
|
H A D | ScheduledExecutorSubclassTest.java | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 * Written by Doug Lea with assistance from members of JCP JSR-166 77 // Android-changed: Use JUnit4. 80 // Android-changed: Use JUnitCore.main. 148 final CustomExecutor p = new CustomExecutor(1); in testExecute() local 149 try (PoolCleaner cleaner = cleaner(p)) { in testExecute() method 153 p.execute(task); in testExecute() 164 final CustomExecutor p = new CustomExecutor(1); in testSchedule1() local 165 try (PoolCleaner cleaner = cleaner(p, done)) { in testSchedule1() method 173 Future f = p.schedule(task, timeoutMillis(), MILLISECONDS); in testSchedule1() [all …]
|
H A D | ForkJoinPoolTest.java | 16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 29 * Written by Doug Lea with assistance from members of JCP JSR-166 71 // Android-changed: Use JUnit4. 74 // Android-changed: Use JUnitCore.main. 105 public FailingFJWSubclass(ForkJoinPool p) { super(p) ; } in FailingFJWSubclass() argument 112 public ForkJoinWorkerThread newThread(ForkJoinPool p) { in newThread() argument 114 return new FailingFJWSubclass(p); in newThread() 150 FibTask f1 = new FibTask(n - 1); in compute() 152 return (new FibTask(n - 2)).compute() + f1.join(); in compute() 181 f1 = new LockingFibTask(n - 1, locker, lock); in compute() [all …]
|
/aosp_15_r20/cts/tests/tests/media/misc/src/android/media/misc/cts/ |
H A D | ParamsTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 48 SyncParams p = new SyncParams(); in testSyncParamsDefaults() local 49 try { fail("got " + p.getAudioAdjustMode()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 50 try { fail("got " + p.getSyncSource()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 51 try { fail("got " + p.getTolerance()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 52 try { fail("got " + p.getFrameRate()); } catch (IllegalStateException e) {} in testSyncParamsDefaults() 54 SyncParams q = p.allowDefaults(); in testSyncParamsDefaults() 55 assertSame(p, q); in testSyncParamsDefaults() 56 assertEquals(p.AUDIO_ADJUST_MODE_DEFAULT, p.getAudioAdjustMode()); in testSyncParamsDefaults() 57 assertEquals(p.SYNC_SOURCE_DEFAULT, p.getSyncSource()); in testSyncParamsDefaults() [all …]
|
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
H A D | AbstractPreferencesTest.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 106 try { in testConstructor() 112 try { in testConstructor() 117 try { in testConstructor() 122 try { in testConstructor() 127 try { in testConstructor() 152 MockAbstractPreferences p = new MockAbstractPreferences(pref, "newNode"); in testProtectedFields() local 153 assertFalse(p.getNewNode()); in testProtectedFields() 154 assertSame(p.getLock().getClass(), Object.class); in testProtectedFields() 156 p = (MockAbstractPreferences) pref.node("child"); in testProtectedFields() [all …]
|
/aosp_15_r20/external/google-cloud-java/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/ |
H A D | package-info.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 20 * <p>======================= AcceleratorTypesClient ======================= 22 * <p>Service Description: Services 24 * <p>The AcceleratorTypes API. 26 * <p>Sample for AcceleratorTypesClient: 31 * // - It may require correct/in-range values for request initialization. 32 * // - It may require specifying regional endpoints when creating the service client as shown in 34 * try (AcceleratorTypesClient acceleratorTypesClient = AcceleratorTypesClient.create()) { 35 * String project = "project-309310695"; 37 * String acceleratorType = "acceleratorType-82462651"; [all …]
|
/aosp_15_r20/external/flatbuffers/tests/FlatBuffers.Test.Swift.Wasm/Tests/FlatBuffers.Test.Swift.WasmTests/ |
H A D | monster_test_generated.swift | 27 case .red: try container.encode("Red") in encode() 28 case .green: try container.encode("Green") in encode() 29 case .blue: try container.encode("Blue") in encode() 38 case none_ = -1 51 case .none_: try container.encode("None") in encode() 52 case .human: try container.encode("Human") in encode() 53 case .dwarf: try container.encode("Dwarf") in encode() 54 case .elf: try container.encode("Elf") in encode() 75 case .longone: try container.encode("LongOne") in encode() 76 case .longtwo: try container.encode("LongTwo") in encode() [all …]
|
/aosp_15_r20/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/ |
H A D | monster_test_generated.swift | 27 case .red: try container.encode("Red") in encode() 28 case .green: try container.encode("Green") in encode() 29 case .blue: try container.encode("Blue") in encode() 38 case none_ = -1 51 case .none_: try container.encode("None") in encode() 52 case .human: try container.encode("Human") in encode() 53 case .dwarf: try container.encode("Dwarf") in encode() 54 case .elf: try container.encode("Elf") in encode() 75 case .longone: try container.encode("LongOne") in encode() 76 case .longtwo: try container.encode("LongTwo") in encode() [all …]
|
H A D | optional_scalars_generated.swift | 23 case .none_: try container.encode("None") in encode() 24 case .one: try container.encode("One") in encode() 25 case .two: try container.encode("Two") in encode() 38 …public static func getRootAsScalarStuff(bb: ByteBuffer) -> optional_scalars_ScalarStuff { return o… in getRootAsScalarStuff() 81 var p: VOffset { self.rawValue } variable 120 …public static func startScalarStuff(_ fbb: inout FlatBufferBuilder) -> UOffset { fbb.startTable(wi… in startScalarStuff() 121 …: Int8, _ fbb: inout FlatBufferBuilder) { fbb.add(element: justI8, def: 0, at: VTOFFSET.justI8.p) } in add() 122 …ybeI8: Int8?, _ fbb: inout FlatBufferBuilder) { fbb.add(element: maybeI8, at: VTOFFSET.maybeI8.p) } in add() 123 … _ fbb: inout FlatBufferBuilder) { fbb.add(element: defaultI8, def: 42, at: VTOFFSET.defaultI8.p) } in add() 124 … UInt8, _ fbb: inout FlatBufferBuilder) { fbb.add(element: justU8, def: 0, at: VTOFFSET.justU8.p) } in add() [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/exception/test/ |
D | cloning_test.cpp | 1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc. 61 --count; in ~derives_nothing() 99 try in test_std_exception() 106 boost::exception_ptr p = boost::current_exception(); in test_std_exception() local 107 BOOST_TEST(!(p==boost::exception_ptr())); in test_std_exception() 108 BOOST_TEST(p!=boost::exception_ptr()); in test_std_exception() 109 BOOST_TEST(p); in test_std_exception() 110 try in test_std_exception() 112 rethrow_exception(p); in test_std_exception() 118 boost::exception_ptr p = boost::current_exception(); in test_std_exception() local [all …]
|
/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() local 125 try (Selector sel = Selector.open()) { in testReadable() method 126 Pipe.SinkChannel sink = p.sink(); in testReadable() 127 Pipe.SourceChannel source = p.source(); in testReadable() 137 closePipe(p); in testReadable() 145 Pipe p = Pipe.open(); in testWritable() local [all …]
|
/aosp_15_r20/external/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ |
H A D | ConfigClient.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 90 // AUTO-GENERATED DOCUMENTATION AND CLASS. 94 * <p>This class provides the ability to make remote calls to the backing service through method 100 * // - It may require correct/in-range values for request initialization. 101 * // - It may require specifying regional endpoints when creating the service client as shown in 103 * try (ConfigClient configClient = ConfigClient.create()) { 114 * <p>Note: close() needs to be called on the ConfigClient object to clean up resources such as 115 * threads. In the example above, try-with-resources is used, which automatically calls close(). 117 * <p>The surface of this class includes several types of Java methods for each of the API's 131 * <p>See the individual methods for example code. [all …]
|
/aosp_15_r20/cts/tests/tests/os/src/android/os/cts/ |
H A D | ParcelTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 179 Parcel p; in testAppendFrom() local 184 p = Parcel.obtain(); in testAppendFrom() 185 d1 = p.dataPosition(); in testAppendFrom() 186 p.writeInt(7); in testAppendFrom() 187 p.writeInt(5); in testAppendFrom() 188 d2 = p.dataPosition(); in testAppendFrom() 190 p2.appendFrom(p, d1, d2 - d1); in testAppendFrom() 195 p.recycle(); in testAppendFrom() 200 Parcel p; in testDataAvail() local [all …]
|
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | LinkedBlockingDeque.java | 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 31 * Written by Doug Lea with assistance from members of JCP JSR-166 51 * An optionally-bounded {@linkplain BlockingDeque blocking deque} based on 54 * <p>The optional capacity bound constructor argument serves as a 60 * <p>Most operations run in constant time (ignoring time spent 67 * <p>This class and its iterator implement all of the <em>optional</em> 70 * <p>This class is a member of the 71 * <a href="{@docRoot}/reference/java/util/package-summary.html#CollectionsFramework"> 83 * Implemented as a simple doubly-linked list protected by a 87 * keep all Nodes GC-reachable from a predecessor dequeued Node. [all …]
|
/aosp_15_r20/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | LinkedBlockingDeque.java | 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 31 * Written by Doug Lea with assistance from members of JCP JSR-166 51 * An optionally-bounded {@linkplain BlockingDeque blocking deque} based on 54 * <p>The optional capacity bound constructor argument serves as a 60 * <p>Most operations run in constant time (ignoring time spent 67 * <p>This class and its iterator implement all of the <em>optional</em> 70 * <p>This class is a member of the 71 * <a href="{@docRoot}/java.base/java/util/package-summary.html#CollectionsFramework"> 83 * Implemented as a simple doubly-linked list protected by a 87 * keep all Nodes GC-reachable from a predecessor dequeued Node. [all …]
|
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/20/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | LinkedBlockingDeque.java | 18 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 31 * Written by Doug Lea with assistance from members of JCP JSR-166 51 * An optionally-bounded {@linkplain BlockingDeque blocking deque} based on 54 * <p>The optional capacity bound constructor argument serves as a 60 * <p>Most operations run in constant time (ignoring time spent 67 * <p>This class and its iterator implement all of the <em>optional</em> 70 * <p>This class is a member of the 71 * <a href="{@docRoot}/reference/java/util/package-summary.html#CollectionsFramework"> 83 * Implemented as a simple doubly-linked list protected by a 87 * keep all Nodes GC-reachable from a predecessor dequeued Node. [all …]
|
/aosp_15_r20/external/google-cloud-java/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/ |
H A D | AnalyticsAdminServiceClient.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 38 // AUTO-GENERATED DOCUMENTATION AND CLASS. 42 * <p>This class provides the ability to make remote calls to the backing service through method 48 * // - It may require correct/in-range values for request initialization. 49 * // - It may require specifying regional endpoints when creating the service client as shown in 51 * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = 58 * <p>Note: close() needs to be called on the AnalyticsAdminServiceClient object to clean up 59 * resources such as threads. In the example above, try-with-resources is used, which automatically 62 * <p>The surface of this class includes several types of Java methods for each of the API's 76 * <p>See the individual methods for example code. [all …]
|
/aosp_15_r20/external/google-cloud-java/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/ |
H A D | DataCatalogClient.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 48 // AUTO-GENERATED DOCUMENTATION AND CLASS. 53 * <p>This class provides the ability to make remote calls to the backing service through method 59 * // - It may require correct/in-range values for request initialization. 60 * // - It may require specifying regional endpoints when creating the service client as shown in 62 * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { 70 * <p>Note: close() needs to be called on the DataCatalogClient object to clean up resources such as 71 * threads. In the example above, try-with-resources is used, which automatically calls close(). 73 * <p>The surface of this class includes several types of Java methods for each of the API's 87 * <p>See the individual methods for example code. [all …]
|