feat: deliver clean avatar home in 0.6.2 UI debug candidate
Keep the avatar mounted while all connection, permission, privacy and diagnostic controls live in a settings sheet. Save the tested continuous-body renderer, safe transition driver and foreground HELLO/permission workflow from this session. Pin runtime03 for the code14 UI-only candidate; mouth deformation remains unresolved. Add source UI contracts, an optional sensor-free device probe, exact asset import and candidate packaging checks. Portrait binaries and diagnostics remain private and untracked.
This commit is contained in:
@@ -1,4 +1,23 @@
|
||||
package android.graphics
|
||||
class Matrix { fun setScale(x: Float,y: Float,px: Float,py: Float) {} }
|
||||
class SurfaceTexture
|
||||
object BitmapFactory { fun decodeStream(input: java.io.InputStream): Any? = Any() }
|
||||
class SurfaceTexture(textureName: Int=0) {
|
||||
var timestamp = 0L
|
||||
private var listener: ((SurfaceTexture)->Unit)?=null
|
||||
private var handler: android.os.Handler?=null
|
||||
init { lastCreated=this }
|
||||
fun setDefaultBufferSize(w: Int,h: Int) {}
|
||||
fun setOnFrameAvailableListener(listener: (SurfaceTexture)->Unit,handler: android.os.Handler) { this.listener=listener;this.handler=handler }
|
||||
fun emit(ptsNs: Long) { timestamp=ptsNs;handler?.post { listener?.invoke(this) } }
|
||||
fun updateTexImage() {}
|
||||
fun getTransformMatrix(matrix: FloatArray) { matrix.fill(0f);listOf(0,5,10,15).forEach { matrix[it]=1f } }
|
||||
fun release() { released++ }
|
||||
companion object { var lastCreated: SurfaceTexture?=null;var released=0 }
|
||||
}
|
||||
class Bitmap(val width: Int=40,val height: Int=22) {
|
||||
fun getPixels(pixels: IntArray,offset: Int,stride: Int,x: Int,y: Int,w: Int,h: Int) { pixels.fill(0x80aa6644.toInt()) }
|
||||
fun recycle() { BitmapFactory.recycled++ }
|
||||
}
|
||||
object BitmapFactory {
|
||||
var recycled=0;var wrongSize=false
|
||||
fun decodeStream(input: java.io.InputStream): Bitmap = Bitmap(if(wrongSize) 41 else 40,22)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user