Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowAlertDialogCompat.java52 final Object alertController = ReflectionHelpers.getField(realAlertDialog, "mAlert"); in getMessage()
53 return ReflectionHelpers.getField(alertController, "mMessage"); in getMessage()
57 final Object alertController = ReflectionHelpers.getField(realAlertDialog, "mAlert"); in getTitle()
58 return ReflectionHelpers.getField(alertController, "mTitle"); in getTitle()
62 final Object alertController = ReflectionHelpers.getField(realAlertDialog, "mAlert"); in getView()
63 return ReflectionHelpers.getField(alertController, "mView"); in getView()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessenger.java78 if (DBG) Log.d(TAG, "Got response from first fragment: " + snepResponse.getField()); in sendMessage()
79 if (snepResponse.getField() != remoteContinue) { in sendMessage()
81 snepResponse.getField() + ")"); in sendMessage()
99 … if (DBG) Log.d(TAG, "Got response from second fragment: " + snepResponse.getField()); in sendMessage()
100 if (snepResponse.getField() == remoteContinue) { in sendMessage()
122 …"Got continue response after second fragment: and now disconnecting..." + snepResponse.getField()); in sendMessage()
123 if (snepResponse.getField() == remoteContinue) { in sendMessage()
DSnepServer.java162 } else if (request.getField() == SnepMessage.REQUEST_GET) { in handleRequest()
165 } else if (request.getField() == SnepMessage.REQUEST_PUT) { in handleRequest()
169 if (DBG) Log.d(TAG, "Unknown request (" + request.getField() +")"); in handleRequest()
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java64 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetSmallNdef()
95 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testGetLargeNdef()
126 assertEquals(SnepMessage.RESPONSE_EXCESS_DATA, response.getField()); in testGetExcessiveNdef()
157 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testPutSmallNdef()
188 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testPutLargeNdef()
222 assertEquals(SnepMessage.RESPONSE_UNSUPPORTED_VERSION, response.getField()); in testUnsupportedVersion()
258 assertEquals(SnepMessage.RESPONSE_SUCCESS, response.getField()); in testDifferentMinorVersion()
DSnepValidationClientTests.java153 assertEquals(SnepMessage.RESPONSE_NOT_FOUND, response.getField()); in testUnavailable()
173 assertEquals(SnepMessage.RESPONSE_EXCESS_DATA, response.getField()); in testUndeliverable()
/packages/services/Telephony/tests/src/com/android/phone/
DCallFeaturesSettingTest.java72 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsAvailable_shouldShowFdnMenu()
86 getField("mPhone").set(mActivity, mMockPhone); in onResume_iccCardIsNull_shouldNotShowFdnMenu()
101 getField("mPhone").set(mActivity, mMockPhone); in onResume_fdnIsNotAvailable_shouldNotShowFdnMenu()
109 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.java81 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_v2_isMonkeyRun_shouldNotRegisterListener()
96 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_isNotMonkeyRun_shouldRegisterAndRemoveListener()
112 ReflectionHelpers.getField(mSwitchBar, "mSwitchChangeListeners"); in runThroughLifecycle_v2_isNotMonkeyRun_shouldRegisterAndRemoveListener()
DWirelessDebuggingEnablerTest.java97 ReflectionHelpers.getField(mWirelessDebuggingEnabler, "mSettingsObserver"); in adbWifiEnabled_switchBarShouldBeChecked()
117 ReflectionHelpers.getField(mWirelessDebuggingEnabler, "mSettingsObserver"); in adbWifiEnabled_switchBarShouldNotBeChecked()
/packages/apps/Nfc/src/com/android/nfc/sneptest/
DExtDtaSnepServer.java132 } else if (request.getField() == SnepMessage.REQUEST_GET) { in handleRequest()
137 } else if (request.getField() == SnepMessage.REQUEST_PUT) { in handleRequest()
143 if (DBG) Log.d(TAG, "Unknown request (" + request.getField() +")"); in handleRequest()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/firmwareversion/
DFirmwareVersionDetailPreferenceControllerTest.java72 final long[] hits = ReflectionHelpers.getField(mController, "mHits"); in handleSettingClicked_userRestricted_shouldDoNothing()
83 final long[] hits = ReflectionHelpers.getField(mController, "mHits"); in handleSettingClicked_userNotRestricted_shouldStartActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DAddDevicePreferenceControllerTest.java94 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_on_then_off()
111 BroadcastReceiver receiver = ReflectionHelpers.getField( in addDevice_bt_resume_off_then_on()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DTetherPreferenceControllerTest.java100 ReflectionHelpers.getField(mController, "mBluetoothPan"); in goThroughLifecycle_shouldDestoryBluetoothProfile()
166 ReflectionHelpers.getField(mController, "mAirplaneModeObserver"); in airplaneModeOn_shouldUpdateSummaryToOff()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppInfoWithHeaderTest.java95 ReflectionHelpers.getField(mAppInfoWithHeader, "mPackageRemovedReceiver"); in packageRemoved_noAppEntry_shouldFinishActivity()
108 ReflectionHelpers.getField(mAppInfoWithHeader, "mPackageRemovedReceiver"); in packageRemoved_appEntryMatchesPackageName_shouldFinishActivity()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DHttp.java93 String retryAfter = e.getHeaders().getField("Retry-After"); in getOrPost()
206 public @Nullable String getField(@NonNull String key) { in getField() method in Http.Headers
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacUiService.java338 int currentFlags = (Integer) params.getClass().getField("privateFlags").get(params); in disableAnimations()
339 params.getClass().getField("privateFlags").set(params, currentFlags | 0x00000040); in disableAnimations()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobServiceTest.java266 when(intValue.getField()).thenReturn(AnomalyDetectionJobService.STATSD_UID_FILED); in extractUidFromStatsDimensionsValue_extractCorrectUid()
285 when(floatValue.getField()).thenReturn(AnomalyDetectionJobService.STATSD_UID_FILED); in extractUidFromStatsDimensionsValue_wrongFormat_returnNull()
/packages/apps/Settings/src/com/android/settings/
DCryptKeeper.java486 owner_info = service.getField(StorageManager.OWNER_INFO_KEY); in setupUi()
487 … pattern_visible = !("0".equals(service.getField(StorageManager.PATTERN_VISIBLE_KEY))); in setupUi()
488 … password_visible = !("0".equals(service.getField(StorageManager.PASSWORD_VISIBLE_KEY))); in setupUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DCryptKeeper.java486 owner_info = service.getField(StorageManager.OWNER_INFO_KEY); in setupUi()
487 … pattern_visible = !("0".equals(service.getField(StorageManager.PATTERN_VISIBLE_KEY))); in setupUi()
488 … password_visible = !("0".equals(service.getField(StorageManager.PASSWORD_VISIBLE_KEY))); in setupUi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/search/
DDatabaseIndexingUtils.java37 final Field f = clazz.getField(FIELD_NAME_SEARCH_INDEX_DATA_PROVIDER); in getSearchIndexProvider()

12