/aosp12/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
H A D | CbSendMessageCalculatorTest.java | 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() 222 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testMultipleAddsWithDontSendThenSend() 244 assertEquals(CbSendMessageCalculator.SEND_MESSAGE_ACTION_SEND, calculator.getAction()); in testMultipleAddsWithAmbiguousToDontSend() [all …]
|
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
H A 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() 119 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENTERED); in testDragEnterEvent_DelegateToHandler() 126 assertTrue(mDragHandler.mLastDropEvent.getAction() == DragEvent.ACTION_DRAG_ENTERED); in testDragEnterEvent_DelegateToHandler() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | TestedScreen.java | 42 if (LaunchpadActivity.FORWARD_RESULT.equals(getIntent().getAction())) { in onCreate() 50 } else if (DELIVER_RESULT.equals(getIntent().getAction())) { in onCreate() 56 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in onCreate() 71 if (CLEAR_TASK.equals(getIntent().getAction())) { in onResume() 99 if (CLEAR_TASK.equals(getIntent().getAction())) { 112 if (WAIT_BEFORE_FINISH.equals(getIntent().getAction())) { in queueIdle() 115 } else if (CLEAR_TASK.equals(getIntent().getAction())) { in queueIdle()
|
H A D | LocalReceiver.java | 36 if (BroadcastTest.BROADCAST_FAIL_REGISTER.equals(intent.getAction())) { in onReceive() 45 } else if (BroadcastTest.BROADCAST_FAIL_BIND.equals(intent.getAction())) { in onReceive() 61 } else if (LaunchpadActivity.BROADCAST_REPEAT.equals(intent.getAction())) { in onReceive()
|
/aosp12/build/make/tools/product_config/test/com/android/build/config/ |
H A D | OptionsTest.java | 44 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testErrorMissingLast() 57 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testErrorMissingNotLast() 70 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testErrorNotNumeric() 83 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testErrorInvalidError() 96 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testErrorOne() 109 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testWarningOne() 122 Assert.assertEquals(Options.Action.DEFAULT, options.getAction()); in testHideOne()
|
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A 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) {
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/ |
H A D | ContactsUtilsTests.java | 92 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()
|
/aosp12/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
H A D | CellBroadcastReceiverTest.java | 133 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() 173 .when(mIntent).getAction(); in testOnReceive_actionDefaultSmsSubscriptionChanged() 193 doReturn(Telephony.Sms.Intents.SMS_CB_RECEIVED_ACTION).when(mIntent).getAction(); in testOnReceive_smsCbReceivedAction() 205 .when(mIntent).getAction(); in testOnReceive_smsServiceCategoryProgramDataReceivedAction() 214 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_invalidSub() 234 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_firstSub() 267 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifSystemUser_carrierChange() 291 doReturn("An invalid action").when(mIntent).getAction(); in testInitializeSharedPreference_ifNotSystemUser() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/ |
H A 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()
|
/aosp12/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
H A D | ParserUtils.java | 72 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()
|
H A D | ExtrasProvisioningDataParser.java | 366 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 …]
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | CarrierSignalAgentTest.java | 182 assertEquals(ACTION_CARRIER_SIGNAL_PCO_VALUE, dcErrorIntent.getAction()); in testNotifyManifestReceivers() 186 assertEquals(ACTION_CARRIER_SIGNAL_PCO_VALUE, pcoReceiverIntent.getAction()); in testNotifyManifestReceivers() 191 legacyReceiverIntent.getAction()); in testNotifyManifestReceivers() 224 assertEquals(TelephonyIntents.ACTION_CARRIER_SIGNAL_PCO_VALUE, intent.getAction()); in testLegacyConversionSupport() 259 intent.getAction()); in testLegacyConversionSupport() 275 assertEquals(TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET, intent.getAction()); in testLegacyConversionSupport() 288 intent.getAction()); in testLegacyConversionSupport() 333 mCaptorIntent.getValue().getAction()); in testNotifyRuntimeReceivers() 359 argThat(o -> Objects.equals(o.getAction(), ACTION_CARRIER_SIGNAL_PCO_VALUE)), in testNotify() 371 assertEquals(ACTION_CARRIER_SIGNAL_PCO_VALUE, mCaptorIntent.getValue().getAction()); in testNotify() [all …]
|
/aosp12/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
H A D | AnomalyConfigReceiver.java | 34 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()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/receiver/ |
H A 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()
|
/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
H A 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()
|
/aosp12/packages/modules/Connectivity/tests/cts/net/api23Test/src/android/net/cts/api23test/ |
H A 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()
|
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/ |
H A D | PluginManagerImpl.java | 96 addPluginListener(PluginManager.Helper.getAction(cls), listener, cls, allowMultiple); in addPluginListener() 153 if (Intent.ACTION_USER_UNLOCKED.equals(intent.getAction())) { in onReceive() 159 } else if (DISABLE_PLUGIN.equals(intent.getAction())) { in onReceive() 181 if (Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction()) in onReceive() 194 if (Intent.ACTION_PACKAGE_ADDED.equals(intent.getAction()) in onReceive() 195 || Intent.ACTION_PACKAGE_CHANGED.equals(intent.getAction()) in onReceive() 196 || Intent.ACTION_PACKAGE_REPLACED.equals(intent.getAction())) { in onReceive()
|
/aosp12/frameworks/base/core/java/com/android/internal/app/ |
H A D | IntentForwarderActivity.java | 129 if (Intent.ACTION_CHOOSER.equals(intentReceived.getAction())) { in onCreate() 274 return (Intent.ACTION_SENDTO.equals(intent.getAction()) || isViewActionIntent(intent)) in isTextMessageIntent() 279 return Intent.ACTION_DIAL.equals(intent.getAction()) in isDialerIntent() 280 || Intent.ACTION_CALL.equals(intent.getAction()) in isDialerIntent() 281 || Intent.ACTION_CALL_PRIVILEGED.equals(intent.getAction()) in isDialerIntent() 282 || Intent.ACTION_CALL_EMERGENCY.equals(intent.getAction()) in isDialerIntent() 287 return Intent.ACTION_VIEW.equals(intent.getAction()) in isViewActionIntent() 311 if (Intent.ACTION_CHOOSER.equals(forwardIntent.getAction())) { in canForward()
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | HeadsetMediaButton.java | 127 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()
|
/aosp12/packages/apps/Car/libs/car-assist-lib/src/com/android/car/assist/payloadhandlers/ |
H A D | NotificationPayloadHandler.java | 109 public Action getAction(Notification notification, int semanticAction) { in getAction() method in NotificationPayloadHandler 129 public Action getAction(Bundle args, int semanticAction) { in getAction() method in NotificationPayloadHandler 131 return getAction(notification, semanticAction); in getAction() 210 return writeReply(getAction(args, Action.SEMANTIC_ACTION_REPLY), reply); in writeReply()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | SuspendPackagesTest.java | 146 Log.d(TAG, "AppCommunicationReceiver#onReceive: " + intent.getAction()); in onReceive() 301 ACTION_REPORT_MY_PACKAGE_SUSPENDED, intentFromApp.getAction()); in testMyPackageSuspendedUnsuspended() 307 ACTION_REPORT_MY_PACKAGE_UNSUSPENDED, intentFromApp.getAction()); in testMyPackageSuspendedUnsuspended() 318 ACTION_REPORT_MY_PACKAGE_SUSPENDED, intentFromApp.getAction()); in testUpdatingAppExtras() 326 ACTION_REPORT_MY_PACKAGE_SUSPENDED, intentFromApp.getAction()); in testUpdatingAppExtras() 347 ACTION_REPORT_TEST_ACTIVITY_STARTED, intentFromApp.getAction()); in testActivityStoppedOnSuspend() 351 ACTION_REPORT_TEST_ACTIVITY_STOPPED, intentFromApp.getAction()); in testActivityStoppedOnSuspend() 537 assertEquals(ACTION_REPORT_MY_PACKAGE_SUSPENDED, intentFromApp.getAction()); in testPackageUnsuspendedOnAddingDeviceOwner() 540 assertEquals(ACTION_REPORT_MY_PACKAGE_UNSUSPENDED, intentFromApp.getAction()); in testPackageUnsuspendedOnAddingDeviceOwner() 551 assertEquals(ACTION_REPORT_MY_PACKAGE_SUSPENDED, intentFromApp.getAction()); in testPackageUnsuspendedOnAddingProfileOwner() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/test-apps/SuspendTestApp/src/com/android/servicestests/apps/suspendtestapp/ |
H A D | SuspendTestReceiver.java | 43 Log.d(TAG, "Received action " + intent.getAction()); in onReceive() 45 switch (intent.getAction()) { in onReceive() 68 Log.e(TAG, "Unknown action: " + intent.getAction()); in onReceive()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/widget/ |
H A 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
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
H A 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()
|