18034727885
2026-04-27 3a4c1bbb2cf4fb1cdda8a5061b0674f30e7456b4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.example.smart
 
import android.graphics.Rect
import android.util.Log
import androidx.core.util.Pools
import org.junit.Test
 
/**
 * Example local unit test, which will execute on the development machine (host).
 *
 * See [testing documentation](http://d.android.com/tools/testing).
 */
class ExampleUnitTest {
    @Test
    fun addition_isCorrect() {
//        assertEquals(4, 2 + 2)
 
        val sRectPool: Pools.Pool<Rect> = Pools.SynchronizedPool(6)
 
        val data  = arrayOfNulls<Int>(6)
 
        var int1 = data[0]
        if (int1 == null) {
            int1 = 12
        }
        println("$int1,data0=${data.get(0)}")
 
    }
 
 
}