Home
last modified time | relevance | path

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

12345678

/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/
DAudioTestHarnessServerModuleTests.java58 assertEquals(mExecutor, mInjector.getInstance(Executor.class)); in getInstance_executor_returnsProperExecutor()
63 assertNotNull(mInjector.getInstance(AudioTestHarnessGrpc.AudioTestHarnessImplBase.class)); in getInstance_AudioTestHarnessBaseImpl_returnsInstance()
68 assertNotNull(mInjector.getInstance(StreamObserverOutputStreamFactory.class)); in getInstance_StreamObserverOutputStreamFactory_returnsInstance()
73 assertNotNull(mInjector.getInstance(AudioSystemService.class)); in getInstance_AudioSystemService_returnsInstance()
78 assertNotNull(mInjector.getInstance(AudioCaptureSessionFactory.class)); in getInstance_AudioCaptureSessionFactory_returnsInstance()
83 assertNotNull(mInjector.getInstance(SharedHostConfiguration.class)); in getInstance_SharedHostConfiguration_returnsInstance()
/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/launcher-helper/src/android/support/test/launcherhelper2/
DLauncherStrategyFactory.java62 public static LauncherStrategyFactory getInstance(Instrumentation instrumentation) { in getInstance() method in LauncherStrategyFactory
63 return getInstance(UiDevice.getInstance(instrumentation)); in getInstance()
72 public static LauncherStrategyFactory getInstance(UiDevice uiDevice) { in getInstance() method in LauncherStrategyFactory
DAllAppsScreenHelper.java37 LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy();
49 mActivityHelper = ActivityHelper.getInstance(); in AllAppsScreenHelper()
50 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in AllAppsScreenHelper()
/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/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()
DWaitForIdleTimeoutRule.java158 Configurator.getInstance().setWaitForIdleTimeout(ms); in setTimeout()
164 return Configurator.getInstance().getWaitForIdleTimeout(); in getTimeout()
176 android.support.test.uiautomator.Configurator.getInstance().setWaitForIdleTimeout(ms); in setTimeout()
182 return android.support.test.uiautomator.Configurator.getInstance() in getTimeout()
/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.java41 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
43 mHelper = UiBenchJankTestsHelper.getInstance(this.getInstrumentation().getContext(), in setUp()
DUiBenchTransitionsJankTests.java44 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
46 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.java96 mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setUp()
125 LauncherStrategyFactory.getInstance(mDevice); in setUp()
254 LockscreenHelper.getInstance().setScreenLockViaShell(PIN, LockscreenHelper.MODE_PIN); in testPinCheckDelay()
269 LockscreenHelper.getInstance().unlockScreen(PIN); in testPinCheckDelay()
275 LockscreenHelper.getInstance().removeScreenLockViaShell(PIN); in testPinCheckDelay()
330 OverviewHelper.getInstance().populateManyRecentApps(); in testAppToRecents()
358 SettingsHelper settingsHelper = SettingsHelper.getInstance(); in testSettingsSearch()
/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/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/screenshot/src/main/java/platform/test/screenshot/
DControlledLooperSingleton.java34 public static ControlledLooper getInstance() { in getInstance() method in ControlledLooperSingleton
/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/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java66 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp()
70 pHelper = PermissionHelper.getInstance(getInstrumentation()); in setUp()
71 pkgHelper = PackageHelper.getInstance(getInstrumentation()); in setUp()
73 mILauncherStrategy = LauncherStrategyFactory.getInstance(mDevice).getLauncherStrategy(); in setUp()
/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/memory/src/com/android/helpers/
DMemhogHelper.java49 mUiDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in startMemhog()
55 UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in startMemhog()
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/
DDeviceConfigHelper.java29 UiDevice device = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); in setConfigValue()

12345678