Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 19 of 19) sorted by relevance

/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerComponentUtils.java53 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in enableAndGetOldState() local
54 final PackageManager packageManager = inst.getContext().getPackageManager(); in enableAndGetOldState()
75 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setState() local
76 updateComponentEnabledSetting(inst.getContext().getPackageManager(), in setState()
84 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in updateComponentEnabledSetting() local
85 inst.getUiAutomation().adoptShellPermissionIdentity( in updateComponentEnabledSetting()
91 inst.getUiAutomation().dropShellPermissionIdentity(); in updateComponentEnabledSetting()
DPhotoPickerPackageUtils.java57 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in getActivityPackageNameFromIntent() local
58 final ResolveInfo ri = inst.getContext().getPackageManager().resolveActivity(intent, 0); in getActivityPackageNameFromIntent()
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DDeviceReportTest.java80 TestInstrumentation inst = new TestInstrumentation(); in testSubmit() local
81 log.submit(inst); in testSubmit()
82 assertEquals("Incorrect result code", RESULT_CODE, inst.mResultCode); in testSubmit()
83 assertNotNull("Bundle missing", inst.mResults); in testSubmit()
84 String metrics = inst.mResults.getString(RESULT_KEY); in testSubmit()
102 TestInstrumentation inst = new TestInstrumentation(); in testFile() local
107 log1.submit(inst); in testFile()
112 log2.submit(inst); in testFile()
117 log3.submit(inst); in testFile()
122 log4.submit(inst); in testFile()
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/
DPinchToZoomTestPlayerListener.java125 void obtainAndSendPointerEvent(Instrumentation inst, int action, int pointerCount, in obtainAndSendPointerEvent() argument
132 inst.sendPointerSync(pointerMotionEvent); in obtainAndSendPointerEvent()
183 Instrumentation inst = new Instrumentation(); in pinchAndZoom() local
185 obtainAndSendPointerEvent(inst, MotionEvent.ACTION_DOWN, 1 /* pointerCount*/, in pinchAndZoom()
187 obtainAndSendPointerEvent(inst, MotionEvent.ACTION_POINTER_DOWN + (pointerProperties[1].id in pinchAndZoom()
199 obtainAndSendPointerEvent(inst, MotionEvent.ACTION_MOVE, 2 /* pointerCount */, in pinchAndZoom()
204 obtainAndSendPointerEvent(inst, MotionEvent.ACTION_POINTER_UP + (pointerProperties[1].id in pinchAndZoom()
207 obtainAndSendPointerEvent(inst, MotionEvent.ACTION_UP, 1 /* pointerCount */, in pinchAndZoom()
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
DPackageInstallationSessionReportedStatsTestsHelper.java46 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in getUserTypeIntegers() local
47 final UserManager userManager = inst.getTargetContext().getSystemService(UserManager.class); in getUserTypeIntegers()
49 final UiAutomation uiAutomation = inst.getUiAutomation(); in getUserTypeIntegers()
65 inst.sendStatus(INST_STATUS_IN_PROGRESS, bundle); in getUserTypeIntegers()
DIncrementalAppErrorStatsTestsHelper.java60 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in getPageIndexToBlock() local
63 inst.sendStatus(INST_STATUS_IN_PROGRESS, bundle); in getPageIndexToBlock()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerCrossProfileSDCardTest.java59 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
60 mContext = inst.getContext(); in setUp()
DStorageManagerCrossProfileUSBTest.java59 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
60 mContext = inst.getContext(); in setUp()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DStableUrisTest.java105 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
106 mDevice = UiDevice.getInstance(inst); in setUp()
330 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setFlag() local
331 final UiDevice uiDevice = UiDevice.getInstance(inst); in setFlag()
341 final Instrumentation inst = androidx.test.InstrumentationRegistry.getInstrumentation(); in getMediaProviderPackageName() local
342 final PackageManager packageManager = inst.getContext().getPackageManager(); in getMediaProviderPackageName()
/cts/tests/tests/mediastress/src/android/mediastress/cts/
DMediaPlayerStressTest.java151 Instrumentation inst = getInstrumentation(); in doTestVideoPlayback() local
171 intent.setClass(inst.getTargetContext(), MediaFrameworkTest.class); in doTestVideoPlayback()
174 Activity act = inst.startActivitySync(intent); in doTestVideoPlayback()
/cts/tools/cts-media-preparer-app/src/android/mediastress/cts/preconditions/app/
DMediaPreparerAppTest.java124 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in testGetResolutions() local
127 inst.sendStatus(INST_STATUS_IN_PROGRESS, maxResBundle); in testGetResolutions()
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c967 u32 inst = r32(func + i * 4); in first_bl() local
968 if ((inst >> 26) == 0x25) { // bl in first_bl()
969 s64 off = inst & ((1u << 26) - 1); in first_bl()
979 int is_adrp(u32 inst) { in is_adrp() argument
980 return ((inst >> 24) & 0x9f) == 0x90; in is_adrp()
983 u64 parse_adrp(u64 p, u32 inst) { in parse_adrp() argument
984 s64 off = ((inst >> 5) & ((1u << 19) - 1)) << 2; in parse_adrp()
985 off |= (inst >> 29) & 3; in parse_adrp()
994 u32 inst = r32(addr); in find_adrp_add() local
995 if (is_adrp(inst)) { in find_adrp_add()
[all …]
/cts/tests/tests/media/decoder/src/android/media/decoder/cts/
DDecoderTestAacFormat.java63 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
64 assertNotNull(inst); in setUp()
DDecoderTestAacDrc.java61 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
62 assertNotNull(inst); in setUp()
63 mResources = inst.getContext().getResources(); in setUp()
DDecoderTestXheAac.java72 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in setUp() local
73 assertNotNull(inst); in setUp()
74 mResources = inst.getContext().getResources(); in setUp()
/cts/tests/tests/gameservice/src/android/service/games/
DGameServiceTest.java756 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in startIntentWithGrant() local
757 final Intent intent = new Intent(inst.getContext(), GetResultActivity.class); in startIntentWithGrant()
760 final UiDevice device = UiDevice.getInstance(inst); in startIntentWithGrant()
761 final GetResultActivity activity = (GetResultActivity) inst.startActivitySync(intent); in startIntentWithGrant()
762 inst.waitForIdleSync(); in startIntentWithGrant()
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java360 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in generateReportFile() local
364 inst.sendStatus(INST_STATUS_IN_PROGRESS, bundle); in generateReportFile()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DTestUtils.java1100 final Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in doEscalation() local
1101 final Intent intent = new Intent(inst.getContext(), GetResultActivity.class); in doEscalation()
1105 final UiDevice device = UiDevice.getInstance(inst); in doEscalation()
1109 final GetResultActivity activity = (GetResultActivity) inst.startActivitySync(intent); in doEscalation()
1111 inst.waitForIdleSync(); in doEscalation()
1122 if (isWatch(inst.getContext().getPackageManager())) { in doEscalation()
1140 if (isWatch(inst.getContext().getPackageManager())) { in doEscalation()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DSplitTests.java481 final InstallMultiple inst = getInstallMultiple(instant, useNaturalAbi).addFile(APK); in testNativeAll() local
483 inst.addFile(apk); in testNativeAll()
485 inst.run(); in testNativeAll()