Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListManagedCursorTest.java60 Instrumentation inst = getInstrumentation(); in testKeyScrolling() local
62 int firstVisiblePosition = arrowScroll(inst); in testKeyScrolling()
64 inst.sendCharacterSync(KeyEvent.KEYCODE_BACK); in testKeyScrolling()
65 inst.waitForIdleSync(); in testKeyScrolling()
78 Instrumentation inst = getInstrumentation(); in testKeyScrollingToTouchMode() local
80 int firstVisiblePosition = arrowScroll(inst); in testKeyScrollingToTouchMode()
83 inst.sendCharacterSync(KeyEvent.KEYCODE_BACK); in testKeyScrollingToTouchMode()
84 inst.waitForIdleSync(); in testKeyScrollingToTouchMode()
91 public int arrowScroll(Instrumentation inst) { in arrowScroll() argument
95 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in arrowScroll()
[all …]
DListEmptyViewTest.java56 Instrumentation inst = getInstrumentation(); in testZeroToOne() local
58 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOne()
59 inst.waitForIdleSync(); in testZeroToOne()
66 Instrumentation inst = getInstrumentation(); in testZeroToOneForwardBack() local
68 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToOneForwardBack()
69 inst.waitForIdleSync(); in testZeroToOneForwardBack()
79 inst.sendCharacterSync(KeyEvent.KEYCODE_BACK); in testZeroToOneForwardBack()
80 inst.waitForIdleSync(); in testZeroToOneForwardBack()
88 Instrumentation inst = getInstrumentation(); in testZeroToManyToZero() local
93 inst.invokeMenuActionSync(mActivity, mActivity.MENU_ADD, 0); in testZeroToManyToZero()
[all …]
DListScrollListenerTest.java60 Instrumentation inst = getInstrumentation(); in testKeyScrolling() local
63 inst.waitForIdleSync(); in testKeyScrolling()
67 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling()
69 inst.waitForIdleSync(); in testKeyScrolling()
77 inst.sendKeySync(upDown); in testKeyScrolling()
78 inst.sendKeySync(upUp); in testKeyScrolling()
79 inst.waitForIdleSync(); in testKeyScrolling()
87 inst.sendKeySync(down); in testKeyScrolling()
88 inst.sendKeySync(up); in testKeyScrolling()
89 inst.waitForIdleSync(); in testKeyScrolling()
DListHeterogeneousTest.java52 Instrumentation inst = getInstrumentation(); in testKeyScrolling() local
58 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling()
60 inst.waitForIdleSync(); in testKeyScrolling()
66 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_UP); in testKeyScrolling()
68 inst.waitForIdleSync(); in testKeyScrolling()
DListViewHeightTest.java50 Instrumentation inst = getInstrumentation(); in testButtons() local
65 inst.waitForIdleSync(); in testButtons()
74 inst.waitForIdleSync(); in testButtons()
82 inst.waitForIdleSync(); in testButtons()
/frameworks/base/core/tests/coretests/src/android/util/
DKeyUtils.java40 final Instrumentation inst = test.getInstrumentation(); in tapMenuKey() local
42 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MENU)); in tapMenuKey()
43 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in tapMenuKey()
53 final Instrumentation inst = test.getInstrumentation(); in chordMenuKey() local
60 inst.sendKeySync(pushMenuKey); in chordMenuKey()
61 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, shortcutKeyCode)); in chordMenuKey()
62 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, shortcutKeyCode)); in chordMenuKey()
63 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_MENU)); in chordMenuKey()
72 final Instrumentation inst = test.getInstrumentation(); in longClick() local
74 inst.sendKeySync(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DPAD_CENTER)); in longClick()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java60 Instrumentation inst = getInstrumentation(); in testKeyScrolling() local
63 inst.waitForIdleSync(); in testKeyScrolling()
67 inst.sendCharacterSync(KeyEvent.KEYCODE_DPAD_DOWN); in testKeyScrolling()
69 inst.waitForIdleSync(); in testKeyScrolling()
78 inst.sendKeySync(upDown); in testKeyScrolling()
79 inst.sendKeySync(upUp); in testKeyScrolling()
80 inst.waitForIdleSync(); in testKeyScrolling()
89 inst.sendKeySync(down); in testKeyScrolling()
90 inst.sendKeySync(up); in testKeyScrolling()
91 inst.waitForIdleSync(); in testKeyScrolling()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DContentObserverController.java235 JobInstance inst = mJobs.valueAt(i); in onChange() local
236 if (inst.mChangedUris == null) { in onChange()
237 inst.mChangedUris = new ArraySet<>(); in onChange()
239 if (inst.mChangedUris.size() < MAX_URIS_REPORTED) { in onChange()
240 inst.mChangedUris.add(uri); in onChange()
242 if (inst.mChangedAuthorities == null) { in onChange()
243 inst.mChangedAuthorities = new ArraySet<>(); in onChange()
245 inst.mChangedAuthorities.add(uri.getAuthority()); in onChange()
246 inst.scheduleLocked(); in onChange()
412 JobInstance inst = obs.mJobs.valueAt(j); in dumpControllerStateLocked() local
[all …]
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java274 Instrumentation inst = test.getInstrumentation(); in tapView() local
281 inst.sendPointerSync(event); in tapView()
282 inst.waitForIdleSync(); in tapView()
288 inst.sendPointerSync(event); in tapView()
289 inst.waitForIdleSync(); in tapView()
293 inst.sendPointerSync(event); in tapView()
294 inst.waitForIdleSync(); in tapView()
314 Instrumentation inst = test.getInstrumentation(); in touchAndCancelView() local
321 inst.sendPointerSync(event); in touchAndCancelView()
322 inst.waitForIdleSync(); in touchAndCancelView()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractE2ETest.java116 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in typefaceCacheTest() local
117 Context ctx = inst.getTargetContext(); in typefaceCacheTest()
120 inst.runOnMainSync(() -> { in typefaceCacheTest()
125 inst.waitForIdleSync(); in typefaceCacheTest()
131 inst.runOnMainSync(() -> { in typefaceCacheTest()
136 inst.waitForIdleSync(); in typefaceCacheTest()
142 inst.runOnMainSync(() -> { in typefaceCacheTest()
147 inst.waitForIdleSync(); in typefaceCacheTest()
155 Instrumentation inst = InstrumentationRegistry.getInstrumentation(); in typefaceNotCacheTest() local
156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest()
[all …]
/frameworks/base/media/mca/tests/src/android/camera/mediaeffects/tests/functional/
DEffectsVideoCapture.java42 private void captureVideos(String reportTag, Instrumentation inst) throws Exception{ in captureVideos() argument
50 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
52 inst.sendCharacterSync(KeyEvent.KEYCODE_CAMERA); in captureVideos()
58 Instrumentation inst = getInstrumentation(); in testBackEffectsVideoCapture() local
66 Activity act = inst.startActivitySync(intent); in testBackEffectsVideoCapture()
67 captureVideos("Back Camera Video Capture\n", inst); in testBackEffectsVideoCapture()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DSysuiBaseFragmentTest.java70 Instrumentation inst = spy(mRealInstrumentation); in sysuiSetup() local
71 when(inst.getContext()).thenThrow(new RuntimeException( in sysuiSetup()
73 when(inst.getTargetContext()).thenThrow(new RuntimeException( in sysuiSetup()
75 InstrumentationRegistry.registerInstance(inst, InstrumentationRegistry.getArguments()); in sysuiSetup()
DSysuiTestCase.java97 Instrumentation inst = spy(mRealInstrumentation); in SysuiSetup() local
98 when(inst.getContext()).thenAnswer(invocation -> { in SysuiSetup()
102 when(inst.getTargetContext()).thenAnswer(invocation -> { in SysuiSetup()
106 InstrumentationRegistry.registerInstance(inst, InstrumentationRegistry.getArguments()); in SysuiSetup()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockTargetStateAnalysis.java40 public BasicValue naryOperation(AbstractInsnNode inst, @SuppressWarnings("rawtypes") List args) in naryOperation() argument
45 BasicValue base = super.naryOperation(inst, args); in naryOperation()
46 if (!(inst instanceof MethodInsnNode)) { in naryOperation()
50 MethodInsnNode invoke = (MethodInsnNode) inst; in naryOperation()
/frameworks/compile/libbcc/lib/
DRSAddDebugInfoPass.cpp183 for (llvm::Instruction &inst : llvm::instructions(Func)) { in attachDebugInfo()
184 if (auto *allocaInst = llvm::dyn_cast<llvm::AllocaInst>(&inst)) { in attachDebugInfo()
250 for (llvm::Instruction &inst : llvm::instructions(Func)) { in attachDebugInfo()
251 inst.setDebugLoc(llvm::DebugLoc::get(1, 1, ExpandedFunc)); in attachDebugInfo()
/frameworks/base/services/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp518 const auto inst = IncFsDataBlock{ in flashToIncFs()
526 blocks->push_back(inst); in flashToIncFs()
531 const auto inst = IncFsDataBlock{ in flashToIncFs()
539 blocks->push_back(inst); in flashToIncFs()
851 const auto inst = IncFsDataBlock{ in receiver()
859 instructions.push_back(inst); in receiver()
/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterImpl.java1053 final List<ParsedInstrumentation> inst = source.getInstrumentations(); in pkgInstruments() local
1054 for (int i = ArrayUtils.size(inst) - 1; i >= 0; i--) { in pkgInstruments()
1055 if (Objects.equals(inst.get(i).getTargetPackage(), packageName)) { in pkgInstruments()
DPackageSetting.java717 void setInstalled(boolean inst, int userId) {
718 modifyUserState(userId).setInstalled(inst);
/frameworks/native/cmds/lshal/
Dtest.cpp149 const auto& inst) -> ::android::hardware::Return<sp<IBase>> { in SetUp() argument
150 if (inst != "default") return nullptr; in SetUp()