Home
last modified time | relevance | path

Searched refs:setActivity (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/test-runner/src/android/test/
DActivityInstrumentationTestCase.java76 setActivity(launchActivity(targetPackageName, mActivityClass, null)); in setUp()
82 setActivity(null); in tearDown()
DActivityUnitTestCase.java136 setActivity(null); in startActivity()
160 setActivity(newActivity); in startActivity()
176 setActivity(null); in tearDown()
DActivityInstrumentationTestCase2.java108 setActivity(a); in getActivity()
166 setActivity(null); in tearDown()
DActivityTestCase.java51 protected void setActivity(Activity testActivity) { in setActivity() method in ActivityTestCase
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java117 () -> new ShortcutInfo.Builder(getTestContext(), "id").setActivity(null)); in testShortcutInfoMissingMandatoryFields()
155 .setActivity(new ComponentName(getClientContext().getPackageName(), "s")) in testShortcutInfoMissingMandatoryFields()
164 .setActivity(new ComponentName(getClientContext().getPackageName(), "s")) in testShortcutInfoMissingMandatoryFields()
171 .setActivity(new ComponentName(getClientContext().getPackageName(), "s")) in testShortcutInfoMissingMandatoryFields()
180 .setActivity(new ComponentName(getClientContext().getPackageName(), "s")) in testShortcutInfoMissingMandatoryFields()
189 .setActivity(new ComponentName("xxx", "s")) in testShortcutInfoMissingMandatoryFields()
198 .setActivity(new ComponentName("xxx", "s")) in testShortcutInfoMissingMandatoryFields()
209 .setActivity(new ComponentName(getClientContext(), "s")) in testShortcutInfoMissingMandatoryFields()
217 .setActivity(new ComponentName(getClientContext(), "s")) in testShortcutInfoMissingMandatoryFields()
225 .setActivity(new ComponentName(getClientContext(), "s")) in testShortcutInfoMissingMandatoryFields()
[all …]
DBaseShortcutManagerTest.java1552 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcutExcludedFromLauncher()
1665 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcut()
1673 b.setActivity(activity); in makeShortcut()
1694 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcut()
1702 b.setActivity(activity); in makeShortcut()
1717 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcutWithExtras()
1733 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcutWithCategory()
1749 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeShortcutWithLocusId()
1765 .setActivity(new ComponentName(mClientContext.getPackageName(), "main")) in makeLongLivedShortcut()
2184 q.setActivity(componentName);
DShortcutManagerTest1.java496 s7.setActivity(makeComponent(ShortcutActivity2.class)); in testPushDynamicShortcut()
507 s1_2.setActivity(makeComponent(ShortcutActivity2.class)); in testPushDynamicShortcut()
641 .setActivity(new ComponentName(getCallingPackage(), "abc")) in testPublishWithNoActivity()
2115 .setActivity(new ComponentName(mClientContext, "dummy")) in testGetShortcuts_resolveStrings()
2126 .setActivity(new ComponentName(mClientContext, "dummy")) in testGetShortcuts_resolveStrings()
2162 .setActivity(new ComponentName(mClientContext, ShortcutActivity2.class)) in testGetShortcuts_personsFlag()
5354 .setActivity(makeComponent(ShortcutActivity.class)) in testHandlePackageUpdate_resIdChanged()
5364 .setActivity(makeComponent(ShortcutActivity.class)) in testHandlePackageUpdate_resIdChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/shortcut/
DBubbleShortcutHelper.kt33 .setActivity(ShowBubblesActivity.createComponent(context)) in createShortcut()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/mobile/
DMobileStatusTracker.java112 private void setActivity(int activity) { in setActivity() method in MobileStatusTracker
168 setActivity(direction); in onDataActivity()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DShortcutQueryWrapperTest.java59 .setActivity(COMPONENT_NAME) in setUp()
DAppSearchShortcutInfoTest.java51 .setActivity(activity) in testBuildShortcutAndGetValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskRoleManagerExt.kt71 .setActivity(LaunchNoteTaskActivity.createComponent(context)) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DWifiSignalController.java261 void setActivity(int wifiActivity) { in setActivity() method in WifiSignalController
282 setActivity(state); in onStateChanged()
DNetworkControllerImpl.java1382 controller.setActivity(TelephonyManager.DATA_ACTIVITY_INOUT); in dispatchDemoCommand()
1385 controller.setActivity(TelephonyManager.DATA_ACTIVITY_IN); in dispatchDemoCommand()
1388 controller.setActivity(TelephonyManager.DATA_ACTIVITY_OUT); in dispatchDemoCommand()
1391 controller.setActivity(TelephonyManager.DATA_ACTIVITY_NONE); in dispatchDemoCommand()
1395 controller.setActivity(TelephonyManager.DATA_ACTIVITY_NONE); in dispatchDemoCommand()
DMobileSignalController.java547 void setActivity(int activity) { in setActivity() method in MobileSignalController
/frameworks/base/core/java/android/app/servertransaction/
DPendingTransactionActions.java103 public void setActivity(ActivityClientRecord activity) { in setActivity() method in PendingTransactionActions.StopInfo
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java580 ResolveInfo pkg1ResolveInfo = new ResolveInfoBuilder().setActivity(PACKAGE_1).build(); in testSimStateChangedSimStateReadyThenLoaded()
581 ResolveInfo pkg2ResolveInfo = new ResolveInfoBuilder().setActivity(PACKAGE_2).build(); in testSimStateChangedSimStateReadyThenLoaded()
889 ResolveInfo privilegeBroadcast = new ResolveInfoBuilder().setActivity(PACKAGE_1).build(); in testGetCarrierPackageNameForIntent()
890 ResolveInfo noPrivilegeBroadcast = new ResolveInfoBuilder().setActivity(PACKAGE_2).build(); in testGetCarrierPackageNameForIntent()
894 ResolveInfo privilegeActivity = new ResolveInfoBuilder().setActivity(PACKAGE_3).build(); in testGetCarrierPackageNameForIntent()
895 ResolveInfo noPrivilegeActivity = new ResolveInfoBuilder().setActivity(PACKAGE_4).build(); in testGetCarrierPackageNameForIntent()
1163 public ResolveInfoBuilder setActivity(String packageName) { in setActivity() method in CarrierPrivilegesTrackerTest.ResolveInfoBuilder
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutRequestPinProcessor.java347 inShortcut.setActivity(mService.injectGetDefaultMainActivity( in requestPinShortcutLocked()
506 original.setActivity(mService.getDummyMainActivity(appPackageName)); in directPinShortcut()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsModifierTestsBase.java131 CalculateRequestBuilder setActivity(ActivityRecord activity) { in setActivity() method in LaunchParamsModifierTestsBase.CalculateRequestBuilder
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DMultiInstanceHelperTest.kt72 val shortcutInfo = ShortcutInfo.Builder(context, "id").setActivity(component).build() in getShortcutComponent_validShortcut()
/frameworks/base/core/java/android/content/pm/
DAppSearchShortcutInfo.java337 .setActivity(shortcutInfo.getActivity()) in instance()
469 public Builder setActivity(@Nullable final ComponentName activity) { in setActivity() method in AppSearchShortcutInfo.Builder
DShortcutInfo.java1170 public Builder setActivity(@NonNull ComponentName activity) { in setActivity() method in ShortcutInfo.Builder
1563 public void setActivity(ComponentName activity) { in setActivity() method in ShortcutInfo
/frameworks/base/core/java/android/app/
DFragmentBreadCrumbs.java125 public void setActivity(Activity a) { in setActivity() method in FragmentBreadCrumbs
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerWifiTest.java372 mNetworkController.mWifiSignalController.setActivity(activity); in setWifiActivity()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskFragmentOrganizerController.java776 .setActivity(activity) in onActivityReparentedToTask()
1020 Builder setActivity(@NonNull ActivityRecord activity) { in setActivity() method in TaskFragmentOrganizerController.PendingTaskFragmentEvent.Builder

12