Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/fingerprint/aidl/
DFingerprintEnrollClientTest.java153 PointerContext pc = new PointerContext(); in pointerUp_v1() local
154 pc.pointerId = POINTER_ID; in pointerUp_v1()
155 client.onPointerUp(pc); in pointerUp_v1()
166 PointerContext pc = new PointerContext(); in pointerDown_v1() local
167 pc.pointerId = POINTER_ID; in pointerDown_v1()
168 pc.x = TOUCH_X; in pointerDown_v1()
169 pc.y = TOUCH_Y; in pointerDown_v1()
170 pc.minor = TOUCH_MINOR; in pointerDown_v1()
171 pc.major = TOUCH_MAJOR; in pointerDown_v1()
172 client.onPointerDown(pc); in pointerDown_v1()
[all …]
DFingerprintAuthenticationClientTest.java185 PointerContext pc = new PointerContext(); in pointerUp_v1() local
186 pc.pointerId = POINTER_ID; in pointerUp_v1()
187 client.onPointerUp(pc); in pointerUp_v1()
198 PointerContext pc = new PointerContext(); in pointerDown_v1() local
199 pc.pointerId = POINTER_ID; in pointerDown_v1()
200 pc.x = TOUCH_X; in pointerDown_v1()
201 pc.y = TOUCH_Y; in pointerDown_v1()
202 pc.minor = TOUCH_MINOR; in pointerDown_v1()
203 pc.major = TOUCH_MAJOR; in pointerDown_v1()
204 client.onPointerDown(pc); in pointerDown_v1()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java249 PointF pc = center(); in grow() local
250 return new Quad(factor * (mTopLeft.x - pc.x) + pc.x, in grow()
251 factor * (mTopLeft.y - pc.y) + pc.y, in grow()
252 factor * (mTopRight.x - pc.x) + pc.x, in grow()
253 factor * (mTopRight.y - pc.y) + pc.y, in grow()
254 factor * (mBottomLeft.x - pc.x) + pc.x, in grow()
255 factor * (mBottomLeft.y - pc.y) + pc.y, in grow()
256 factor * (mBottomRight.x - pc.x) + pc.x, in grow()
257 factor * (mBottomRight.y - pc.y) + pc.y); in grow()
/frameworks/libs/binary_translation/assembler/include/berberis/assembler/
Dcommon.h62 uint32_t pc() const { return code_->code_offset(); } in pc() function
78 void Bind(Label* label) { label->Bind(pc()); } in Bind()
83 jumps_.push_back(Jump{recovery_label, pc(), true}); in SetRecoveryPoint()
92 void AddRelocation(uint32_t dst, RelocationType type, uint32_t pc, intptr_t data) { in AddRelocation() argument
93 code_->AddRelocation(dst, type, pc, data); in AddRelocation()
106 uint32_t pc; member
Dcommon_x86.h134 uint32_t addr = pc(); in Align()
197 uint32_t start = pc(); in Jmp()
200 Emit8((offset - 1 - (pc() - start)) & 0xFF); in Jmp()
203 Emit32(offset - 4 - (pc() - start)); in Jmp()
208 uint32_t start = pc(); in Call()
210 Emit32(offset - 4 - (pc() - start)); in Call()
221 uint32_t start = pc(); in Jcc()
224 Emit8(offset - 1 - (pc() - start)); in Jcc()
228 Emit32(offset - 4 - (pc() - start)); in Jcc()
683 int32_t offset = label.position() - pc(); in Call()
[all …]
Dmachine_code.h86 void AddRelocation(uint32_t dst, RelocationType type, uint32_t pc, intptr_t data) { in AddRelocation() argument
87 relocations_.push_back(Relocation{dst, type, pc, data}); in AddRelocation()
110 uint32_t pc; member
Dx86_32.h155 pc() - 4, RelocationType::RelocAbsToDisp32, pc(), reinterpret_cast<intptr_t>(target)); in Call()
178 pc() - 4, RelocationType::RelocAbsToDisp32, pc(), reinterpret_cast<intptr_t>(target)); in Jcc()
193 pc() - 4, RelocationType::RelocAbsToDisp32, pc(), reinterpret_cast<intptr_t>(target)); in Jmp()
/frameworks/native/libs/binder/
DPermissionCache.cpp98 PermissionCache& pc(PermissionCache::getInstance()); in checkPermission() local
100 if (pc.check(&granted, permission, uid) != NO_ERROR) { in checkPermission()
107 pc.cache(permission, uid, granted); in checkPermission()
113 PermissionCache& pc(PermissionCache::getInstance()); in purgeCache() local
114 pc.purge(); in purgeCache()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/aidl/
DFingerprintEnrollClient.java226 public void onPointerDown(PointerContext pc) { in onPointerDown() argument
232 session.getSession().onPointerDownWithContext(pc); in onPointerDown()
234 session.getSession().onPointerDown(pc.pointerId, (int) pc.x, (int) pc.y, pc.minor, in onPointerDown()
235 pc.major); in onPointerDown()
247 public void onPointerUp(PointerContext pc) { in onPointerUp() argument
253 session.getSession().onPointerUpWithContext(pc); in onPointerUp()
255 session.getSession().onPointerUp(pc.pointerId); in onPointerUp()
DFingerprintAuthenticationClient.java316 public void onPointerDown(PointerContext pc) { in onPointerDown() argument
323 session.getSession().onPointerDownWithContext(pc); in onPointerDown()
325 session.getSession().onPointerDown(pc.pointerId, (int) pc.x, (int) pc.y, pc.minor, in onPointerDown()
326 pc.major); in onPointerDown()
338 public void onPointerUp(PointerContext pc) { in onPointerUp() argument
345 session.getSession().onPointerUpWithContext(pc); in onPointerUp()
347 session.getSession().onPointerUp(pc.pointerId); in onPointerUp()
/frameworks/libs/binary_translation/assembler/
Dmachine_code.cc59 intptr_t pc = start + rel.pc; in PerformRelocations() local
60 intptr_t disp = rel.data - pc; in PerformRelocations()
67 uintptr_t fault_addr = start + rel.pc; in PerformRelocations()
/frameworks/compile/mclinker/lib/LD/
DEhFrameHdr.cpp167 SizeTraits<32>::Address pc = 0x0; in computePCBegin() local
170 std::memcpy(&pc, offset, pc_size); in computePCBegin()
175 pc = (pc ^ 0x8000) - 0x8000; in computePCBegin()
182 pc += m_EhFrame.addr() + pFDE.getOffset() + in computePCBegin()
192 return pc; in computePCBegin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsShell.kt174 val pc = MotionEvent.PointerCoords() in obtainMotionEvent() constant
175 pc.x = x in obtainMotionEvent()
176 pc.y = y in obtainMotionEvent()
177 pc.touchMinor = minor in obtainMotionEvent()
178 pc.touchMajor = major in obtainMotionEvent()
179 return MotionEvent.obtain(0, 0, action, 1, arrayOf(pp), arrayOf(pc), in obtainMotionEvent()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/hidl/
DFingerprintDetectClient.java115 public void onPointerDown(PointerContext pc) { in onPointerDown() argument
117 UdfpsHelper.onFingerDown(getFreshDaemon(), (int) pc.x, (int) pc.y, pc.minor, pc.major); in onPointerDown()
121 public void onPointerUp(PointerContext pc) { in onPointerUp() argument
DFingerprintEnrollClient.java176 public void onPointerDown(PointerContext pc) { in onPointerDown() argument
178 UdfpsHelper.onFingerDown(getFreshDaemon(), (int) pc.x, (int) pc.y, pc.minor, pc.major); in onPointerDown()
182 public void onPointerUp(PointerContext pc) { in onPointerUp() argument
DFingerprintAuthenticationClient.java237 public void onPointerDown(PointerContext pc) { in onPointerDown() argument
241 UdfpsHelper.onFingerDown(getFreshDaemon(), (int) pc.x, (int) pc.y, pc.minor, pc.major); in onPointerDown()
253 public void onPointerUp(PointerContext pc) { in onPointerUp() argument
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java1006 final PointerContext pc = new PointerContext(); in onPointerDown() local
1007 pc.x = (int) x; in onPointerDown()
1008 pc.y = (int) y; in onPointerDown()
1009 pc.minor = minor; in onPointerDown()
1010 pc.major = major; in onPointerDown()
1013 mService.onPointerDown(requestId, sensorId, pc); in onPointerDown()
1029 final PointerContext pc = new PointerContext(); in onPointerUp() local
1032 mService.onPointerUp(requestId, sensorId, pc); in onPointerUp()
1060 final PointerContext pc = new PointerContext(); in onPointerDown() local
1061 pc.pointerId = pointerId; in onPointerDown()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java153 final MotionEvent.PointerCoords[] pc = new MotionEvent.PointerCoords[pointerCount]; in movePointer() local
157 pc[i] = pointerCoord; in movePointer()
159 pc[pointerIndex].x += offsetX; in movePointer()
160 pc[pointerIndex].y += offsetY; in movePointer()
167 /* pointerCoords */ pc, in movePointer()
/frameworks/base/services/incremental/
DIncrementalServiceValidation.cpp59 PermissionController pc; in CheckPermissionForDataDelivery() local
60 if (auto packageUid = pc.getPackageUid(packageName, 0); packageUid != uid) { in CheckPermissionForDataDelivery()
71 switch (auto result = pc.noteOp(String16(operation), uid, packageName); result) { in CheckPermissionForDataDelivery()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/
DSinglePointerTouchProcessorTest.kt593 val pc = MotionEvent.PointerCoords() in genPositiveTestCases() constant
594 pc.x = orientation.getNativeX(pointer.onSensor) * scaleFactor in genPositiveTestCases()
595 pc.y = orientation.getNativeY(pointer.onSensor) * scaleFactor in genPositiveTestCases()
596 pc.touchMinor = NATIVE_MINOR * scaleFactor in genPositiveTestCases()
597 pc.touchMajor = NATIVE_MAJOR * scaleFactor in genPositiveTestCases()
598 pc.orientation = orientation.nativeOrientation in genPositiveTestCases()
599 pc in genPositiveTestCases()
682 val pc = MotionEvent.PointerCoords() in obtainMotionEvent() constant
683 pc.x = x in obtainMotionEvent()
684 pc.y = y in obtainMotionEvent()
[all …]
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/fingerprint/
DUdfps.java30 void onPointerDown(PointerContext pc); in onPointerDown() argument
31 void onPointerUp(PointerContext pc); in onPointerUp() argument
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp459 layer_id id, const PositionChange& pc) { in setPosition() argument
460 ALOGV("Layer %d: Setting Position -- x=%f, y=%f", id, pc.x(), pc.y()); in setPosition()
461 t.setPosition(mLayers[id], pc.x(), pc.y()); in setPosition()
577 display_id id, const ProjectionChange& pc) { in setDisplayProjection() argument
578 Rect viewport = Rect(pc.viewport().left(), pc.viewport().top(), pc.viewport().right(), in setDisplayProjection()
579 pc.viewport().bottom()); in setDisplayProjection()
580 Rect frame = Rect(pc.frame().left(), pc.frame().top(), pc.frame().right(), pc.frame().bottom()); in setDisplayProjection()
582 t.setDisplayProjection(mDisplays[id], ui::toRotation(pc.orientation()), viewport, frame); in setDisplayProjection()
/frameworks/base/core/java/android/view/
DMotionEvent.java2090 final PointerCoords pc[] = gSharedTempPointerCoords; in obtain() local
2091 pc[0].clear(); in obtain()
2092 pc[0].x = x; in obtain()
2093 pc[0].y = y; in obtain()
2094 pc[0].pressure = pressure; in obtain()
2095 pc[0].size = size; in obtain()
2101 1, pp, pc); in obtain()
3607 final PointerCoords[] pc = gSharedTempPointerCoords; in addBatch() local
3608 pc[0].clear(); in addBatch()
3609 pc[0].x = x; in addBatch()
[all …]
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dbugdroid.rscript70 float3 pc = img - center;
71 float tmp1 = dot(normal, pc);
73 float tmp2 = (sqrt(length(pc) * length(pc) - tmp1) - radius);
85 float3 pc = img - center;
86 float tmp1 = dot(normal, pc);
88 float tmp2 = (sqrt(length(pc) * length(pc) - tmp1) - radius);
89 if (length(pc - dot(normal, pc) * normal) > radius) {
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp245 const auto& pc = pointerCoords[i]; in PublishAndConsumeMotionEvent() local
246 EXPECT_EQ(pc, motionEvent->getSamplePointerCoords()[i]); in PublishAndConsumeMotionEvent()
248 EXPECT_NEAR(pc.getX() * rawXScale + rawXOffset, motionEvent->getRawX(i), EPSILON); in PublishAndConsumeMotionEvent()
249 EXPECT_NEAR(pc.getY() * rawYScale + rawYOffset, motionEvent->getRawY(i), EPSILON); in PublishAndConsumeMotionEvent()
250 EXPECT_NEAR(pc.getX() * xScale + xOffset, motionEvent->getX(i), EPSILON); in PublishAndConsumeMotionEvent()
251 EXPECT_NEAR(pc.getY() * yScale + yOffset, motionEvent->getY(i), EPSILON); in PublishAndConsumeMotionEvent()
252 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), motionEvent->getPressure(i)); in PublishAndConsumeMotionEvent()
253 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_SIZE), motionEvent->getSize(i)); in PublishAndConsumeMotionEvent()
254 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), motionEvent->getTouchMajor(i)); in PublishAndConsumeMotionEvent()
255 EXPECT_EQ(pc.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), motionEvent->getTouchMinor(i)); in PublishAndConsumeMotionEvent()
[all …]

123