Home
last modified time | relevance | path

Searched refs:getAction (Results 1 – 25 of 895) sorted by relevance

12345678910>>...36

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCbSendMessageCalculatorTest.java89 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_DONT_SEND, calculator.getAction()); in testSquareOutside()
103 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testSquareInside()
132 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testTMoThresholdsWithExistingTestGeofence()
164 calculator.getAction()); in testSquareAmbiguous()
171 calculator.getAction()); in testSquareInsideThreshold()
180 calculator.getAction()); in testNone()
192 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testMultipleAddsWithOnceSendAlwaysSend()
196 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testMultipleAddsWithOnceSendAlwaysSend()
200 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testMultipleAddsWithOnceSendAlwaysSend()
210 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_DONT_SEND, calculator.getAction()); in testMultipleAddsWithDontSendThenSend()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DDragScrollListenerTest.java70 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_STARTED); in testDragEvent_DelegateToHandler()
73 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DROP); in testDragEvent_DelegateToHandler()
76 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENDED); in testDragEvent_DelegateToHandler()
79 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_EXITED); in testDragEvent_DelegateToHandler()
88 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler()
94 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler()
100 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler()
103 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler()
106 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_LOCATION); in testDragLocationEvent_DelegateToHandler()
119 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENTERED); in testDragEnterEvent_DelegateToHandler()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java133 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
143 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
157 doReturn(Intent.ACTION_BOOT_COMPLETED).when(mIntent).getAction(); in testOnReceive_actionBootCompleted()
163 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
172 .when(mIntent).getAction(); in testOnReceive_actionDefaultSmsSubscriptionChanged()
181 doReturn(Telephony.Sms.Intents.ACTION_SMS_EMERGENCY_CB_RECEIVED).when(mIntent).getAction(); in testOnReceive_actionSmsEmergencyCbReceived()
192 doReturn(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION).when(mIntent).getAction(); in testOnReceive_smsCbReceivedAction()
204 .when(mIntent).getAction(); in testOnReceive_smsServiceCategoryProgramDataReceivedAction()
213 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_invalidSub()
233 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_firstSub()
[all …]
DCellBroadcastAlertServiceTest.java168 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testHandleCellBroadcastIntent()
196 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testHandleCellBroadcastIntentDomesticRoaming()
224 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testHandleCellBroadcastIntentInternationalRoaming()
251 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testHandleCellBroadcastIntentNonRoaming()
295 mServiceIntentToVerify.getAction()); in testShowNewAlert()
326 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testShowNewAlertChildAbductionWithDefaultLanguage()
354 assertEquals(SHOW_NEW_ALERT_ACTION, mServiceIntentToVerify.getAction()); in testShowNewAlertChildAbduction()
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java92 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentCustom()
114 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntent()
133 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentWithAudio()
137 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImIntentWithAudio()
155 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentWithVideo()
159 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImIntentWithVideo()
180 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImEmailIntent()
184 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImEmailIntent()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DInLineSettingKnob.java64 if (event.getAction() == MotionEvent.ACTION_DOWN) {
70 } else if (event.getAction() == MotionEvent.ACTION_UP
71 || event.getAction() == MotionEvent.ACTION_CANCEL) {
81 if (event.getAction() == MotionEvent.ACTION_DOWN) {
87 } else if (event.getAction() == MotionEvent.ACTION_UP
88 || event.getAction() == MotionEvent.ACTION_CANCEL) {
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java366 String provisioningAction = provisioningIntent.getAction(); in parse()
488 ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
490 ACTION_PROVISION_FINANCED_DEVICE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
492 ACTION_PROVISION_MANAGED_PROFILE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
603 if (!intent.getAction().equals(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE)) { in getSkipOwnershipDisclaimer()
613 if (intent.getAction().equals(ACTION_PROVISION_MANAGED_PROFILE)) { in getReturnBeforePolicyCompliance()
618 if (intent.getAction().equals(ACTION_PROVISION_FINANCED_DEVICE)) { in getReturnBeforePolicyCompliance()
628 if (!intent.getAction().equals(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE)) { in getInitiatorRequestedProvisioningModes()
654 || ACTION_NDEF_DISCOVERED.equals(intent.getAction())) { in shouldSkipEducationScreens()
661 return ACTION_PROVISION_MANAGED_DEVICE.equals(intent.getAction()) in isFullyManagedDeviceAction()
[all …]
DParserUtils.java72 if (!ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE.equals(intent.getAction())) { in extractProvisioningTrigger()
95 if (intent == null || intent.getAction() == null) { in extractProvisioningAction()
101 switch (intent.getAction()) { in extractProvisioningAction()
106 return intent.getAction(); in extractProvisioningAction()
133 + intent.getAction()); in extractProvisioningAction()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DProvisioningIntentProviderTest.java119 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_ADMIN_POLICY_COMPLIANCE); in maybeLaunchDpc_adminIntegratedFlow_policyComplianceActionLaunched()
133 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_PROVISIONING_SUCCESSFUL); in maybeLaunchDpc_legacyFlow_provisioningSuccessfulLaunched()
148 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_PROVISIONING_SUCCESSFUL); in maybeLaunchDpc_legacyFlow_duringSetupWizard_provisioningSuccessfulLaunched()
165 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_ADMIN_POLICY_COMPLIANCE); in maybeLaunchDpc_legacyFlow_duringSetupWizard_policyComplianceResolvable_policyComplianceLaunched()
183 assertThat(intentCaptor.getValue().getAction()).isEqualTo(ACTION_PROVISIONING_SUCCESSFUL); in maybeLaunchDpc_legacyFlow_policyComplianceResolvable_hasProvisioningTrigger_provisioningSuccessfulLaunched()
202 assertThat(intent.getAction()).isEqualTo(ACTION_PROFILE_PROVISIONING_COMPLETE); in createProvisioningIntent_success()
226 return intentArgument.getAction().equals(ACTION_PROVISIONING_SUCCESSFUL); in makeProvisioningSuccessfulIntentResolvable()
/packages/apps/Nfc/src/com/android/nfc/
DBeamShareActivity.java152 if (intent == null || intent.getAction() == null || in parseShareIntentAndFinish()
153 (!intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND) && in parseShareIntentAndFinish()
154 !intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND_MULTIPLE))) return; in parseShareIntentAndFinish()
181 if (intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND)) { in parseShareIntentAndFinish()
265 String action = intent.getAction();
266 if (NfcAdapter.ACTION_ADAPTER_STATE_CHANGED.equals(intent.getAction())) {
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java90 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
93 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
96 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
98 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
100 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
105 } else if (intent.getAction().equals(WifiManager.RSSI_CHANGED_ACTION)) {
107 } else if (intent.getAction().equals(WifiManager.NETWORK_IDS_CHANGED_ACTION)) {
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/
DSliceTester.java79 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsIntentSlice()
116 final PendingIntent togglePendingIntent = mainToggleAction.getAction(); in testSettingsToggleSlice()
121 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsToggleSlice()
161 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsSliderSlice()
197 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsCopyableSlice()
229 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsUnavailableSlice()
/packages/apps/Settings/tests/unit/src/com/android/settings/testutils/
DSliceTester.java78 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsIntentSlice()
115 final PendingIntent togglePendingIntent = mainToggleAction.getAction(); in testSettingsToggleSlice()
120 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsToggleSlice()
160 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsSliderSlice()
196 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsCopyableSlice()
228 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsUnavailableSlice()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCellBroadcastHandler.java152 switch (intent.getAction()) {
167 log("Unhandled broadcast " + intent.getAction());
404 return calculator.getAction() == SEND_MESSAGE_ACTION_AMBIGUOUS in isMessageInAmbiguousState()
405 || calculator.getAction() == SEND_MESSAGE_ACTION_NO_COORDINATES; in isMessageInAmbiguousState()
428 @CbSendMessageCalculator.SendMessageAction int action = calculator.getAction(); in onLocationUnavailable()
632 + CbSendMessageCalculator.getActionString(calculator.getAction())); in performGeoFencing()
634 if (calculator.getAction() == SEND_MESSAGE_ACTION_SENT) { in performGeoFencing()
653 + CbSendMessageCalculator.getActionString(calculator.getAction()) in performGeoFencing()
659 if (calculator.getAction() == SEND_MESSAGE_ACTION_SEND) { in performGeoFencing()
731 if (calculator.getAction() == CbSendMessageCalculator.SEND_MESSAGE_ACTION_SENT) { in broadcastGeofenceMessage()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DHeadsetMediaButton.java127 Log.d(this, "handleCallMediaButton()...%s %s", event.getAction(), event.getRepeatCount()); in handleCallMediaButton()
130 if (event.getAction() == KeyEvent.ACTION_DOWN) { in handleCallMediaButton()
136 } else if (event.getAction() == KeyEvent.ACTION_UP) { in handleCallMediaButton()
145 if (event.getAction() != KeyEvent.ACTION_DOWN) { in handleCallMediaButton()
DDefaultDialerCache.java75 if (Intent.ACTION_PACKAGE_CHANGED.equals(intent.getAction())) {
77 } else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())
80 } else if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
82 } else if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
101 if (Intent.ACTION_USER_REMOVED.equals(intent.getAction())) {
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragDriver.java105 switch (event.getAction()) { in simulateSecondaryMotionEvent()
127 final int action = event.getAction(); in onDragEvent()
175 final int action = ev.getAction(); in onTouchEvent()
196 final int action = ev.getAction(); in onInterceptTouchEvent()
/packages/apps/Dialer/java/com/android/voicemail/
DVoicemailPowerCycleReceiver.java30 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { in onReceive()
32 } else if (Intent.ACTION_SHUTDOWN.equals(intent.getAction())) { in onReceive()
35 throw Assert.createAssertionFailException("unexpected action: " + intent.getAction()); in onReceive()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetProvider.java58 final String action = intent.getAction(); in onReceive()
64 if (getAction().equals(action)) { in onReceive()
85 context.getApplicationContext().registerReceiver(this, new IntentFilter(getAction())); in onEnabled()
88 protected abstract String getAction(); in getAction() method in BaseWidgetProvider
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyConfigReceiver.java34 if (StatsManager.ACTION_STATSD_STARTED.equals(intent.getAction()) in onReceive()
35 || Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { in onReceive()
47 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) { in onReceive()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DBootAndPackageReplacedReceiver.java35 if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction()) in onReceive()
36 || Intent.ACTION_MY_PACKAGE_REPLACED.equals(intent.getAction())) { in onReceive()
45 + intent.getAction()); in onReceive()
/packages/modules/Connectivity/tests/cts/net/api23Test/src/android/net/cts/api23test/
DConnectivityReceiver.java59 Log.i("ConnectivityReceiver", "Received: " + intent.getAction()); in onReceive()
60 if (ConnectivityManager.CONNECTIVITY_ACTION.equals(intent.getAction())) { in onReceive()
62 } else if (FINAL_ACTION.equals(intent.getAction())) { in onReceive()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemailClientReceiver.java37 "VoicemailClientReceiver.onReceive", "module disabled, ignoring " + intent.getAction()); in onReceive()
40 switch (intent.getAction()) { in onReceive()
45 Assert.fail("Unexpected action " + intent.getAction()); in onReceive()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DFactoryResetConfirmFragmentTest.java116 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_sendsResetIntent()
146 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_pdbManagerNull_sendsResetIntent()
167 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
189 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
220 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java167 assertThat(intent.getAction()).isEqualTo(fakeBrowseAction); in launchPublicStorageIntent_nonNullBrowseIntent_settingsIntent()
183 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_VIEW); in launchImagesIntent_resolveActionViewNull_settingsIntent()
200 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_VIEW); in launchAudioIntent_resolveActionViewNull_settingsIntent()
231 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_MAIN); in launchAppsIntent_forPersonal_settingsIntent()
251 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_MAIN); in launchAppsIntent_forWork_settingsIntent()
280 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_VIEW); in launchDocumentsAndOtherIntent_resolveActionViewNull_settingsIntent()
294 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_MAIN); in launchGamesIntent_settingsIntent()
315 assertThat(intent.getAction()).isEqualTo(Intent.ACTION_VIEW); in launchVideosIntent_resolveActionViewNull_settingsIntent()

12345678910>>...36