Home
last modified time | relevance | path

Searched refs:getField (Results 1 – 25 of 63) sorted by relevance

123

/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowAlertDialogCompat.java52 final Object alertController = ReflectionHelpers.getField(mRealAlertDialog, "mAlert"); in getMessage()
53 return ReflectionHelpers.getField(alertController, "mMessage"); in getMessage()
57 final Object alertController = ReflectionHelpers.getField(mRealAlertDialog, "mAlert"); in getTitle()
58 return ReflectionHelpers.getField(alertController, "mTitle"); in getTitle()
62 final Object alertController = ReflectionHelpers.getField(mRealAlertDialog, "mAlert"); in getView()
63 return ReflectionHelpers.getField(alertController, "mView"); in getView()
/packages/modules/StatsD/statsd/src/
DFieldValue.h92 Field(const Field& from) : mTag(from.getTag()), mField(from.getField()) { in Field()
131 inline int32_t getField() const { in getField() function
168 return mTag == that.getTag() && mField == that.getField();
172 return mTag != that.getTag() || mField != that.getField();
180 if (mField != that.getField()) {
181 return mField < that.getField();
256 return ((mMatcher.getField() & kClearAllPositionMatcherMask) == in isEqualWithoutPositionBits()
257 (that.getMatcher().getField() & kClearAllPositionMatcherMask)); in isEqualWithoutPositionBits()
DHashableDimensionKey.cpp117 hash = android::JenkinsHashMix(hash, android::hash_type((int)fieldValue.mField.getField())); in hashDimension()
179 value.mField.getField() & matcher.mMask); in filterValues()
199 ->mField.setField(value.mField.getField() & matcher.mMask); in filterValues()
223 output->mutableValue(num_matches)->mField.setField(value.mField.getField() & mask); in filterPrimaryKey()
254 links.conditionFields[i].mMatcher.getField()); in getDimensionForCondition()
275 statePrimaryKey->mutableValue(i)->mField.setField(link.stateFields[i].mMatcher.getField()); in getDimensionForState()
376 output += StringPrintf("(%d)%#x->%s ", value.mField.getTag(), value.mField.getField(), in toString()
Dmetadata_util.cpp60 metadataField->set_field(fieldValue.mField.getField()); in writeMetricDimensionKeyToMetadataDimensionKey()
68 metadataField->set_field(fieldValue.mField.getField()); in writeMetricDimensionKeyToMetadataDimensionKey()
/packages/modules/StatsD/statsd/tests/
DLogEvent_test.cpp40 Field getField(int32_t tag, const vector<int32_t>& pos, int32_t depth, in getField() function
225 Field expectedField = getField(100, {1, 1, 1}, 0, {false, false, false}); in TEST_P()
231 expectedField = getField(100, {2, 1, 1}, 0, {false, false, false}); in TEST_P()
237 expectedField = getField(100, {3, 1, 1}, 0, {false, false, false}); in TEST_P()
243 expectedField = getField(100, {4, 1, 1}, 0, {true, false, false}); in TEST_P()
326 Field expectedField = getField(100, {1, 1, 1}, 0, {false, false, false}); in TEST_P()
332 expectedField = getField(100, {2, 1, 1}, 0, {true, false, false}); in TEST_P()
363 Field expectedField = getField(100, {1, 1, 1}, 0, {true, false, false}); in TEST_P()
392 Field expectedField = getField(100, {1, 1, 1}, 0, {true, false, false}); in TEST_P()
453 Field expectedField = getField(100, {1, 1, 1}, 2, {true, false, false}); in TEST_P()
[all …]
DFieldValue_test.cpp90 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
111 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
142 EXPECT_EQ((int32_t)0x02010101, output.getValues()[0].mField.getField()); in TEST()
144 EXPECT_EQ((int32_t)0x02010102, output.getValues()[1].mField.getField()); in TEST()
147 EXPECT_EQ((int32_t)0x02010201, output.getValues()[2].mField.getField()); in TEST()
149 EXPECT_EQ((int32_t)0x02010202, output.getValues()[3].mField.getField()); in TEST()
152 EXPECT_EQ((int32_t)0x02010301, output.getValues()[4].mField.getField()); in TEST()
154 EXPECT_EQ((int32_t)0x02010302, output.getValues()[5].mField.getField()); in TEST()
157 EXPECT_EQ((int32_t)0x00020000, output.getValues()[6].mField.getField()); in TEST()
187 EXPECT_EQ((int32_t)0x02010101, output.getValues()[0].mField.getField()); in TEST()
[all …]
/packages/services/Car/service/src/com/android/car/telemetry/publisher/statsconverters/
DAtomFieldAccessor.java40 @NonNull Function<T, F> getField) { in AtomFieldAccessor() argument
43 mGetField = getField; in AtomFieldAccessor()
74 F getField(@NonNull T atomData) { in getField() method in AtomFieldAccessor
/packages/services/Telephony/tests/src/com/android/phone/
DCallFeaturesSettingTest.java74 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsAvailable_shouldShowFdnMenu()
89 getField("mPhone").set(mActivity, mMockPhone); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
105 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()
113 private Field getField(String fieldName) throws NoSuchFieldException { in getField() method in CallFeaturesSettingTest
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DNotificationCompatUtils.java38 CompatUtils.getField(Notification.class, "VISIBILITY_SECRET");
43 CompatUtils.getField(Notification.class, "CATEGORY_RECOMMENDATION");
48 CompatUtils.getField(Notification.class, "PRIORITY_LOW");
DEditorInfoCompatUtils.java27 private static final Field FIELD_IME_FLAG_FORCE_ASCII = CompatUtils.getField(
31 private static final Field FIELD_HINT_LOCALES = CompatUtils.getField(
DCompatUtils.java55 public static Field getField(final Class<?> targetClass, final String name) { in getField() method in CompatUtils
60 return targetClass.getField(name); in getField()
DSettingsSecureCompatUtils.java24 private static final Field FIELD_ACCESSIBILITY_SPEAK_PASSWORD = CompatUtils.getField(
DIntentCompatUtils.java26 CompatUtils.getField(Intent.class, "ACTION_USER_INITIALIZE"));
DSuggestionsInfoCompatUtils.java27 CompatUtils.getField(SuggestionsInfo.class, "RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS");
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java82 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
97 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
113 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
DWirelessDebuggingEnablerTest.java99 ReflectionHelpers.getField(mWirelessDebuggingEnabler, "mSettingsObserver"); in adbWifiEnabled_switchBarShouldBeChecked()
119 ReflectionHelpers.getField(mWirelessDebuggingEnabler, "mSettingsObserver"); in adbWifiEnabled_switchBarShouldNotBeChecked()
/packages/modules/StatsD/framework/test/unittests/src/android/os/
DStatsDimensionsValueTest.java65 assertThat(sdv.getField()).isEqualTo(tupleField); in testConversionFromStructuredParcel()
71 assertThat(sdvChildren.get(i).getField()).isEqualTo(i + 1); in testConversionFromStructuredParcel()
118 assertThat(sdv.getField()).isEqualTo(tupleField); in testNullTupleArray()
/packages/services/Car/libs/car-test-lib/src/android/car/test/
DApiHelper.java66 member = getField(api); in resolve()
77 member = getField(fixed); in resolve()
206 private static Field getField(String fullyQualifiedFieldName) { in getField() method in ApiHelper
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.cpp622 if (value.mField.getField() == field) { in GetLong()
644 if (value.mField.getField() == field) { in GetInt()
664 if (value.mField.getField() == field) { in GetString()
684 if (value.mField.getField() == field) { in GetBool()
706 if (value.mField.getField() == field) { in GetFloat()
726 if (value.mField.getField() == field) { in GetStorage()
764 result += StringPrintf("%#x", value.mField.getField()) + "->" + value.mValue.toString(); in ToString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DFirmwareVersionDetailPreferenceControllerTest.java73 final long[] hits = ReflectionHelpers.getField(mController, "mHits"); in handleSettingClicked_userRestricted_shouldDoNothing()
84 final long[] hits = ReflectionHelpers.getField(mController, "mHits"); in handleSettingClicked_userNotRestricted_shouldStartActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAddDevicePreferenceControllerTest.java95 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_on_then_off()
112 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_off_then_on()
/packages/services/Car/car-lib/src/com/android/car/internal/
DLargeParcelable.java188 field = parcelableClass.getField(STABLE_AIDL_SHARED_MEMORY_MEMBER); in toLargeParcelable()
266 fieldSharedMemory = parcelableClass.getField(STABLE_AIDL_SHARED_MEMORY_MEMBER); in reconstructStableAIDLParcelable()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DReflectionHelpers.java31 public static <R> R getField(Object object, String fieldName) { in getField() method in ReflectionHelpers
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DDatabaseIndexingUtils.java38 final Field f = clazz.getField(FIELD_NAME_SEARCH_INDEX_DATA_PROVIDER); in getSearchIndexProvider()
/packages/apps/Settings/tests/unit/src/com/android/settings/search/
DDatabaseIndexingUtils.java38 final Field f = clazz.getField(FIELD_NAME_SEARCH_INDEX_DATA_PROVIDER); in getSearchIndexProvider()

123