Home
last modified time | relevance | path

Searched refs:getInstance (Results 1 – 25 of 160) sorted by relevance

1234567

/platform_testing/libraries/system-helpers/commands-helper/src/android/system/helpers/
DCommandsHelper.java47 public static CommandsHelper getInstance() { in getInstance() method in CommandsHelper
54 public static CommandsHelper getInstance(Instrumentation instrumentation) { in getInstance() method in CommandsHelper
80 return UiDevice.getInstance(mInstrumentation).executeShellCommand(command); in executeShellCommand()
107 return getInstance().executeShellCommand(command); in execute()
117 return getInstance().executeShellCommandAndSplitOutput(command, LINE_SEPARATORS); in executeAndSplitLines()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/
DAudioTestHarnessServerModuleTests.java57 assertEquals(mExecutor, mInjector.getInstance(Executor.class)); in getInstance_executor_returnsProperExecutor()
62 assertNotNull(mInjector.getInstance(AudioTestHarnessGrpc.AudioTestHarnessImplBase.class)); in getInstance_AudioTestHarnessBaseImpl_returnsInstance()
67 assertNotNull(mInjector.getInstance(StreamObserverOutputStreamFactory.class)); in getInstance_StreamObserverOutputStreamFactory_returnsInstance()
72 assertNotNull(mInjector.getInstance(AudioSystemService.class)); in getInstance_AudioSystemService_returnsInstance()
77 assertNotNull(mInjector.getInstance(AudioCaptureSessionFactory.class)); in getInstance_AudioCaptureSessionFactory_returnsInstance()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DLauncherStrategyFactory.java61 public static LauncherStrategyFactory getInstance(Instrumentation instrumentation) { in getInstance() method in LauncherStrategyFactory
62 return getInstance(UiDevice.getInstance(instrumentation)); in getInstance()
70 public static LauncherStrategyFactory getInstance(UiDevice uiDevice) { in getInstance() method in LauncherStrategyFactory
DAllAppsScreenHelper.java37 .getInstance(mDevice).getLauncherStrategy();
49 mActivityHelper = ActivityHelper.getInstance(); in AllAppsScreenHelper()
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AllAppsScreenHelper()
/platform_testing/tests/jank/sysapp_wear/src/com/android/wearable/sysapp/janktests/
DWatchFaceJankTest.java44 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
45 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
46 mWfHelper = WatchFaceHelper.getInstance(mDevice, getInstrumentation()); in setUp()
DCardsJankTest.java41 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
42 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
DWatchFacePickerJankTest.java45 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
46 mHelper = SysAppTestHelper.getInstance(mDevice, getInstrumentation()); in setUp()
47 mWfHelper = WatchFaceHelper.getInstance(mDevice, getInstrumentation()); in setUp()
DQuickSettingsJankTest.java52 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
53 mHelper = SysAppTestHelper.getInstance(mDevice, this.getInstrumentation()); in setUp()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DHelperAccessor.java52 HelperManager.getInstance( in get()
58 HelperManager.getInstance( in get()
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/
DAccountHelper.java45 mActivityHelper = ActivityHelper.getInstance(); in AccountHelper()
46 mDeviceHelper = DeviceHelper.getInstance(); in AccountHelper()
47 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AccountHelper()
50 public static AccountHelper getInstance() { in getInstance() method in AccountHelper
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDisableAutofillRule.java38 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in starting()
52 UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()) in finished()
/platform_testing/tests/jank/touch_latency_wear/src/com/android/wearable/touch/janktests/
DBouncingBallJankTest.java35 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
36 mTouchLatencyHelper = TouchLatencyHelper.getInstance(mDevice, getInstrumentation()); in setUp()
/platform_testing/libraries/system-helpers/package-helper/src/android/system/helpers/
DPackageHelper.java37 cmdHelper = CommandsHelper.getInstance(instrumentation); in PackageHelper()
41 public static PackageHelper getInstance(Instrumentation instrumentation) { in getInstance() method in PackageHelper
/platform_testing/tests/jank/uibench/src/com/android/uibench/janktests/
DUiBenchWebView.java42 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
44 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTransitionsJankTests.java45 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
47 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
DUiBenchRenderingJankTests.java46 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
48 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTextJankTests.java45 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
47 mHelper = UiBenchJankTestsHelper.getInstance( in setUp()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DHotseatHelper.java41 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in HotseatHelper()
45 public static HotseatHelper getInstance() { in getInstance() method in HotseatHelper
/platform_testing/tests/perf/PerfTransitionTest/src/com/android/apptransition/tests/
DLatencyTests.java89 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
113 LauncherStrategyFactory.getInstance(mDevice); in setUp()
233 LockscreenHelper.getInstance().setScreenLockViaShell(PIN, LockscreenHelper.MODE_PIN); in testPinCheckDelay()
248 LockscreenHelper.getInstance().unlockScreen(PIN); in testPinCheckDelay()
254 LockscreenHelper.getInstance().removeScreenLockViaShell(PIN); in testPinCheckDelay()
309 OverviewHelper.getInstance().populateManyRecentApps(); in testAppToRecents()
337 SettingsHelper settingsHelper = SettingsHelper.getInstance(); in testSettingsSearch()
/platform_testing/tests/automotive/health/multiuser/src/android/platform/scenario/multiuser/nonui/
DMultiUserConstants.java28 public static final int DEFAULT_INITIAL_USER = MultiUserHelper.getInstance().getInitialUser();
/platform_testing/libraries/system-helpers/device-helper/src/android/system/helpers/
DDeviceHelper.java45 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in DeviceHelper()
48 public static DeviceHelper getInstance() { in getInstance() method in DeviceHelper
/platform_testing/libraries/audio-test-harness/server/src/main/java/com/android/media/audiotestharness/server/javasound/
DJavaSoundModule.java35 bind(JavaAudioSystem.class).toInstance(JavaAudioSystem.getInstance()); in configure()
/platform_testing/libraries/collectors-helper/simpleperf/test/src/com/android/helpers/tests/
DSimpleperfHelperTest.java57 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in teardown()
89 UiDevice uiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in testSimpleperfSuccess()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DDeviceConfigHelper.java29 UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setConfigValue()
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java64 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
68 pHelper = PermissionHelper.getInstance(getInstrumentation()); in setUp()
69 pkgHelper = PackageHelper.getInstance(getInstrumentation()); in setUp()
71 mILauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy(); in setUp()

1234567