/packages/modules/NetworkStack/tests/lib/multivariant/com/android/testutils/ |
D | TrackRecord.kt | 45 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 …]
|
D | PacketFilter.kt | 36 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()
|
D | MiscAsserts.kt | 33 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/ |
D | TrackRecordTest.kt | 57 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/ |
D | FakeDns.kt | 34 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()
|
D | DevSdkIgnoreRule.kt | 31 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)
|
D | ConcurrentIntepreter.kt | 74 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)
|
D | TestableNetworkCallback.kt | 42 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()
|
D | TestableNetworkStatsProvider.kt | 30 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()
|
D | TestableNetworkStatsProviderBinder.kt | 27 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/ |
D | PermissionListenerMultiplexer.kt | 34 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>()
|
D | UserSensitivityLiveData.kt | 45 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>()
|
D | AppOpLiveData.kt | 39 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()
|
D | UsageStatsLiveData.kt | 39 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/ |
D | AppPermissionViewModel.kt | 96 @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/ |
D | DownloadServiceTest.kt | 90 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/ |
D | writertest.cpp | 58 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/ |
D | KotlinUtils.kt | 124 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()
|
D | AndroidUtils.kt | 66 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/ |
D | LightPackageInfo.kt | 43 val requestedPermissionsFlags: List<Int>, in <lambda>() 44 val uid: Int, in <lambda>() 45 val targetSdkVersion: Int, in <lambda>() 48 val appFlags: Int, in <lambda>()
|
D | LightPermInfo.kt | 39 val protection: Int, 40 val protectionFlags: Int, 41 val flags: Int
|
D | LightPermGroupInfo.kt | 38 val labelRes: Int, 39 val icon: Int, 40 val descriptionRes: Int,
|
D | PermGroupPackagesUiInfo.kt | 31 val nonSystemTotal: Int, 32 val nonSystemGranted: Int
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/ |
D | FooterPreference.kt | 33 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/ |
D | PermissionGroupPreferenceUtils.kt | 48 val granted: Int, 50 val total: Int
|