Home
last modified time | relevance | path

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

12

/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/rs/rsov/compiler/
DBuiltin.cpp287 Instruction *transform(CapabilityInst *inst) override { in transform() argument
289 if (inst->mOperand1 == Capability::Addresses || in transform()
290 inst->mOperand1 == Capability::Linkage || in transform()
291 inst->mOperand1 == Capability::Kernel) { in transform()
294 return inst; in transform()
297 Instruction *transform(ExtInstImportInst *inst) override { in transform() argument
298 if (inst->mOperand1.compare("OpenCL.std") == 0) { in transform()
301 return inst; in transform()
304 Instruction *transform(InBoundsPtrAccessChainInst *inst) override { in transform() argument
308 auto newInst = mBuilder.MakeInBoundsAccessChain(inst->mResultType, in transform()
[all …]
DGlobalAllocSPIRITPass.cpp149 Instruction *inst = nullptr; in transform() local
165 inst = mBuilder.MakeLoad(UInt32Ty, LoadPtr); in transform()
166 inst->setId(call->getId()); in transform()
168 inst = call; in transform()
170 return inst; in transform()
DWrapper.cpp234 Instruction *inst = m->lookupByName("__GPUBlock"); in DecorateGlobalBuffer() local
235 if (inst == nullptr) { in DecorateGlobalBuffer()
239 VariableInst *bufferVar = static_cast<VariableInst *>(inst); in DecorateGlobalBuffer()
319 Instruction *inst = m->lookupByName(A.VarName.c_str()); in DecorateGlobalBuffer() local
320 if (inst == nullptr) { in DecorateGlobalBuffer()
323 VariableInst *bufferVar = static_cast<VariableInst *>(inst); in DecorateGlobalBuffer()
346 void visit(TypePointerInst *inst) override { in visit() argument
347 matchAndReplace(inst->mOperand1); in visit()
350 void visit(TypeForwardPointerInst *inst) override { in visit() argument
351 matchAndReplace(inst->mOperand2); in visit()
[all …]
/frameworks/rs/rsov/compiler/spirit/
Dgenerate.py57 def factory_method_prototype(inst, outlined): argument
58 opname = inst['opname']
59 operands = inst.get('operands')
81 def factory_method_body(inst): argument
82 opname = inst['opname']
83 operands = inst.get('operands')
115 def print_factory_method(inst): argument
118 }""" % (factory_method_prototype(inst, False),
119 factory_method_body(inst))
124 for inst in insts:
[all …]
Dmodule.cpp63 CreateInstructionVisitor([&table](Instruction *inst) { in resolveIds() argument
64 if (inst->hasResult()) { in resolveIds()
65 table.insert(std::make_pair(inst->getId(), inst)); in resolveIds()
74 CreateInstructionVisitor([&table, &err](Instruction *inst) { in resolveIds() argument
75 for (auto ref : inst->getAllIdRefs()) { in resolveIds()
362 size_t Module::getSize(Instruction *inst) { in getSize() argument
363 switch (inst->getOpCode()) { in getSize()
365 return getSize(static_cast<TypeVoidInst *>(inst)); in getSize()
367 return getSize(static_cast<TypeIntInst *>(inst)); in getSize()
369 return getSize(static_cast<TypeFloatInst *>(inst)); in getSize()
[all …]
Dtransformer.h62 virtual Instruction *transform(INST_CLASS *inst) { \
63 return static_cast<Instruction *>(inst); \
65 virtual void visit(INST_CLASS *inst) { \
69 if (Instruction *transformed = transform(inst)) { \
Dinstructions.cpp26 IdRef::IdRef(Instruction *inst) : mId(inst->getId()), mInstruction(inst) {} in IdRef() argument
Dcore_defs.h41 IdRef(Instruction *inst);
51 IdResultType(Instruction *inst) : IdRef(inst) {} in IdResultType()
Dentity.cpp28 [&OS](Instruction *inst) -> void { inst->Serialize(OS); })); in Serialize() argument
Dmodule.h78 void registerId(uint32_t id, Instruction *inst) { in registerId() argument
79 mIdTable.insert(std::make_pair(id, inst)); in registerId()
189 size_t getSize(Instruction *inst);
354 for (auto inst : mAnnotations) { in accept() local
355 v->visit(inst); in accept()
390 for (auto inst : mGlobalDefs) { in accept() local
391 v->visit(inst); in accept()
476 for (auto inst : mInsts) { in accept() local
477 v->visit(inst); in accept()
481 Block *addInstruction(Instruction *inst) { in addInstruction() argument
[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()

12