Home
last modified time | relevance | path

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

12345678910>>...46

/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/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/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java93 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentCustom()
115 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntent()
134 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentWithAudio()
138 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImIntentWithAudio()
156 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImIntentWithVideo()
160 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImIntentWithVideo()
181 assertEquals(Intent.ACTION_SENDTO, imIntent.getAction()); in testImEmailIntent()
185 assertEquals(Intent.ACTION_SENDTO, secondaryIntent.getAction()); in testImEmailIntent()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java364 String provisioningAction = provisioningIntent.getAction(); in parse()
487 ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
489 ACTION_PROVISION_FINANCED_DEVICE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
491 ACTION_PROVISION_MANAGED_PROFILE.equals(intent.getAction()); in parseMinimalistSupportedProvisioningDataInternal()
602 if (!intent.getAction().equals(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE) in getProvisioningShouldLaunchResultIntent()
603 && !intent.getAction().equals(ACTION_PROVISION_MANAGED_PROFILE)) { in getProvisioningShouldLaunchResultIntent()
613 if (!intent.getAction().equals(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE)) { in getSkipOwnershipDisclaimer()
623 if (intent.getAction().equals(ACTION_PROVISION_MANAGED_PROFILE)) { in getReturnBeforePolicyCompliance()
628 if (intent.getAction().equals(ACTION_PROVISION_FINANCED_DEVICE)) { in getReturnBeforePolicyCompliance()
638 if (!intent.getAction().equals(ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE)) { in getInitiatorRequestedProvisioningModes()
[all …]
DParserUtils.java73 if (!ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SOURCE.equals(intent.getAction())) { in extractProvisioningTrigger()
96 if (intent == null || intent.getAction() == null) { in extractProvisioningAction()
102 switch (intent.getAction()) { in extractProvisioningAction()
107 return intent.getAction(); in extractProvisioningAction()
136 + intent.getAction()); in extractProvisioningAction()
/packages/apps/Launcher3/quickstep/tests/src/com/android/launcher3/taskbar/
DTaskbarHoverToolTipControllerTest.java124 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_ENTER); in onHover_hoverEnterIcon_revealToolTip()
138 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_EXIT); in onHover_hoverExitIcon_closeToolTip()
152 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_ENTER); in onHover_hoverEnterFolderIcon_revealToolTip()
166 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_EXIT); in onHover_hoverExitFolderIcon_closeToolTip()
180 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_EXIT); in onHover_hoverExitFolderOpen_closeToolTip()
195 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_ENTER); in onHover_hoverEnterFolderOpen_noToolTip()
207 when(mMotionEvent.getAction()).thenReturn(MotionEvent.ACTION_HOVER_MOVE); in onHover_hoverMove_noUpdate()
/packages/apps/Car/Launcher/docklib/tests/src/com/android/car/docklib/events/
DDockEventsReceiverTest.java62 when(mIntent.getAction()).thenReturn(null); in onReceive_intentWithNoAction_noOp()
73 when(mIntent.getAction()).thenReturn(action); in onReceive_intentWithActionNotConvertibleToDockEvent_noOp()
82 when(mIntent.getAction()).thenReturn(DockEvent.LAUNCH.toString()); in onReceive_intentWithNoData_noOp()
93 when(mIntent.getAction()).thenReturn(DockEvent.LAUNCH.toString()); in onReceive_intentWithDockEventAndData_callController()
/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/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/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DPreBootListener.java31 ProvisionLogger.logd("Received PreBoot broadcast " + intent.getAction()); in onReceive()
32 if (Intent.ACTION_PRE_BOOT_COMPLETED.equals(intent.getAction())) { in onReceive()
42 ProvisionLogger.logw("Unexpected intent action: " + intent.getAction()); in onReceive()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DDeviceManagementRoleHolderUpdaterHelper.java67 managedProvisioningIntent.getAction())) { in shouldStartRoleHolderUpdater()
69 + "action is unsupported: " + managedProvisioningIntent.getAction()); in shouldStartRoleHolderUpdater()
125 managedProvisioningIntent.getAction())) { in shouldPlatformDownloadRoleHolder()
128 + managedProvisioningIntent.getAction()); in shouldPlatformDownloadRoleHolder()
/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/IntentResolver/java/src/com/android/intentresolver/
DIntentForwarderActivity.java129 if (Intent.ACTION_CHOOSER.equals(intentReceived.getAction())) { in onCreate()
285 return (Intent.ACTION_SENDTO.equals(intent.getAction()) || isViewActionIntent(intent)) in isTextMessageIntent()
290 return Intent.ACTION_DIAL.equals(intent.getAction()) in isDialerIntent()
291 || Intent.ACTION_CALL.equals(intent.getAction()) in isDialerIntent()
292 || Intent.ACTION_CALL_PRIVILEGED.equals(intent.getAction()) in isDialerIntent()
293 || Intent.ACTION_CALL_EMERGENCY.equals(intent.getAction()) in isDialerIntent()
298 return Intent.ACTION_VIEW.equals(intent.getAction()) in isViewActionIntent()
322 if (Intent.ACTION_CHOOSER.equals(forwardIntent.getAction())) { in canForward()
/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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java146 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
157 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChangedOnRebroadcast()
171 doReturn(Intent.ACTION_BOOT_COMPLETED).when(mIntent).getAction(); in testOnReceive_actionBootCompleted()
177 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
187 .when(mIntent).getAction(); in testOnReceive_actionDefaultSmsSubscriptionChanged()
204 doReturn(Telephony.Sms.Intents.ACTION_SMS_EMERGENCY_CB_RECEIVED).when(mIntent).getAction(); in testOnReceive_actionSmsEmergencyCbReceived()
215 doReturn(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION).when(mIntent).getAction(); in testOnReceive_smsCbReceivedAction()
227 .when(mIntent).getAction(); in testOnReceive_smsServiceCategoryProgramDataReceivedAction()
236 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_invalidSub()
268 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_firstSub()
[all …]
/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/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothStateReceiver.java80 String action = intent.getAction(); in onReceive()
179 if (BluetoothLeAudio.ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED.equals(intent.getAction())) { in handleConnectionStateChanged()
182 } else if (BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED.equals(intent.getAction())) { in handleConnectionStateChanged()
185 } else if (BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED.equals(intent.getAction())) { in handleConnectionStateChanged()
221 if (BluetoothLeAudio.ACTION_LE_AUDIO_ACTIVE_DEVICE_CHANGED.equals(intent.getAction())) { in handleActiveDeviceChanged()
224 } else if (BluetoothHearingAid.ACTION_ACTIVE_DEVICE_CHANGED.equals(intent.getAction())) { in handleActiveDeviceChanged()
227 } else if (BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED.equals(intent.getAction())) { in handleActiveDeviceChanged()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DNoReceiveSmsPermissionTest.java207 if (TELEPHONY_SMS_RECEIVED.equals(intent.getAction())) { in onReceive()
210 } else if (MESSAGE_STATUS_RECEIVED_ACTION.equals(intent.getAction())) { in onReceive()
212 } else if (MESSAGE_SENT_ACTION.equals(intent.getAction())) { in onReceive()
215 Log.w(LOG_TAG, String.format("unknown intent received: %s", intent.getAction())); in onReceive()
277 if (APP_SPECIFIC_SMS_RECEIVED_ACTION.equals(intent.getAction())) { in onReceive()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDragDriver.java105 switch (event.getAction()) { in simulateSecondaryMotionEvent()
127 final int action = event.getAction(); in onDragEvent()
178 final int action = ev.getAction(); in onTouchEvent()
202 final int action = ev.getAction(); in onInterceptTouchEvent()
/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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/recyclerview/
DListItemUtils.java56 toCarUiContentListItemActionV1(contentItem.getAction())); in toStaticListItem()
70 if (contentItem.getAction() == ContentListItemOEMV1.Action.ICON) { in toStaticListItem()
112 toCarUiContentListItemActionV2(contentItem.getAction())); in toStaticListItem()
126 if (contentItem.getAction() == ContentListItemOEMV2.Action.ICON) { in toStaticListItem()
266 toOemListItemActionV2(contentItem.getAction())); in toOemListItemV2()
279 if (contentItem.getAction() == CarUiContentListItem.Action.ICON) { in toOemListItemV2()
319 toOemListItemActionV1(contentItem.getAction())); in toOemListItemV1()
332 if (contentItem.getAction() == CarUiContentListItem.Action.ICON) { in toOemListItemV1()
/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/services/Telecomm/src/com/android/server/telecom/
DHeadsetMediaButton.java204 Log.d(this, "handleCallMediaButton()...%s %s", event.getAction(), event.getRepeatCount()); in handleCallMediaButton()
207 if (event.getAction() == KeyEvent.ACTION_DOWN) { in handleCallMediaButton()
213 } else if (event.getAction() == KeyEvent.ACTION_UP) { in handleCallMediaButton()
222 if (event.getAction() != KeyEvent.ACTION_DOWN) { in handleCallMediaButton()
/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()

12345678910>>...46