hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.rockchip.alexa.jacky.utils;
 
import java.io.IOException;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
 
/**
 * Created by Administrator on 2017/5/11.
 */
 
public class Test
{
    public enum TEST {
        START,
        STOP
    };
 
    private static boolean running = true;
    public static void main(String[] args) {
 
    }
 
    public void test(Thread thread)  {
        System.out.println("it is running");
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("it is end");
    }
 
    private  Thread thread = new Thread(new Runnable() {
        @Override
        public void run() {
            try {
                Thread.sleep(3000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    });
//    public static void main(String[] args) {
//        List<String> list = new ArrayList<String>();
//        list.add("Selected interface 'wlan0'");
//        list.add("bssid=1c:fa:68:83:76:9e");
//        list.add("freq=2437");
//        list.add("ssid=hxw@rk");
//        list.add("id=0");
//        list.add("mode=station");
//        list.add("pairwise_cipher=CCMP");
//        list.add("group_cipher=TKIP");
//        list.add("key_mgmt=WPA2-PSK");
//        list.add("wpa_state=COMPLETED");
//        list.add("ip_address=172.16.22.128");
//        list.add("address=b0:f1:ec:2d:9c:3c");
//
//        for (String str : list) {
//            if (str.startsWith("wpa_state")) {
//                String te = str.substring(str.indexOf("=") + 1);
//                System.out.println("test:" + te);
//            }
//            if (str.startsWith("ip_address")) {
//                String te = str.substring(str.indexOf("=") + 1);
//            }
//        }
//
//
//        Map<TEST, Integer> map = new HashMap<>();
//
//        map.put(TEST.START, 1);
//        System.out.println("TEST.START:" + TEST.START);
//        System.out.println(map.get(TEST.START));
//        SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss.SSS");
//        System.out.println(format.format(new Date(1494652391353L)));
//        System.out.println(format.format(new Date(System.currentTimeMillis())));
//        System.out.println(Context.isAuthorized);
//        try {
//            throw new IOException("TEST");
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
//    }
}