Home
last modified time | relevance | path

Searched refs:Int (Results 1 – 25 of 185) sorted by relevance

12345678

/cts/tests/tests/widget/src/android/widget/cts/util/
DStretchEdgeUtil.kt41 deltaX: Int, in fling()
42 deltaY: Int in fling()
71 dragX: Int, in dragStretches()
72 dragY: Int in dragStretches()
103 dragX: Int = 0, in dragAndHoldExecute()
104 dragY: Int = 0, in dragAndHoldExecute()
155 dragX: Int = 0, in dragAndHoldKeepsStretch()
156 dragY: Int = 0 in dragAndHoldKeepsStretch()
218 dragStartX: Int, in emulateDragGesture()
219 dragStartY: Int, in emulateDragGesture()
[all …]
/cts/libs/input/src/com/android/cts/input/
DUinputTouchDevice.kt31 private fun rotateFromScreenToTouchDeviceSpace(x: Int, y: Int, display: Display): Point { in rotateFromScreenToTouchDeviceSpace()
52 source: Int,
81 fun sendBtn(btnCode: Int, isDown: Boolean) { in sendBtn()
85 fun sendDown(id: Int, location: Point, toolType: Int? = null) { in sendDown()
93 fun sendMove(id: Int, location: Point) { in sendMove()
98 fun sendUp(id: Int) { in sendUp()
103 fun sendToolType(id: Int, toolType: Int) { in sendToolType()
108 fun sendPressure(pressure: Int) { in sendPressure()
116 fun delay(delayMs: Int) { in delay()
120 fun getDeviceId(): Int { in getDeviceId()
[all …]
DUinputRegisterCommand.kt60 val value: Int,
61 val minimum: Int,
62 val maximum: Int,
63 val fuzz: Int,
64 val flat: Int,
65 val resolution: Int,
94 val id: Int, in toString()
96 val vid: Int, in toString()
97 val pid: Int, in toString()
102 val ffEffectsMax: Int? = null, in toString()
DInputEventMatchers.kt42 fun withPointerCount(count: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withPointerCount()
54 fun withCoordsForPointerIndex(index: Int, pt: PointF): Matcher<MotionEvent> = in withCoords()
81 fun withMotionAction(action: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withMotionAction()
96 fun withMotionAction(action: Int, index: Int): Matcher<MotionEvent> = in withMotionAction()
118 fun withSource(source: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withSource()
128 fun withDeviceId(deviceId: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withDeviceId()
148 fun withFlags(flags: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withFlags()
158 fun withToolType(toolType: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withToolType()
173 fun withKeyCode(keyCode: Int): Matcher<KeyEvent> = object : TypeSafeMatcher<KeyEvent>() { in withKeyCode()
183 fun withEdgeFlags(edgeFlags: Int): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withEdgeFlags()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFutureResultActivity.kt34 private val requests = ConcurrentHashMap<Int, CompletableFuture<Int>>()
37 fun doAndAwaitStart(act: () -> Unit): CompletableFuture<Int> { in doAndAwaitStart()
47 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult()
51 fun startActivityForResult(intent: Intent): CompletableFuture<Int> { in startActivityForResult()
53 val future = CompletableFuture<Int>() in startActivityForResult()
/cts/tests/tests/systemui/src/android/systemui/cts/tv/
DTvTestBase.kt95 flags: Set<Int> = setOf(), in onSetUp()
97 intExtras: Map<String, Int> = mapOf(), in onSetUp()
118 flags: Set<Int> = setOf(), in sendBroadcast()
120 intExtras: Map<String, Int> = mapOf(), in sendBroadcast()
138 flags: Set<Int> = setOf(), in composeAmShellCommand()
140 intExtras: Map<String, Int> = mapOf(), in composeAmShellCommand()
198 pid: Int, in onProcessStarted()
199 processUid: Int, in onProcessStarted()
200 packageUid: Int, in onProcessStarted()
205 override fun onForegroundActivitiesChanged(pid: Int, uid: Int, foreground: Boolean) {} in onForegroundActivitiesChanged()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationHidingVerifierActivity.kt267 requestCode: Int, in <lambda>()
268 resultCode: Int, in <lambda>()
301 override fun getTestTitle(): Int { in <lambda>()
305 override fun getTestInstructions(): Int { in <lambda>()
312 override fun getTestTitle(): Int { in <lambda>()
316 override fun getTestInstructions(): Int { in <lambda>()
324 override fun getTestTitle(): Int { in <lambda>()
328 override fun getTestInstructions(): Int { in <lambda>()
334 override fun getTestTitle(): Int { in <lambda>()
338 override fun getTestInstructions(): Int { in <lambda>()
[all …]
/cts/tests/app/WallpaperTest/src/android/app/cts/wallpapers/
DTestWallpaperService.kt54 var createCount: Int = 0
59 var destroyCount: Int = 0
128 x: Int, in onCommand()
129 y: Int, in onCommand()
130 z: Int, in onCommand()
157 override fun onDesiredSizeChanged(desiredWidth: Int, desiredHeight: Int) { in onDesiredSizeChanged()
180 xPixelOffset: Int, in onOffsetsChanged()
181 yPixelOffset: Int in onOffsetsChanged()
197 format: Int, in onSurfaceChanged()
198 width: Int, in onSurfaceChanged()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DSystemSettings.kt36 fun putInt(contentResolver: ContentResolver?, key: String?, value: Int) { in putInt()
55 fun putInt(user: UserReference, key: String?, value: Int) { in putInt()
69 fun putInt(key: String?, value: Int) { in putInt()
124 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt()
135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt()
142 private fun getIntInner(contentResolver: ContentResolver, key: String): Int { in getIntInner()
150 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getIntInner()
165 fun getInt(user: UserReference, key: String): Int { in getInt()
182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt()
196 fun getInt(key: String): Int { in getInt()
[all …]
DGlobalSettings.kt36 fun putInt(contentResolver: ContentResolver, key: String, value: Int) { in <lambda>()
55 fun putInt(user: UserReference, key: String, value: Int) { in <lambda>()
69 fun putInt(key: String, value: Int) { in <lambda>()
124 fun getInt(contentResolver: ContentResolver, key: String): Int { in <lambda>()
135 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in <lambda>()
142 private fun getIntInner(contentResolver: ContentResolver, key: String): Int { in <lambda>()
150 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in <lambda>()
165 fun getInt(user: UserReference, key: String): Int { in <lambda>()
182 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in <lambda>()
196 fun getInt(key: String): Int { in <lambda>()
[all …]
DSecureSettings.kt36 fun putInt(contentResolver: ContentResolver, key: String, value: Int) { in putInt()
55 fun putInt(user: UserReference, key: String, value: Int) { in putInt()
69 fun putInt(key: String, value: Int) { in putInt()
81 fun getInt(contentResolver: ContentResolver, key: String): Int { in getInt()
92 fun getInt(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getInt()
99 private fun getIntInner(contentResolver: ContentResolver, key: String): Int { in getIntInner()
107 private fun getIntInner(contentResolver: ContentResolver, key: String, defaultValue: Int): Int { in getIntInner()
122 fun getInt(user: UserReference, key: String): Int { in getInt()
139 fun getInt(user: UserReference, key: String, defaultValue: Int): Int { in getInt()
153 fun getInt(key: String): Int { in getInt()
[all …]
/cts/tests/storageaccess/src/android/storageaccess/cts/
DClientActivity.kt38 requestCode: Int, in startActivityForFutureResult()
47 override fun startActivityForResult(intent: Intent?, requestCode: Int, options: Bundle?) { in startActivityForResult()
57 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult()
67 data class Result(val requestCode: Int, val resultCode: Int, val data: Intent?)
/cts/libs/kernelinfo/src/com/android/cts/kernelinfo/
DKernelInfo.kt36 private fun compareMajorMinorVersion(s1: String, s2: String): Int { in compareMajorMinorVersion()
37 val v1: Pair<Int, Int> = getVersionFromString(s1) in compareMajorMinorVersion()
38 val v2: Pair<Int, Int> = getVersionFromString(s2) in compareMajorMinorVersion()
46 private fun getVersionFromString(version: String): Pair<Int, Int> { in getVersionFromString()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DCompanionService.kt45 var currentEvent: Int = -2
50 val associationIdsForConnectedDevices: Collection<Int>
55 val associationIdsForBtBondDevices: MutableSet<Int> = synchronizedSet(mutableSetOf())
57 private val _connectedDevices: MutableMap<Int, AssociationInfo> =
96 var associationId: Int = devicePresenceEvent.associationId in onDevicePresenceEvent()
138 fun removeConnectedDevice(associationId: Int) { in removeConnectedDevice()
167 val associationIdsForConnectedDevices: Collection<Int>
170 val associationIdsForBtBondDevices: Collection<Int>
185 fun waitAssociationToAppear(associationId: Int, timeout: Duration = 1.seconds) {
240 fun forgetDevicePresence(associationId: Int) {
[all …]
DCompanionActivity.kt34 private var result: Pair<Int, Intent?>? = null
48 override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { in onActivityResult()
72 fun waitForActivityResult(): Pair<Int, Intent?> { in startIntentSender()
88 private fun Int.codeToString() = when (this) { in codeToString() method
DTestBase.kt140 ): Int { in createSelfManagedAssociation()
185 fun simulateDeviceEvent(associationId: Int, event: Int) = in simulateDeviceEvent()
188 fun simulateDeviceUuidEvent(uuid: ParcelUuid, event: Int) = in simulateDeviceEvent()
194 fun simulateDeviceEventDeviceLocked(associationId: Int, userId: Int, event: Int, uuid: String) { in simulateDeviceEvent()
201 fun simulateDeviceEventDeviceUnlocked(userId: Int) { in simulateDeviceEventDeviceUnlocked()
205 fun startObservingDevicePresenceByUuid(userId: Int, packageName: String, uuid: String) { in startObservingDevicePresenceByUuid()
212 fun stopObservingDevicePresenceByUuid(userId: Int, packageName: String, uuid: String) { in stopObservingDevicePresenceByUuid()
263 expected: Set<Pair<String, Int>> in assertSelfManagedAssociations()
328 fun assertOnlyPrimaryCompanionDeviceServiceNotified(associationId: Int, appeared: Boolean) { in assertOnlyPrimaryCompanionDeviceServiceNotified()
352 fun assertDevicePresenceEvent(expected: Int, actual: Int) { in assertDevicePresenceEvent()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DRuntimeShaderTests.kt209 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
224 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
238 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
255 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
274 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
305 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
314 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
352 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
359 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
375 { canvas: Canvas, width: Int, height: Int -> canvas.drawRect(rect, paint) }, in <lambda>()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserInfo.kt28 val id: Int?
31 val profileGroupId : Int?
35 val serialNumber : Int?
36 val profileBadge : Int?
38 val restrictedProfileParentId : Int?
41 val flags : Int?
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/annotations/
DEnsureHasPermission.kt43 val minVersion: Int = 0,
46 val maxVersion: Int = Int.MAX_VALUE,
62 val priority: Int = AnnotationPriorityRunPrecedence.EARLY
/cts/tests/tests/companion/multidevice/client/src/android/companion/cts/multidevice/
DBluetoothConnector.kt39 private val serverThreads = mutableMapOf<Int, BluetoothServerThread>()
42 private val clientSockets = mutableMapOf<Int, BluetoothSocket>()
45 fun attachClientSocket(associationId: Int) { in attachClientSocket()
69 fun attachServerSocket(associationId: Int) { in attachServerSocket()
95 private fun getRemoteDevice(associationId: Int): BluetoothDevice { in getRemoteDevice()
104 private fun detachClientSocket(associationId: Int) { in detachClientSocket()
116 private val associationId: Int
DCompanionDeviceManagerSnippet.kt69 fun associate(deviceAddress: String): Int { in associate()
107 fun requestPermissionTransferUserConsent(associationId: Int) { in requestPermissionTransferUserConsent()
127 fun getMyAssociations(): List<Int> { in getMyAssociations()
136 fun disassociate(associationId: Int) { in disassociate()
155 fun startPermissionsSync(associationId: Int) { in startPermissionsSync()
162 fun removeBond(associationId: Int): Boolean { in removeBond()
167 fun attachClientSocket(associationId: Int) { in attachClientSocket()
172 fun attachServerSocket(associationId: Int) { in attachServerSocket()
/cts/tests/input/src/android/input/cts/
DStylusButtonInputEventTest.kt62 mapOf<Int, Int>( in <lambda>()
68 mapOf<Int, Int>( in <lambda>()
239 private fun assertReceivedSystemKey(keycode: Int) { in <lambda>()
254 action: Int, in <lambda>()
255 toolType: Int, in <lambda>()
256 buttonState: Int, in <lambda>()
257 actionButton: Int, in <lambda>()
258 source: Int, in <lambda>()
278 private fun makeEvents(vararg codes: Int): String { in makeEvents()
DModifierKeyRemappingTest.kt82 private fun assertReceivedEventsCorrectlyMapped(numEvents: Int, expectedKeyCode: Int) { in assertReceivedEventsCorrectlyMapped()
119 val remapping: Map<Int, Int> = getModifierKeyRemapping() in testModifierKeyRemapping()
232 private fun remapModifierKey(fromKey: Int, toKey: Int) { in remapModifierKey()
249 private fun getModifierKeyRemapping(): Map<Int, Int> { in getModifierKeyRemapping()
251 ThrowingSupplier<Map<Int, Int>> { inputManager.modifierKeyRemapping }, in getModifierKeyRemapping()
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DCommon.kt50 inline fun assertEquals(a: Int, b: Int) = assertEquals(a.toLong(), b.toLong()) in assertEquals()
65 var migrationStrategy: Int
69 inline fun withStrategy(strategy: Int? = null, body: () -> Unit) { in withStrategy()
/cts/tests/app/shared/src/android/app/cts/
DNotificationTemplateTestBase.kt59 @DimenRes heightDimen: Int? = null, in <lambda>()
81 protected fun createBitmap(width: Int, height: Int): Bitmap = in <lambda>()
169 private fun getAndroidRes(resType: String, resName: String): Int = in <lambda>()
173 protected fun getAndroidRId(idName: String): Int = getAndroidRes("id", idName) in <lambda>()
176 protected fun getAndroidRString(stringName: String): Int = getAndroidRes("string", stringName) in <lambda>()
179 protected fun getAndroidRBool(boolName: String): Int = getAndroidRes("bool", boolName) in <lambda>()
182 protected fun getAndroidRDimen(dimenName: String): Int = getAndroidRes("dimen", dimenName) in <lambda>()

12345678