Add URI and main executor boundaries for Telecom host tests

This commit is contained in:
evgeny committed 2026-10-29 13:34:25 +01:00
1 parent 5c33523653
commit f0880ed02a
2 files changed
+16

No files matched your search

@@ -0,0 +1,6 @@
package android.net
data class Uri(private val text: String) {
override fun toString() = text
companion object { fun fromParts(scheme: String, part: String, fragment: String?) = Uri("$scheme:$part") }
}
@@ -0,0 +1,10 @@
package androidx.core.content
import android.content.Context
import android.os.Handler
import android.os.Looper
import java.util.concurrent.Executor
object ContextCompat {
fun getMainExecutor(context: Context) = Executor { check(Handler(Looper.getMainLooper()).post(it)) { "Main executor rejected callback" } }
}