Home
last modified time | relevance | path

Searched refs:getAction (Results 1 – 25 of 830) 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/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastReceiverTest.java129 doReturn(CellBroadcastReceiver.ACTION_MARK_AS_READ).when(mIntent).getAction(); in testOnReceive_actionMarkAsRead()
138 doReturn(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED).when(mIntent).getAction(); in testOnReceive_actionCarrierConfigChanged()
149 doReturn(CellBroadcastReceiver.CELLBROADCAST_START_CONFIG_ACTION).when(mIntent).getAction(); in testOnReceive_cellbroadcastStartConfigAction()
158 .when(mIntent).getAction(); in testOnReceive_actionDefaultSmsSubscriptionChanged()
167 doReturn(Telephony.Sms.Intents.ACTION_SMS_EMERGENCY_CB_RECEIVED).when(mIntent).getAction(); in testOnReceive_actionSmsEmergencyCbReceived()
178 doReturn(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION).when(mIntent).getAction(); in testOnReceive_smsCbReceivedAction()
190 .when(mIntent).getAction(); in testOnReceive_smsServiceCategoryProgramDataReceivedAction()
199 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser()
212 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifNotSystemUser()
420 doReturn("dummy action").when(mIntent).getAction(); in setContext()
/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/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/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/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.java92 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_sendsResetIntent()
118 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_pdbManagerNull_sendsResetIntent()
137 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_oemUnlockAllowed_sendsResetIntent()
156 assertThat(resetIntent.getAction()).isEqualTo(Intent.ACTION_FACTORY_RESET); in confirmClicked_noOemUnlockAllowed_notProvisioned_sendsResetIntent()
179 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/
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/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java260 if (intent == null || intent.getAction() == null) return; in onReceive()
262 switch (intent.getAction()) { in onReceive()
272 L.w(TAG, "Ignoring unknown broadcast %s", intent.getAction()); in onReceive()
299 if (BluetoothDevice.ACTION_SDP_RECORD.equals(intent.getAction())) { in onReceive()
312 L.w(TAG, "Ignoring unknown broadcast %s", 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/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/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/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/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/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.java158 if (intent == null || intent.getAction() == null) return result; in onStartCommand()
160 final String action = intent.getAction(); in onStartCommand()
203 switch (intent.getAction()) { in hasRequiredArgs()
208 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/
DRotationWallpaperUpdateReceiver.java46 if (intent.getAction() == null in onReceive()
47 || !(intent.getAction().equals(Intent.ACTION_MY_PACKAGE_REPLACED) in onReceive()
48 || intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) in onReceive()
/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