/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CbSendMessageCalculatorTest.java | 89 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/ |
D | DragScrollListenerTest.java | 70 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/ |
D | InLineSettingKnob.java | 64 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/ |
D | ContactsUtilsTests.java | 93 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/ |
D | ExtrasProvisioningDataParser.java | 364 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 …]
|
D | ParserUtils.java | 73 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/ |
D | TaskbarHoverToolTipControllerTest.java | 124 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/ |
D | DockEventsReceiverTest.java | 62 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/ |
D | ProvisioningIntentProviderTest.java | 119 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/ |
D | VoicemailPowerCycleReceiver.java | 30 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/ |
D | PreBootListener.java | 31 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/ |
D | DeviceManagementRoleHolderUpdaterHelper.java | 67 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/ |
D | BootAndPackageReplacedReceiver.java | 35 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/ |
D | IntentForwarderActivity.java | 129 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/ |
D | ConnectivityReceiver.java | 59 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/ |
D | CellBroadcastReceiverTest.java | 146 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/ |
D | VoicemailClientReceiver.java | 37 "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/ |
D | BluetoothStateReceiver.java | 80 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/ |
D | NoReceiveSmsPermissionTest.java | 207 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/ |
D | DragDriver.java | 105 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/ |
D | BaseWidgetProvider.java | 58 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/ |
D | ListItemUtils.java | 56 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/ |
D | WifiStatusTest.java | 90 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/ |
D | HeadsetMediaButton.java | 204 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/ |
D | SliceTester.java | 79 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()
|