Home
last modified time | relevance | path

Searched refs:getter (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/tv/src/com/android/cts/tv/
DTvInputManagerServiceHostTest.java193 private final Function<T, Object> getter; field in TvInputManagerServiceHostTest.CorrespondenceFieldChainBuilder.GetterName
196 private GetterName(Function<T, Object> getter, String name) { in GetterName() argument
197 this.getter = getter; in GetterName()
202 return getter.apply(actual).equals(getter.apply(expected)); in isEqual()
209 name, getter.apply(expected), in diff()
210 getter.apply(actual)); in diff()
221 CorrespondenceFieldChainBuilder<T> addField(Function<T, Object> getter, String name) { in addField() argument
222 getterNames.add(new GetterName(getter, name)); in addField()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/settings/
DSettingsSession.java89 public SettingsSession(final Uri uri, final SettingsGetter<T> getter, in SettingsSession() argument
92 mGetter = getter; in SettingsSession()
97 initialValue = get(uri, getter); in SettingsSession()
151 private static <T> T get(final Uri uri, final SettingsGetter<T> getter) in get() argument
153 return getter.get(getContentResolver(), uri.getLastPathSegment()); in get()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsAnimationTestBase.java153 private <T, V> void assertListElements(ArrayList<T> list, Function<T, V> getter, in assertListElements() argument
156 V value = getter.apply(list.get(i)); in assertListElements()
162 private <T, V> void assertListElements(ArrayList<T> list, Function<T, V> getter, in assertListElements() argument
165 V current = getter.apply(list.get(i)); in assertListElements()
166 V next = getter.apply(list.get(i + 1)); in assertListElements()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/batterystats/
DBatteryUsageStatsTests.java85 Function<AtomsProto.Atom, BatteryUsageStatsAtomsProto> getter) throws Exception { in runBatteryUsageStatsAtomTest() argument
107 final BatteryUsageStatsAtomsProto batteryUsageStats = getter.apply(atom); in runBatteryUsageStatsAtomTest()