/aosp_15_r20/external/pytorch/aten/src/ATen/core/ |
H A D | List_test.cpp | 8 List<string> list; in TEST() 13 List<string> list({"3"}); in TEST() 18 List<string> list; in TEST() 23 List<string> list({"3", "4"}); in TEST() 28 List<string> list({"3", "4"}); in TEST() 34 List<string> list({"3", "4"}); in TEST() 40 List<string> list({"3", "4"}); in TEST() 46 List<string> list({"3", "4"}); in TEST() 52 List<string> list({"3", "4"}); in TEST() 58 List<string> list({"3", "4"}); in TEST() [all …]
|
H A D | List_inl.h | 12 List<T>::List(c10::intrusive_ptr<c10::detail::ListImpl>&& elements) in List() function 16 List<T>::List(const c10::intrusive_ptr<c10::detail::ListImpl>& elements) in List() function 20 List<T>::List() in List() function 21 : List(make_intrusive<c10::detail::ListImpl>( in List() 28 List<T>::List(ArrayRef<T> values) in List() function 29 : List(make_intrusive<c10::detail::ListImpl>( in List() 40 List<T>::List(std::initializer_list<T> initial_values) in List() function 41 : List(ArrayRef<T>(initial_values)) { in List() 46 List<T>::List(TypePtr elementType) in List() function 47 : List(make_intrusive<c10::detail::ListImpl>( in List() [all …]
|
/aosp_15_r20/external/pytorch/torch/jit/ |
H A D | _shape_functions.py | 3 from typing import Any, Callable, Dict, List, Optional, Tuple, Union 27 def broadcast(a: List[int], b: List[int]): 31 expandedSizes: List[int] = [] 51 def broadcast_three(a: List[int], b: List[int], c: List[int]): 55 def broadcast_one_three(a: List[int], b: Any, c: List[int]): 59 def adaptive_avg_pool2d(self: List[int], out: List[int]): 65 shape: List[int] = [] 73 def _copy(self: List[int]): 74 out: List[int] = [] 80 def unary(self: List[int]): [all …]
|
/aosp_15_r20/libcore/ojluni/src/test/java/util/List/ |
H A D | ListFactories.java | 23 package test.java.util.List; 35 import java.util.List; 71 static Object[] a(List<String> act, List<String> exp) { in a() 78 a(List.of(), asList()) in empty() 85 a(List.of("a"), in nonempty() 87 a(List.of("a", "b"), in nonempty() 89 a(List.of("a", "b", "c"), in nonempty() 91 a(List.of("a", "b", "c", "d"), in nonempty() 93 a(List.of("a", "b", "c", "d", "e"), in nonempty() 95 a(List.of("a", "b", "c", "d", "e", "f"), in nonempty() [all …]
|
/aosp_15_r20/hardware/interfaces/automotive/vehicle/aidl/generated_lib/4/java/ |
H A D | EnumForVehicleProperty.java | 27 import java.util.List; 32 public static final Map<Integer, List<Class<?>>> values = Map.ofEntries( 33 Map.entry(VehicleProperty.INFO_FUEL_TYPE, List.of(FuelType.class)), 34 Map.entry(VehicleProperty.INFO_EV_CONNECTOR_TYPE, List.of(EvConnectorType.class)), 35 Map.entry(VehicleProperty.INFO_FUEL_DOOR_LOCATION, List.of(PortLocationType.class)), 36 Map.entry(VehicleProperty.INFO_EV_PORT_LOCATION, List.of(PortLocationType.class)), 37 Map.entry(VehicleProperty.INFO_DRIVER_SEAT, List.of(VehicleAreaSeat.class)), 38 Map.entry(VehicleProperty.INFO_MULTI_EV_PORT_LOCATIONS, List.of(PortLocationType.class)), 39 Map.entry(VehicleProperty.INFO_VEHICLE_SIZE_CLASS, List.of(VehicleSizeClass.class)), 40 Map.entry(VehicleProperty.ENGINE_OIL_LEVEL, List.of(VehicleOilLevel.class)), [all …]
|
/aosp_15_r20/hardware/interfaces/automotive/vehicle/aidl/generated_lib/3/java/ |
H A D | EnumForVehicleProperty.java | 27 import java.util.List; 32 public static final Map<Integer, List<Class<?>>> values = Map.ofEntries( 33 Map.entry(VehicleProperty.INFO_FUEL_TYPE, List.of(FuelType.class)), 34 Map.entry(VehicleProperty.INFO_EV_CONNECTOR_TYPE, List.of(EvConnectorType.class)), 35 Map.entry(VehicleProperty.INFO_FUEL_DOOR_LOCATION, List.of(PortLocationType.class)), 36 Map.entry(VehicleProperty.INFO_EV_PORT_LOCATION, List.of(PortLocationType.class)), 37 Map.entry(VehicleProperty.INFO_DRIVER_SEAT, List.of(VehicleAreaSeat.class)), 38 Map.entry(VehicleProperty.INFO_MULTI_EV_PORT_LOCATIONS, List.of(PortLocationType.class)), 39 Map.entry(VehicleProperty.ENGINE_OIL_LEVEL, List.of(VehicleOilLevel.class)), 40 Map.entry(VehicleProperty.IMPACT_DETECTED, List.of(ImpactSensorLocation.class)), [all …]
|
/aosp_15_r20/external/llvm/unittests/ADT/ |
H A D | ilistTest.cpp | 30 ilist<Node> List; in TEST() local 31 List.push_back(Node(1)); in TEST() 32 EXPECT_EQ(1, List.back().Value); in TEST() 33 EXPECT_EQ(nullptr, List.getPrevNode(List.back())); in TEST() 34 EXPECT_EQ(nullptr, List.getNextNode(List.back())); in TEST() 36 List.push_back(Node(2)); in TEST() 37 EXPECT_EQ(2, List.back().Value); in TEST() 38 EXPECT_EQ(2, List.getNextNode(List.front())->Value); in TEST() 39 EXPECT_EQ(1, List.getPrevNode(List.back())->Value); in TEST() 41 const ilist<Node> &ConstList = List; in TEST() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
H A D | WorkTypeConfigTest.java | 43 import java.util.List; 69 @NonNull List<Pair<Integer, Float>> defaultMinRatios, in check() 70 @NonNull List<Pair<Integer, Float>> defaultMaxRatios, in check() 72 @NonNull List<Pair<Integer, Integer>> expectedMinLimits, in check() 73 @NonNull List<Pair<Integer, Integer>> expectedMaxLimits) throws Exception { in check() 111 /* min */ List.of(), in test() 112 /* max */ List.of(), in test() 114 /* min */ List.of(Pair.create(WORK_TYPE_TOP, 1), Pair.create(WORK_TYPE_EJ, 0), in test() 116 /* max */ List.of(Pair.create(WORK_TYPE_TOP, 13), Pair.create(WORK_TYPE_EJ, 13), in test() 119 /* min */ List.of(Pair.create(WORK_TYPE_TOP, .8f), Pair.create(WORK_TYPE_BG, 0f)), in test() [all …]
|
H A D | WorkCountTrackerTest.java | 48 import java.util.List; 123 public final List<Integer> pendingMultiTypes = new ArrayList<>(); 182 @NonNull List<Pair<Integer, Float>> minLimitRatios, in recount() 183 @NonNull List<Pair<Integer, Float>> maxLimitRatios) { in recount() 250 @NonNull List<Pair<Integer, Float>> minLimitRatios, in checkRandom() 251 @NonNull List<Pair<Integer, Float>> maxLimitRatios, in checkRandom() 295 final List<Pair<Integer, Float>> minLimitRatios = in testRandom1() 296 List.of(Pair.create(WORK_TYPE_BG, 1.0f / 3)); in testRandom1() 297 final List<Pair<Integer, Float>> maxLimitRatios = in testRandom1() 298 List.of(Pair.create(WORK_TYPE_BG, 2.0f / 3)); in testRandom1() [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_vendor/idna/ |
D | uts46data.py | 4 from typing import List, Tuple, Union 11 def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 115 def _seg_1() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 219 def _seg_2() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 323 def _seg_3() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 427 def _seg_4() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 531 def _seg_5() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 635 def _seg_6() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 739 def _seg_7() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 843 def _seg_8() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_vendor/idna/ |
D | uts46data.py | 4 from typing import List, Tuple, Union 11 def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 115 def _seg_1() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 219 def _seg_2() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 323 def _seg_3() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 427 def _seg_4() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 531 def _seg_5() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 635 def _seg_6() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 739 def _seg_7() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 843 def _seg_8() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/site-packages/pip/_vendor/idna/ |
D | uts46data.py | 4 from typing import List, Tuple, Union 11 def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 115 def _seg_1() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 219 def _seg_2() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 323 def _seg_3() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 427 def _seg_4() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 531 def _seg_5() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 635 def _seg_6() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 739 def _seg_7() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 843 def _seg_8() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: [all …]
|
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_vendor/idna/ |
D | uts46data.py | 4 from typing import List, Tuple, Union 11 def _seg_0() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 115 def _seg_1() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 219 def _seg_2() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 323 def _seg_3() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 427 def _seg_4() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 531 def _seg_5() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 635 def _seg_6() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 739 def _seg_7() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: 843 def _seg_8() -> List[Union[Tuple[int, str], Tuple[int, str, str]]]: [all …]
|
/aosp_15_r20/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/ |
H A D | GenericListVisitorAdapter.java | 33 import java.util.List; 44 public abstract class GenericListVisitorAdapter<R, A> implements GenericVisitor<List<R>, A> { 46 public List<R> visit(final AnnotationDeclaration n, final A arg) { in visit() 47 List<R> result = new ArrayList<>(); in visit() 48 List<R> tmp; in visit() 77 public List<R> visit(final AnnotationMemberDeclaration n, final A arg) { in visit() 78 List<R> result = new ArrayList<>(); in visit() 79 List<R> tmp; in visit() 113 public List<R> visit(final ArrayAccessExpr n, final A arg) { in visit() 114 List<R> result = new ArrayList<>(); in visit() [all …]
|
/aosp_15_r20/external/doclava/src/com/google/doclava/ |
H A D | Doclava.java | 61 import java.util.List; 135 public static List<PageMetadata.Node> sTaglist = new ArrayList<PageMetadata.Node>(); 242 private final List<String> names = List.of("-overview"); in getSupportedOptions() 248 @Override public List<String> getNames() { return names; } in getSupportedOptions() 250 @Override public boolean process(String opt, List<String> arguments) { in getSupportedOptions() 262 private final List<String> names = List.of("-d"); in getSupportedOptions() 268 @Override public List<String> getNames() { return names; } in getSupportedOptions() 270 @Override public boolean process(String opt, List<String> arguments) { in getSupportedOptions() 280 private final List<String> names = List.of("-templatedir"); in getSupportedOptions() 286 @Override public List<String> getNames() { return names; } in getSupportedOptions() [all …]
|
/aosp_15_r20/external/aws-sdk-java-v2/utils/src/main/java/software/amazon/awssdk/utils/ |
H A D | UnmodifiableMapOfLists.java | 23 import java.util.List; 36 class UnmodifiableMapOfLists<T, U> implements Map<T, List<U>>, Serializable { 40 private final Map<T, List<U>> delegate; 42 UnmodifiableMapOfLists(Map<T, List<U>> delegate) { in UnmodifiableMapOfLists() 67 public List<U> get(Object key) { in get() 72 public List<U> getOrDefault(Object key, List<U> defaultValue) { in getOrDefault() 77 public List<U> put(T key, List<U> value) { in put() 82 public List<U> remove(Object key) { in remove() 87 public void putAll(Map<? extends T, ? extends List<U>> m) { in putAll() 102 public Collection<List<U>> values() { in values() [all …]
|
/aosp_15_r20/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
H A D | MemHealthRecord.java | 28 import java.util.List; 82 static List<MemHealthRecord> get( in get() 84 List<String> procNames, in get() 86 List<String> foregroundProcs) throws IOException { in get() 88 List<MemHealthRecord> records = new ArrayList<>(); in get() 122 Map<String, List<MemHealthRecord>> fgRecords = getRecordMap(allRecords, true); in saveVerbose() 123 Map<String, List<MemHealthRecord>> bgRecords = getRecordMap(allRecords, false); in saveVerbose() 127 for (Map.Entry<String, List<MemHealthRecord>> entry : fgRecords.entrySet()) { in saveVerbose() 129 List<MemHealthRecord> records = entry.getValue(); in saveVerbose() 131 List<Long> nativeHeap = getForegroundNativeHeap(records); in saveVerbose() [all …]
|
/aosp_15_r20/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/property/ |
D | SubscriptionManagerUnitTest.java | 25 import java.util.List; 64 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_Commit_GetClients() 80 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_Commit_GetCurrentSubscribedPropIds() 94 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_UpdateRateChangedToLowerRate() 100 List<CarSubscription> newOptions = List.of( in testStageNewOptions_UpdateRateChangedToLowerRate() 105 List<CarSubscription> outDiffSubscribeOptions = new ArrayList<>(); in testStageNewOptions_UpdateRateChangedToLowerRate() 106 List<Integer> outPropertyIdsToUnsubscribe = new ArrayList<>(); in testStageNewOptions_UpdateRateChangedToLowerRate() 116 mSubscriptionManager.stageNewOptions(mClient1, List.of( in testStageNewOptions_resolutionChangedToDifferentValue() 123 mSubscriptionManager.stageNewOptions(mClient2, List.of( in testStageNewOptions_resolutionChangedToDifferentValue() 128 List<CarSubscription> outDiffSubscribeOptions = new ArrayList<>(); in testStageNewOptions_resolutionChangedToDifferentValue() [all …]
|
/aosp_15_r20/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryLevelDataTest.java | 30 import java.util.List; 45 final List<Long> timestamps = in getDailyTimestamps_allDataInOneHour_returnExpectedList() 46 List.of( in getDailyTimestamps_allDataInOneHour_returnExpectedList() 51 final List<Long> expectedTimestamps = in getDailyTimestamps_allDataInOneHour_returnExpectedList() 52 List.of( in getDailyTimestamps_allDataInOneHour_returnExpectedList() 62 final List<Long> timestamps = in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 63 List.of( in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 69 final List<Long> expectedTimestamps = in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 70 List.of( in getDailyTimestamps_OneHourDataPerDay_returnExpectedList() 81 final List<Long> timestamps = in getDailyTimestamps_OneDayData_returnExpectedList() [all …]
|
/aosp_15_r20/external/guava/android/guava-tests/test/com/google/common/collect/ |
H A D | ListsTest.java | 46 import java.util.List; 86 private static final List<Integer> SOME_LIST = Lists.newArrayList(1, 2, 3, 4); 88 private static final List<Integer> SOME_SEQUENTIAL_LIST = Lists.newLinkedList(asList(1, 2, 3, 4)); 90 private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4"); 113 protected List<String> create(String[] elements) { in suite() 131 protected List<String> create(String[] elements) { in suite() 150 protected List<String> create(String[] elements) { in suite() 151 List<String> fromList = Lists.newArrayList(); in suite() 170 protected List<String> create(String[] elements) { in suite() 171 List<String> fromList = Lists.newLinkedList(); in suite() [all …]
|
/aosp_15_r20/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ListsTest.java | 46 import java.util.List; 86 private static final List<Integer> SOME_LIST = Lists.newArrayList(1, 2, 3, 4); 88 private static final List<Integer> SOME_SEQUENTIAL_LIST = Lists.newLinkedList(asList(1, 2, 3, 4)); 90 private static final List<String> SOME_STRING_LIST = asList("1", "2", "3", "4"); 113 protected List<String> create(String[] elements) { in suite() 131 protected List<String> create(String[] elements) { in suite() 150 protected List<String> create(String[] elements) { in suite() 151 List<String> fromList = Lists.newArrayList(); in suite() 170 protected List<String> create(String[] elements) { in suite() 171 List<String> fromList = Lists.newLinkedList(); in suite() [all …]
|
/aosp_15_r20/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/api/ |
D | BaseApiTest.java | 62 import java.util.List; 112 List<Record> recordsToInsert = in insertRecords_returnsInsertedRecords() 113 List.of( in insertRecords_returnsInsertedRecords() 123 List<Record> insertedRecords = TestUtils.insertRecords(recordsToInsert); in insertRecords_returnsInsertedRecords() 137 List<Record> recordsToInsert = in insertRecords_newClientVersionIsLower_doesNotUpdate() 138 List.of( in insertRecords_newClientVersionIsLower_doesNotUpdate() 143 List<String> recordIds = insertRecordsAndReturnIds(recordsToInsert); in insertRecords_newClientVersionIsLower_doesNotUpdate() 151 TestUtils.insertRecords(List.of(updatedRecord)); in insertRecords_newClientVersionIsLower_doesNotUpdate() 160 List<Record> recordsToInsert = in insertRecords_newClientVersionIsEqual_updatesRecord() 161 List.of( in insertRecords_newClientVersionIsEqual_updatesRecord() [all …]
|
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/util/ |
H A D | ListOfTest.java | 25 import java.util.List; 45 new SerializationTester<>(List.<String>of(), golden).test(); in serializationCompatibility_empty() 56 new SerializationTester<>(List.of("one"), golden).test(); in serializationCompatibility_oneElement() 71 new SerializationTester<>(List.of(12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0), golden).test(); in serializationCompatibility_manyElements() 75 List<?> list = List.of("element", 42); in mixedTypes() 86 check_nonEmpty(asList("duplicate", "duplicate"), List.of("duplicate", "duplicate")); in duplicates_allowed() 91 Collections.<String>emptyList(), List.<String>of(), "non-null example String"); in empty() 95 check_nonEmpty(asList("one"), List.of("one")); in nonEmpty() 96 check_nonEmpty(asList("one", "two"), List.of("one", "two")); in nonEmpty() 97 check_nonEmpty(asList("one", "two", "three"), List.of("one", "two", "three")); in nonEmpty() [all …]
|
/aosp_15_r20/external/golang-protobuf/internal/filedesc/ |
H A D | desc_list_gen.go | 19 List []Enum member 25 return len(p.List) 28 return &p.List[i] 42 if len(p.List) > 0 { 43 p.byName = make(map[protoreflect.Name]*Enum, len(p.List)) 44 for i := range p.List { 45 d := &p.List[i] 56 List []EnumValue member 63 return len(p.List) 66 return &p.List[i] [all …]
|
/aosp_15_r20/packages/modules/AdServices/adservices/tests/unittest/service-core/measurement/src/com/android/adservices/service/measurement/util/ |
D | FilterTest.java | 36 import java.util.List; 48 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue() 56 Map<String, List<String>> triggerFilterMap1 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue() 64 Map<String, List<String>> triggerFilterMap2 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue() 75 sourceFilter, List.of(triggerFilter1, triggerFilter2), true)); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue() 80 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_nonEmptyValues_returnsTrue() 88 Map<String, List<String>> triggerFilterMap = new HashMap<>(); in testIsFilterMatch_nonEmptyValues_returnsTrue() 97 new Filter(mMockFlags).isFilterMatch(sourceFilter, List.of(triggerFilter), true)); in testIsFilterMatch_nonEmptyValues_returnsTrue() 105 "conversion_subdomain", List.of("electronics.megastore")) in testIsFilterMatchV2_insideLookbackWindow_returnsTrue() 106 .addStringListValue("product", List.of("1234", "234")) in testIsFilterMatchV2_insideLookbackWindow_returnsTrue() [all …]
|