Home
last modified time | relevance | path

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

12345678910>>...34

/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/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/Settings/src/com/android/settings/wifi/
DWifiStatusTest.java91 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
94 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
97 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
99 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
101 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
106 } else if (intent.getAction().equals(WifiManager.RSSI_CHANGED_ACTION)) {
108 } else if (intent.getAction().equals(WifiManager.NETWORK_IDS_CHANGED_ACTION)) {
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DWifiStatusTest.java91 if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) {
94 } else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) {
97 } else if (intent.getAction().equals(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)) {
99 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_CONNECTION_CHANGE_ACTION)) {
101 } else if (intent.getAction().equals(WifiManager.SUPPLICANT_STATE_CHANGED_ACTION)) {
106 } else if (intent.getAction().equals(WifiManager.RSSI_CHANGED_ACTION)) {
108 } else if (intent.getAction().equals(WifiManager.NETWORK_IDS_CHANGED_ACTION)) {
DWifiNoInternetDialog.java57 return intent.getAction().equals(ACTION_PROMPT_UNVALIDATED) in isKnownAction()
58 || intent.getAction().equals(ACTION_PROMPT_LOST_VALIDATION) in isKnownAction()
59 || intent.getAction().equals(ACTION_PROMPT_PARTIAL_CONNECTIVITY); in isKnownAction()
73 mAction = intent.getAction(); in onCreate()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java117 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in dispatchesInputEvent_single_toListener()
150 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeys()
159 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeys()
168 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_UP); in handlesRepeatedKeys()
177 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeys()
191 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeyWithIndents()
199 assertThat(event.getAction()).isEqualTo(KeyEvent.ACTION_DOWN); in handlesRepeatedKeyWithIndents()
/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/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearConfirmFragmentTest.java91 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_sendsResetIntent()
117 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_pdbManagerNull_sendsResetIntent()
136 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
155 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
178 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_noOemUnlockAllowed_provisioned_sendsResetIntent()
/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()
158 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsSliderSlice()
194 final PendingIntent primaryPendingIntent = primaryAction.getAction(); in testSettingsCopyableSlice()
226 final PendingIntent primaryPendingIntent = metadata.getPrimaryAction().getAction(); in testSettingsUnavailableSlice()
/packages/services/Telecomm/src/com/android/server/telecom/
DDefaultDialerCache.java73 if (Intent.ACTION_PACKAGE_CHANGED.equals(intent.getAction())) {
75 } else if (Intent.ACTION_PACKAGE_REMOVED.equals(intent.getAction())
78 } else if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
80 } else if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
99 if (Intent.ACTION_USER_REMOVED.equals(intent.getAction())) {
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()
/packages/apps/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java258 if (intent == null || intent.getAction() == null) return; in onReceive()
260 switch (intent.getAction()) { in onReceive()
270 L.w(TAG, "Ignoring unknown broadcast %s", intent.getAction()); in onReceive()
297 if (BluetoothDevice.ACTION_SDP_RECORD.equals(intent.getAction())) { in onReceive()
310 L.w(TAG, "Ignoring unknown broadcast %s", intent.getAction()); in onReceive()
/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/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/Car/Dialer/src/com/android/car/dialer/ui/dialpad/
DKeypadFragment.java118 if (event.getAction() == MotionEvent.ACTION_DOWN) { in onTouch()
120 } else if (event.getAction() == MotionEvent.ACTION_UP) { in onTouch()
132 if (event.getAction() == KeyEvent.ACTION_DOWN && !mIsKeyDown) { in onKey()
135 } else if (event.getAction() == KeyEvent.ACTION_UP && mIsKeyDown) { in onKey()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java195 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_NoServicesFound_IncomingCall()
230 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_NoServicesFound_OutgoingCall()
282 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_DefaultDialer_NoEmergency()
341 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_SystemDialer_Emergency()
411 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_DefaultDialer_FallBackToSystem()
481 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_IncludeExternal()
585 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_Companion()
590 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_Companion()
594 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_Companion()
639 assertEquals(InCallService.SERVICE_INTERFACE, bindIntent.getAction()); in testBindToService_CarModeUI()
[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/apps/Car/Messenger/src/com/android/car/messenger/
DMessengerService.java148 if (intent == null || intent.getAction() == null) return result; in onStartCommand()
150 final String action = intent.getAction(); in onStartCommand()
193 switch (intent.getAction()) { in hasRequiredArgs()
198 L.w(TAG, "Intent %s missing sender-key extra.", intent.getAction()); in hasRequiredArgs()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DSetNewPasswordActivityTest.java158 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PASSWORD); in testLaunchChooseLock_setNewPasswordExtraWithPermission()
188 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PASSWORD); in testLaunchChooseLock_setNewPasswordExtraInvalidValue()
216 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PASSWORD); in testLaunchChooseLock_setNewPasswordExtraNoneComplexity()
243 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PASSWORD); in testLaunchChooseLock_setNewPasswordWithoutExtra()
271 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PARENT_PROFILE_PASSWORD); in testLaunchChooseLock_setNewParentProfilePasswordExtraWithPermission()
298 assertThat(actualIntent.getAction()).isEqualTo(ACTION_SET_NEW_PARENT_PROFILE_PASSWORD); in testLaunchChooseLock_setNewParentProfilePasswordWithoutExtra()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DRotationWallpaperMoveReceiver.java28 if (intent.getAction() == null in onReceive()
29 || !(intent.getAction().equals(Intent.ACTION_MY_PACKAGE_REPLACED) in onReceive()
30 || intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) in onReceive()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetTestUtils.java44 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); in verifyAudioStateBroadcast()
64 Assert.assertEquals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateBroadcast()
100 Assert.assertEquals(BluetoothHeadset.ACTION_ACTIVE_DEVICE_CHANGED, intent.getAction()); in verifyActiveDeviceChangedBroadcast()
/packages/apps/Messaging/src/com/android/messaging/util/
DWakeLockHelper.java84 + intent.getAction() + " opcode: " + opcode in ensure()
91 LogUtil.e(TAG, "WakeLockHelper.ensure called " + intent + " " + intent.getAction() in ensure()
113 + intent.getAction() + " opcode: " + opcode + " sWakeLock: " + mWakeLock in release()

12345678910>>...34