Home
last modified time | relevance | path

Searched refs:inst (Results 1 – 18 of 18) 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/services/core/java/com/android/server/job/controllers/
DContentObserverController.java211 JobInstance inst = mJobs.valueAt(i); in onChange() local
212 if (inst.mChangedUris == null) { in onChange()
213 inst.mChangedUris = new ArraySet<>(); in onChange()
215 if (inst.mChangedUris.size() < MAX_URIS_REPORTED) { in onChange()
216 inst.mChangedUris.add(uri); in onChange()
218 if (inst.mChangedAuthorities == null) { in onChange()
219 inst.mChangedAuthorities = new ArraySet<>(); in onChange()
221 inst.mChangedAuthorities.add(uri.getAuthority()); in onChange()
222 inst.scheduleLocked(); in onChange()
385 JobInstance inst = obs.mJobs.valueAt(j); in dumpControllerStateLocked() local
[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/test-runner/src/android/test/
DTouchUtils.java256 Instrumentation inst = test.getInstrumentation(); in tapView() local
263 inst.sendPointerSync(event); in tapView()
264 inst.waitForIdleSync(); in tapView()
270 inst.sendPointerSync(event); in tapView()
271 inst.waitForIdleSync(); in tapView()
275 inst.sendPointerSync(event); in tapView()
276 inst.waitForIdleSync(); in tapView()
296 Instrumentation inst = test.getInstrumentation(); in touchAndCancelView() local
303 inst.sendPointerSync(event); in touchAndCancelView()
304 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/rs/tests/lldb/tests/harness/
Dutil_lldb.py59 inst = lldb.SBDebugger_Create()
60 inst.SetAsync(False)
61 return inst
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DSysuiBaseFragmentTest.java60 Instrumentation inst = spy(mRealInstrumentation); in SysuiSetup() local
61 when(inst.getContext()).thenThrow(new RuntimeException( in SysuiSetup()
63 when(inst.getTargetContext()).thenThrow(new RuntimeException( in SysuiSetup()
65 InstrumentationRegistry.registerInstance(inst, InstrumentationRegistry.getArguments()); in SysuiSetup()
DSysuiTestCase.java66 Instrumentation inst = spy(mRealInstrumentation); in SysuiSetup() local
67 when(inst.getContext()).thenAnswer(invocation -> { in SysuiSetup()
71 when(inst.getTargetContext()).thenAnswer(invocation -> { in SysuiSetup()
75 InstrumentationRegistry.registerInstance(inst, InstrumentationRegistry.getArguments()); in SysuiSetup()
76 KeyguardUpdateMonitor.disableHandlerCheckForTesting(inst); in SysuiSetup()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockTargetStateAnalysis.java38 public BasicValue naryOperation(AbstractInsnNode inst, @SuppressWarnings("rawtypes") List args) in naryOperation() argument
43 BasicValue base = super.naryOperation(inst, args); in naryOperation()
44 if (!(inst instanceof MethodInsnNode)) { in naryOperation()
48 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/java/com/android/server/pm/
DPackageSettingBase.java306 void setInstalled(boolean inst, int userId) { in setInstalled() argument
307 modifyUserState(userId).installed = inst; in setInstalled()
/frameworks/native/cmds/lshal/
Dtest.cpp143 const auto& inst) -> ::android::hardware::Return<sp<IBase>> { in SetUp() argument
144 if (inst != "default") return nullptr; in SetUp()