Home
last modified time | relevance | path

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

123

/packages/modules/NetworkStack/tests/lib/multivariant/com/android/testutils/
DTrackRecord.kt45 fun poll(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean = { true }): E? in add()
65 start: Int,
66 private val end: Int
83 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>()
84 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()
85 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()
87 override fun listIterator(index: Int) = ArrayTrackRecordIterator(elements, index, size) in listIterator()
90 override fun subList(fromIndex: Int, toIndex: Int): List<E> = lock.withLock { in listIterator()
102 override fun poll(timeoutMs: Long, pos: Int, predicate: (E) -> Boolean) = lock.withLock { in <lambda>()
107 fun getOrNull(pos: Int, predicate: (E) -> Boolean) = lock.withLock { in <lambda>()
[all …]
DPacketFilter.kt36 class OffsetFilter(val offset: Int, vararg val bytes: Byte) : Predicate<ByteArray> {
80 private tailrec fun findOptionOffset(packet: ByteArray, option: Byte, searchOffset: Int): Int? { in findOptionOffset()
DMiscAsserts.kt33 fun <T> assertLength(expected: Int, got: Array<T>) = got.size.let { len -> in len()
61 fun assertContainsExactly(actual: IntArray, vararg expected: Int) { in assertContainsExactly()
99 fun <T> assertFieldCountEquals(count: Int, clazz: Class<T>) { in assertFieldCountEquals()
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTrackRecordTest.kt57 val record = ArrayTrackRecord<Int>() in <lambda>()
82 val record = ArrayTrackRecord<Int>() in <lambda>()
98 val record = ArrayTrackRecord<Int>() in <lambda>()
115 val record = ArrayTrackRecord<Int>() in <lambda>()
123 val record = ArrayTrackRecord<Int>() in <lambda>()
134 val record = ArrayTrackRecord<Int>() in <lambda>()
150 val record = ArrayTrackRecord<Int>() in <lambda>()
156 fun testPollReturnsImmediately(record: TrackRecord<Int>) { in <lambda>()
175 testPollReturnsImmediately(ArrayTrackRecord<Int>().newReadHead()) in <lambda>()
180 val record = ArrayTrackRecord<Int>() in <lambda>()
[all …]
/packages/modules/NetworkStack/tests/lib/src/com/android/testutils/
DFakeDns.kt34 class DnsEntry(val hostname: String, val type: Int, val addresses: List<InetAddress>) {
35 fun match(host: String, type: Int) = hostname.equals(host) && type == type in match()
41 fun getAnswer(hostname: String, type: Int): DnsEntry? = synchronized(answers) { in match()
45 fun setAnswer(hostname: String, answer: Array<String>, type: Int) = synchronized(answers) { in <lambda>()
73 posHos: Int, in mockAnswer()
74 posType: Int, in mockAnswer()
75 posExecutor: Int, in mockAnswer()
76 posCallback: Int in mockAnswer()
81 var type = if (posType != -1) it.arguments[posType] as Int else TYPE_UNSPECIFIED in mockAnswer()
DDevSdkIgnoreRule.kt31 fun isDevSdkInRange(minExclusive: Int?, maxInclusive: Int?): Boolean { in isDevSdkInRange()
52 private val ignoreClassUpTo: Int? = null,
53 private val ignoreClassAfter: Int? = null
65 annotation class IgnoreAfter(val value: Int)
73 annotation class IgnoreUpTo(val value: Int)
DConcurrentIntepreter.kt74 lineShift: Int = 0, in <lambda>()
168 threadIndex: Int,
170 lineNum: Int,
186 fun MatchResult.strArg(index: Int) = this.groupValues[index].trim()
187 fun MatchResult.intArg(index: Int) = strArg(index).toInt()
188 fun MatchResult.timeArg(index: Int) = INTERPRET_TIME_UNIT * intArg(index)
DTestableNetworkCallback.kt42 private val Int.capabilityName get() = NetworkCapabilities.capabilityNameOf(this) constant
70 data class Losing(override val network: Network, val maxMsToLive: Int) : CallbackEntry()
135 override fun onLosing(network: Network, maxMsToLive: Int) { in onLosing()
196 from: Int = mark, in eventuallyExpect()
205 from: Int = mark, in eventuallyExpectOrNull()
373 capability: Int, in expectLinkPropertiesThat()
382 capability: Int, in expectCapabilitiesWithout()
DTestableNetworkStatsProvider.kt30 data class OnRequestStatsUpdate(val token: Int) : CallbackType()
39 override fun onRequestStatsUpdate(token: Int) { in onRequestStatsUpdate()
51 fun expectOnRequestStatsUpdate(token: Int, timeout: Long = defaultTimeoutMs) { in expectOnRequestStatsUpdate()
84 from: Int = mark, in eventuallyExpect()
DTestableNetworkStatsProviderBinder.kt27 data class OnRequestStatsUpdate(val token: Int) : CallbackType()
34 override fun onRequestStatsUpdate(token: Int) { in onRequestStatsUpdate()
46 fun expectOnRequestStatsUpdate(token: Int) { in expectOnRequestStatsUpdate()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/
DPermissionListenerMultiplexer.kt34 private val callbacks = mutableMapOf<Int, MutableList<PermissionChangeCallback>>() in <lambda>()
37 override fun onPermissionsChanged(uid: Int) { in <lambda>()
43 fun addOrReplaceCallback(oldUid: Int?, newUid: Int, callback: PermissionChangeCallback) { in <lambda>()
50 fun addCallback(uid: Int, callback: PermissionChangeCallback) { in <lambda>()
60 fun removeCallback(uid: Int, callback: PermissionChangeCallback) { in <lambda>()
DUserSensitivityLiveData.kt45 private val uid: Int, in <lambda>()
47 ) : SmartAsyncMediatorLiveData<Map<Int, UidSensitivityState>?>() { in <lambda>()
100 val sensitiveStatePerUid = mutableMapOf<Int, UidSensitivityState>() in <lambda>()
178 companion object : DataRepository<Pair<Int, UserHandle>, UserSensitivityLiveData>() { in <lambda>()
179 override fun newValue(key: Pair<Int, UserHandle>): UserSensitivityLiveData { in <lambda>()
192 operator fun get(uid: Int): UserSensitivityLiveData { in <lambda>()
DAppOpLiveData.kt39 private val uid: Int
40 ) : SmartUpdateMediatorLiveData<Int>() {
53 companion object : DataRepository<Triple<String, String, Int>, AppOpLiveData>() {
54 override fun newValue(key: Triple<String, String, Int>): AppOpLiveData { in newValue()
DUsageStatsLiveData.kt39 private val interval: Int = INTERVAL_MONTHLY in <lambda>()
76 companion object : DataRepository<Pair<Long, Int>, UsageStatsLiveData>() { in <lambda>()
77 override fun newValue(key: Pair<Long, Int>): UsageStatsLiveData { in <lambda>()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DAppPermissionViewModel.kt96 @StringRes messageId: Int, in <lambda>()
97 buttonPressed: Int, in <lambda>()
102 enum class ChangeRequest(val value: Int) { in <lambda>()
112 infix fun andValue(other: ChangeRequest): Int { in <lambda>()
117 enum class ButtonType(val type: Int) { in <lambda>()
134 val detailResIdLiveData = MutableLiveData<Pair<Int, Int?>>() in <lambda>()
491 buttonClicked: Int in <lambda>()
603 fun onDenyAnyWay(changeRequest: ChangeRequest, buttonPressed: Int, oneTime: Boolean) { in <lambda>()
670 private fun getIndividualPermissionDetailResId(group: LightAppPermGroup): Pair<Int, Int> { in <lambda>()
685 ): Int { in <lambda>()
[all …]
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DDownloadServiceTest.kt90 override fun newArray(size: Int) = emptyArray<TestNetwork>() in createFromParcel()
113 private class TestInputStream(private var available: Int = 0) : InputStream() {
117 private val nextAvailableQueue = SynchronousQueue<Int>()
128 fun setAvailable(newAvailable: Int) { in setAvailable()
134 override fun read(): Int { in read()
144 override fun read(b: ByteArray, off: Int, len: Int): Int { in read()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dwritertest.cpp58 TEST(Writer, Int) { in TEST() argument
190 T(writer.Int(0)); in TEST()
240 T(writer.Int(0)); in TEST()
260 ASSERT_THROW(writer.Int(0), AssertException); in TEST()
280 writer.Int(1); in TEST()
294 writer.Int(1); in TEST()
312 T(writer.Int(0)); in TEST()
374 EXPECT_THROW(writer.Int(1), AssertException); in TEST()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/utils/
DKotlinUtils.kt124 compare: (lhs: Preference, rhs: Preference) -> Int, in <lambda>()
326 fun getPackageUid(app: Application, packageName: String, user: UserHandle): Int? { in <lambda>()
685 private fun Int.setFlag(flagToSet: Int): Int { in <lambda>() method
689 private fun Int.clearFlag(flagToSet: Int): Int { in <lambda>() method
821 uid: Int, in <lambda>()
823 mode: Int, in <lambda>()
923 fun NavController.navigateSafe(destResId: Int, args: Bundle? = null) { in navigateSafe()
DAndroidUtils.kt66 vararg flags: Pair<Int, Boolean> in PackageManager()
76 fun UserHandle.getUid(appId: Int): Int { in getUid()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/model/livedatatypes/
DLightPackageInfo.kt43 val requestedPermissionsFlags: List<Int>, in <lambda>()
44 val uid: Int, in <lambda>()
45 val targetSdkVersion: Int, in <lambda>()
48 val appFlags: Int, in <lambda>()
DLightPermInfo.kt39 val protection: Int,
40 val protectionFlags: Int,
41 val flags: Int
DLightPermGroupInfo.kt38 val labelRes: Int,
39 val icon: Int,
40 val descriptionRes: Int,
DPermGroupPackagesUiInfo.kt31 val nonSystemTotal: Int,
32 val nonSystemGranted: Int
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DFooterPreference.kt33 constructor(c: Context, a: AttributeSet, attr: Int): super(c, a, attr)
34 constructor(c: Context, a: AttributeSet, attr: Int, res: Int): super(c, a, attr, res)
/packages/apps/PermissionController/tests/inprocess/src/com/android/permissioncontroller/
DPermissionGroupPreferenceUtils.kt48 val granted: Int,
50 val total: Int

123