-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgit
2030 lines (2028 loc) · 95.3 KB
/
git
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[33mcommit 3618f97c53564611b3c3853c6977f9433f493601[m
Author: Mark <stylite1991@gmail.com>
Date: Fri Dec 22 16:11:28 2017 +0800
first commit
[1mdiff --git a/.gitignore b/.gitignore[m
[1mnew file mode 100644[m
[1mindex 0000000..637199e[m
[1m--- /dev/null[m
[1m+++ b/.gitignore[m
[36m@@ -0,0 +1,53 @@[m
[32m+[m[32m# Windows image file caches[m
[32m+[m[32mThumbs.db[m
[32m+[m[32mehthumbs.db[m
[32m+[m
[32m+[m[32m# Folder config file[m
[32m+[m[32mDesktop.ini[m
[32m+[m
[32m+[m[32m# Recycle Bin used on file shares[m
[32m+[m[32m$RECYCLE.BIN/[m
[32m+[m
[32m+[m[32m# Windows Installer files[m
[32m+[m[32m*.cab[m
[32m+[m[32m*.msi[m
[32m+[m[32m*.msm[m
[32m+[m[32m*.msp[m
[32m+[m
[32m+[m[32m# Windows shortcuts[m
[32m+[m[32m*.lnk[m
[32m+[m
[32m+[m[32m# =========================[m
[32m+[m[32m# Operating System Files[m
[32m+[m[32m# =========================[m
[32m+[m
[32m+[m[32m# OSX[m
[32m+[m[32m# =========================[m
[32m+[m
[32m+[m[32m.DS_Store[m
[32m+[m[32m.AppleDouble[m
[32m+[m[32m.LSOverride[m
[32m+[m
[32m+[m[32m# Thumbnails[m
[32m+[m[32m._*[m
[32m+[m
[32m+[m[32m# Files that might appear in the root of a volume[m
[32m+[m[32m.DocumentRevisions-V100[m
[32m+[m[32m.fseventsd[m
[32m+[m[32m.Spotlight-V100[m
[32m+[m[32m.TemporaryItems[m
[32m+[m[32m.Trashes[m
[32m+[m[32m.VolumeIcon.icns[m
[32m+[m
[32m+[m[32m# Directories potentially created on remote AFP share[m
[32m+[m[32m.AppleDB[m
[32m+[m[32m.AppleDesktop[m
[32m+[m[32mNetwork Trash Folder[m
[32m+[m[32mTemporary Items[m
[32m+[m[32m.apdisk[m
[32m+[m
[32m+[m[32m.gradle[m
[32m+[m[32m.idea[m
[32m+[m[32mbuild[m
[32m+[m[32mgradle[m
[32m+[m[32mlocal.properties[m
\ No newline at end of file[m
[1mdiff --git a/AidlClient/.gitignore b/AidlClient/.gitignore[m
[1mnew file mode 100644[m
[1mindex 0000000..39fb081[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/.gitignore[m
[36m@@ -0,0 +1,9 @@[m
[32m+[m[32m*.iml[m
[32m+[m[32m.gradle[m
[32m+[m[32m/local.properties[m
[32m+[m[32m/.idea/workspace.xml[m
[32m+[m[32m/.idea/libraries[m
[32m+[m[32m.DS_Store[m
[32m+[m[32m/build[m
[32m+[m[32m/captures[m
[32m+[m[32m.externalNativeBuild[m
[1mdiff --git a/AidlClient/app/.gitignore b/AidlClient/app/.gitignore[m
[1mnew file mode 100644[m
[1mindex 0000000..796b96d[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/.gitignore[m
[36m@@ -0,0 +1 @@[m
[32m+[m[32m/build[m
[1mdiff --git a/AidlClient/app/build.gradle b/AidlClient/app/build.gradle[m
[1mnew file mode 100644[m
[1mindex 0000000..bbd990c[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/build.gradle[m
[36m@@ -0,0 +1,32 @@[m
[32m+[m[32mapply plugin: 'com.android.application'[m
[32m+[m
[32m+[m[32mandroid {[m
[32m+[m[32m compileSdkVersion 26[m
[32m+[m[32m defaultConfig {[m
[32m+[m[32m applicationId "com.mark.aidlclient"[m
[32m+[m[32m minSdkVersion 15[m
[32m+[m[32m targetSdkVersion 26[m
[32m+[m[32m versionCode 1[m
[32m+[m[32m versionName "1.0"[m
[32m+[m[32m testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"[m
[32m+[m[32m }[m
[32m+[m[32m buildTypes {[m
[32m+[m[32m release {[m
[32m+[m[32m minifyEnabled false[m
[32m+[m[32m proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m sourceSets.main{[m
[32m+[m[32m aidl.srcDir "com.mark.aidl"[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[32m+[m
[32m+[m[32mdependencies {[m
[32m+[m[32m implementation fileTree(dir: 'libs', include: ['*.jar'])[m
[32m+[m[32m implementation 'com.android.support:appcompat-v7:26.1.0'[m
[32m+[m[32m implementation 'com.android.support.constraint:constraint-layout:1.0.2'[m
[32m+[m[32m testImplementation 'junit:junit:4.12'[m
[32m+[m[32m androidTestImplementation 'com.android.support.test:runner:1.0.1'[m
[32m+[m[32m androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'[m
[32m+[m[32m}[m
[1mdiff --git a/AidlClient/app/proguard-rules.pro b/AidlClient/app/proguard-rules.pro[m
[1mnew file mode 100644[m
[1mindex 0000000..f1b4245[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/proguard-rules.pro[m
[36m@@ -0,0 +1,21 @@[m
[32m+[m[32m# Add project specific ProGuard rules here.[m
[32m+[m[32m# You can control the set of applied configuration files using the[m
[32m+[m[32m# proguardFiles setting in build.gradle.[m
[32m+[m[32m#[m
[32m+[m[32m# For more details, see[m
[32m+[m[32m# http://developer.android.com/guide/developing/tools/proguard.html[m
[32m+[m
[32m+[m[32m# If your project uses WebView with JS, uncomment the following[m
[32m+[m[32m# and specify the fully qualified class name to the JavaScript interface[m
[32m+[m[32m# class:[m
[32m+[m[32m#-keepclassmembers class fqcn.of.javascript.interface.for.webview {[m
[32m+[m[32m# public *;[m
[32m+[m[32m#}[m
[32m+[m
[32m+[m[32m# Uncomment this to preserve the line number information for[m
[32m+[m[32m# debugging stack traces.[m
[32m+[m[32m#-keepattributes SourceFile,LineNumberTable[m
[32m+[m
[32m+[m[32m# If you keep the line number information, uncomment this to[m
[32m+[m[32m# hide the original source file name.[m
[32m+[m[32m#-renamesourcefileattribute SourceFile[m
[1mdiff --git a/AidlClient/app/src/androidTest/java/com/mark/aidlclient/ExampleInstrumentedTest.java b/AidlClient/app/src/androidTest/java/com/mark/aidlclient/ExampleInstrumentedTest.java[m
[1mnew file mode 100644[m
[1mindex 0000000..89704e1[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/androidTest/java/com/mark/aidlclient/ExampleInstrumentedTest.java[m
[36m@@ -0,0 +1,26 @@[m
[32m+[m[32mpackage com.mark.aidlclient;[m
[32m+[m
[32m+[m[32mimport android.content.Context;[m
[32m+[m[32mimport android.support.test.InstrumentationRegistry;[m
[32m+[m[32mimport android.support.test.runner.AndroidJUnit4;[m
[32m+[m
[32m+[m[32mimport org.junit.Test;[m
[32m+[m[32mimport org.junit.runner.RunWith;[m
[32m+[m
[32m+[m[32mimport static org.junit.Assert.*;[m
[32m+[m
[32m+[m[32m/**[m
[32m+[m[32m * Instrumented test, which will execute on an Android device.[m
[32m+[m[32m *[m
[32m+[m[32m * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>[m
[32m+[m[32m */[m
[32m+[m[32m@RunWith(AndroidJUnit4.class)[m
[32m+[m[32mpublic class ExampleInstrumentedTest {[m
[32m+[m[32m @Test[m
[32m+[m[32m public void useAppContext() throws Exception {[m
[32m+[m[32m // Context of the app under test.[m
[32m+[m[32m Context appContext = InstrumentationRegistry.getTargetContext();[m
[32m+[m
[32m+[m[32m assertEquals("com.mark.aidlclient", appContext.getPackageName());[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[1mdiff --git a/AidlClient/app/src/main/AndroidManifest.xml b/AidlClient/app/src/main/AndroidManifest.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..835ce71[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/AndroidManifest.xml[m
[36m@@ -0,0 +1,21 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<manifest xmlns:android="http://schemas.android.com/apk/res/android"[m
[32m+[m[32m package="com.mark.aidlclient">[m
[32m+[m
[32m+[m[32m <application[m
[32m+[m[32m android:allowBackup="true"[m
[32m+[m[32m android:icon="@mipmap/ic_launcher"[m
[32m+[m[32m android:label="@string/app_name"[m
[32m+[m[32m android:roundIcon="@mipmap/ic_launcher_round"[m
[32m+[m[32m android:supportsRtl="true"[m
[32m+[m[32m android:theme="@style/AppTheme">[m
[32m+[m[32m <activity android:name=".MainActivity">[m
[32m+[m[32m <intent-filter>[m
[32m+[m[32m <action android:name="android.intent.action.MAIN" />[m
[32m+[m
[32m+[m[32m <category android:name="android.intent.category.LAUNCHER" />[m
[32m+[m[32m </intent-filter>[m
[32m+[m[32m </activity>[m
[32m+[m[32m </application>[m
[32m+[m
[32m+[m[32m</manifest>[m
\ No newline at end of file[m
[1mdiff --git a/AidlClient/app/src/main/aidl/com/mark/aidl/IMyAidlInterface.aidl b/AidlClient/app/src/main/aidl/com/mark/aidl/IMyAidlInterface.aidl[m
[1mnew file mode 100644[m
[1mindex 0000000..fb1041c[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/aidl/com/mark/aidl/IMyAidlInterface.aidl[m
[36m@@ -0,0 +1,20 @@[m
[32m+[m[32m// IMyAidlInterface.aidl[m
[32m+[m[32mpackage com.mark.aidl;[m
[32m+[m
[32m+[m[32m// Declare any non-default types here with import statements[m
[32m+[m
[32m+[m[32minterface IMyAidlInterface {[m
[32m+[m[32m /**[m
[32m+[m[32m * Demonstrates some basic types that you can use as parameters[m
[32m+[m[32m * and return values in AIDL.[m
[32m+[m[32m */[m
[32m+[m[32m void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,[m
[32m+[m[32m double aDouble, String aString);[m
[32m+[m
[32m+[m[32m /*[m
[32m+[m[32m * get Process id[m
[32m+[m[32m */[m
[32m+[m[32m int getPid();[m
[32m+[m
[32m+[m[32m int getRandomNum();[m
[32m+[m[32m}[m
[1mdiff --git a/AidlClient/app/src/main/java/com/mark/aidlclient/MainActivity.java b/AidlClient/app/src/main/java/com/mark/aidlclient/MainActivity.java[m
[1mnew file mode 100644[m
[1mindex 0000000..6d0b488[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/java/com/mark/aidlclient/MainActivity.java[m
[36m@@ -0,0 +1,89 @@[m
[32m+[m[32mpackage com.mark.aidlclient;[m
[32m+[m
[32m+[m[32mimport android.content.ComponentName;[m
[32m+[m[32mimport android.content.Intent;[m
[32m+[m[32mimport android.content.ServiceConnection;[m
[32m+[m[32mimport android.os.Bundle;[m
[32m+[m[32mimport android.os.IBinder;[m
[32m+[m[32mimport android.os.RemoteException;[m
[32m+[m[32mimport android.support.v7.app.AppCompatActivity;[m
[32m+[m[32mimport android.view.View;[m
[32m+[m[32mimport android.widget.Button;[m
[32m+[m[32mimport android.widget.TextView;[m
[32m+[m
[32m+[m[32mimport com.mark.aidl.IMyAidlInterface;[m
[32m+[m
[32m+[m[32mpublic class MainActivity extends AppCompatActivity {[m
[32m+[m[32m TextView codeTv, errTv;[m
[32m+[m[32m Button linkBtn, getCodeBtn;[m
[32m+[m
[32m+[m[32m ServiceConnection mConnection;[m
[32m+[m[32m IMyAidlInterface myAidlInterface;[m
[32m+[m
[32m+[m[32m @Override[m
[32m+[m[32m protected void onCreate(Bundle savedInstanceState) {[m
[32m+[m[32m super.onCreate(savedInstanceState);[m
[32m+[m[32m setContentView(R.layout.activity_main);[m
[32m+[m[32m codeTv = findView(R.id.tv_code);[m
[32m+[m[32m errTv = findView(R.id.err_text);[m
[32m+[m[32m linkBtn = findView(R.id.btn_link);[m
[32m+[m[32m getCodeBtn = findView(R.id.btn_getCode);[m
[32m+[m[32m getCodeBtn.setEnabled(false);[m
[32m+[m[32m initConnection();[m
[32m+[m
[32m+[m[32m linkBtn.setOnClickListener(new View.OnClickListener() {[m
[32m+[m[32m @Override[m
[32m+[m[32m public void onClick(View v) {[m
[32m+[m[32m Intent i = new Intent("com.mark.aidl.action.AIDL_SERVICE");[m
[32m+[m[32m i.setPackage("com.mark.aidl");[m
[32m+[m[32m bindService(i, mConnection, BIND_AUTO_CREATE);[m
[32m+[m[32m }[m
[32m+[m[32m });[m
[32m+[m
[32m+[m[32m getCodeBtn.setOnClickListener(new View.OnClickListener() {[m
[32m+[m[32m @Override[m
[32m+[m[32m public void onClick(View v) {[m
[32m+[m[32m try {[m
[32m+[m[32m if (myAidlInterface != null) {[m
[32m+[m[32m codeTv.setText(myAidlInterface.getRandomNum() + "");[m
[32m+[m[32m }[m
[32m+[m[32m } catch (RemoteException e) {[m
[32m+[m[32m e.printStackTrace();[m
[32m+[m[32m }[m
[32m+[m[32m }[m
[32m+[m[32m });[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private void initConnection() {[m
[32m+[m[32m mConnection = new ServiceConnection() {[m
[32m+[m[32m @Override[m
[32m+[m[32m public void onServiceConnected(ComponentName name, IBinder service) {[m
[32m+[m[32m myAidlInterface = IMyAidlInterface.Stub.asInterface(service);[m
[32m+[m[32m linkBtn.setText(R.string.linked);[m
[32m+[m[32m linkBtn.setEnabled(false);[m
[32m+[m[32m getCodeBtn.setEnabled(true);[m
[32m+[m[32m errTv.setVisibility(View.INVISIBLE);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m @Override[m
[32m+[m[32m public void onServiceDisconnected(ComponentName name) {[m
[32m+[m[32m myAidlInterface = null;[m
[32m+[m[32m errTv.setText(R.string.err_link_fail);[m
[32m+[m[32m errTv.setVisibility(View.VISIBLE);[m
[32m+[m[32m linkBtn.setText(R.string.to_link);[m
[32m+[m[32m linkBtn.setEnabled(true);[m
[32m+[m[32m getCodeBtn.setEnabled(false);[m
[32m+[m[32m }[m
[32m+[m[32m };[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m @Override[m
[32m+[m[32m protected void onDestroy() {[m
[32m+[m[32m super.onDestroy();[m
[32m+[m[32m unbindService(mConnection);[m
[32m+[m[32m }[m
[32m+[m
[32m+[m[32m private <T extends View> T findView(int id) {[m
[32m+[m[32m return (T) (findViewById(id));[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[1mdiff --git a/AidlClient/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/AidlClient/app/src/main/res/drawable-v24/ic_launcher_foreground.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..c7bd21d[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/drawable-v24/ic_launcher_foreground.xml[m
[36m@@ -0,0 +1,34 @@[m
[32m+[m[32m<vector xmlns:android="http://schemas.android.com/apk/res/android"[m
[32m+[m[32m xmlns:aapt="http://schemas.android.com/aapt"[m
[32m+[m[32m android:width="108dp"[m
[32m+[m[32m android:height="108dp"[m
[32m+[m[32m android:viewportHeight="108"[m
[32m+[m[32m android:viewportWidth="108">[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillType="evenOdd"[m
[32m+[m[32m android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"[m
[32m+[m[32m android:strokeColor="#00000000"[m
[32m+[m[32m android:strokeWidth="1">[m
[32m+[m[32m <aapt:attr name="android:fillColor">[m
[32m+[m[32m <gradient[m
[32m+[m[32m android:endX="78.5885"[m
[32m+[m[32m android:endY="90.9159"[m
[32m+[m[32m android:startX="48.7653"[m
[32m+[m[32m android:startY="61.0927"[m
[32m+[m[32m android:type="linear">[m
[32m+[m[32m <item[m
[32m+[m[32m android:color="#44000000"[m
[32m+[m[32m android:offset="0.0" />[m
[32m+[m[32m <item[m
[32m+[m[32m android:color="#00000000"[m
[32m+[m[32m android:offset="1.0" />[m
[32m+[m[32m </gradient>[m
[32m+[m[32m </aapt:attr>[m
[32m+[m[32m </path>[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#FFFFFF"[m
[32m+[m[32m android:fillType="nonZero"[m
[32m+[m[32m android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"[m
[32m+[m[32m android:strokeColor="#00000000"[m
[32m+[m[32m android:strokeWidth="1" />[m
[32m+[m[32m</vector>[m
[1mdiff --git a/AidlClient/app/src/main/res/drawable/ic_launcher_background.xml b/AidlClient/app/src/main/res/drawable/ic_launcher_background.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..d5fccc5[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/drawable/ic_launcher_background.xml[m
[36m@@ -0,0 +1,170 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<vector xmlns:android="http://schemas.android.com/apk/res/android"[m
[32m+[m[32m android:width="108dp"[m
[32m+[m[32m android:height="108dp"[m
[32m+[m[32m android:viewportHeight="108"[m
[32m+[m[32m android:viewportWidth="108">[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#26A69A"[m
[32m+[m[32m android:pathData="M0,0h108v108h-108z" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M9,0L9,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,0L19,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M29,0L29,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M39,0L39,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M49,0L49,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M59,0L59,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M69,0L69,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M79,0L79,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M89,0L89,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M99,0L99,108"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,9L108,9"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,19L108,19"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,29L108,29"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,39L108,39"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,49L108,49"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,59L108,59"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,69L108,69"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,79L108,79"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,89L108,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M0,99L108,99"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,29L89,29"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,39L89,39"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,49L89,49"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,59L89,59"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,69L89,69"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M19,79L89,79"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M29,19L29,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M39,19L39,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M49,19L49,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M59,19L59,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M69,19L69,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m <path[m
[32m+[m[32m android:fillColor="#00000000"[m
[32m+[m[32m android:pathData="M79,19L79,89"[m
[32m+[m[32m android:strokeColor="#33FFFFFF"[m
[32m+[m[32m android:strokeWidth="0.8" />[m
[32m+[m[32m</vector>[m
[1mdiff --git a/AidlClient/app/src/main/res/layout/activity_main.xml b/AidlClient/app/src/main/res/layout/activity_main.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..4b728fe[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/layout/activity_main.xml[m
[36m@@ -0,0 +1,58 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"[m
[32m+[m[32m xmlns:app="http://schemas.android.com/apk/res-auto"[m
[32m+[m[32m xmlns:tools="http://schemas.android.com/tools"[m
[32m+[m[32m android:layout_width="match_parent"[m
[32m+[m[32m android:layout_height="match_parent"[m
[32m+[m[32m tools:context="com.mark.aidlclient.MainActivity">[m
[32m+[m
[32m+[m[32m <TextView[m
[32m+[m[32m android:id="@+id/tv_code"[m
[32m+[m[32m android:layout_width="wrap_content"[m
[32m+[m[32m android:layout_height="wrap_content"[m
[32m+[m[32m android:text="Hello World!"[m
[32m+[m[32m app:layout_constraintBottom_toBottomOf="parent"[m
[32m+[m[32m app:layout_constraintLeft_toLeftOf="parent"[m
[32m+[m[32m app:layout_constraintRight_toRightOf="parent"[m
[32m+[m[32m app:layout_constraintTop_toTopOf="parent" />[m
[32m+[m
[32m+[m[32m <Button[m
[32m+[m[32m android:id="@+id/btn_link"[m
[32m+[m[32m android:layout_width="wrap_content"[m
[32m+[m[32m android:layout_height="wrap_content"[m
[32m+[m[32m android:layout_marginEnd="8dp"[m
[32m+[m[32m android:layout_marginStart="8dp"[m
[32m+[m[32m android:layout_marginTop="56dp"[m
[32m+[m[32m android:text="连接服务"[m
[32m+[m[32m app:layout_constraintEnd_toEndOf="parent"[m
[32m+[m[32m app:layout_constraintStart_toStartOf="parent"[m
[32m+[m[32m app:layout_constraintTop_toBottomOf="@+id/err_text" />[m
[32m+[m
[32m+[m[32m <Button[m
[32m+[m[32m android:id="@+id/btn_getCode"[m
[32m+[m[32m android:layout_width="wrap_content"[m
[32m+[m[32m android:layout_height="wrap_content"[m
[32m+[m[32m android:layout_marginEnd="8dp"[m
[32m+[m[32m android:layout_marginStart="8dp"[m
[32m+[m[32m android:layout_marginTop="52dp"[m
[32m+[m[32m android:text="获取验证数据"[m
[32m+[m[32m app:layout_constraintEnd_toEndOf="parent"[m
[32m+[m[32m app:layout_constraintStart_toStartOf="parent"[m
[32m+[m[32m app:layout_constraintTop_toBottomOf="@+id/tv_code" />[m
[32m+[m
[32m+[m[32m <TextView[m
[32m+[m[32m android:id="@+id/err_text"[m
[32m+[m[32m android:layout_width="375dp"[m
[32m+[m[32m android:layout_height="32dp"[m
[32m+[m[32m android:layout_marginEnd="8dp"[m
[32m+[m[32m android:layout_marginStart="8dp"[m
[32m+[m[32m android:layout_marginTop="8dp"[m
[32m+[m[32m android:text="err"[m
[32m+[m[32m android:gravity="center"[m
[32m+[m[32m android:textColor="@android:color/holo_red_dark"[m
[32m+[m[32m app:layout_constraintEnd_toEndOf="parent"[m
[32m+[m[32m app:layout_constraintStart_toStartOf="parent"[m
[32m+[m[32m app:layout_constraintTop_toTopOf="parent"[m
[32m+[m[32m android:visibility="invisible"/>[m
[32m+[m
[32m+[m[32m</android.support.constraint.ConstraintLayout>[m
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..eca70cf[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml[m
[36m@@ -0,0 +1,5 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">[m
[32m+[m[32m <background android:drawable="@drawable/ic_launcher_background" />[m
[32m+[m[32m <foreground android:drawable="@drawable/ic_launcher_foreground" />[m
[32m+[m[32m</adaptive-icon>[m
\ No newline at end of file[m
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..eca70cf[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml[m
[36m@@ -0,0 +1,5 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">[m
[32m+[m[32m <background android:drawable="@drawable/ic_launcher_background" />[m
[32m+[m[32m <foreground android:drawable="@drawable/ic_launcher_foreground" />[m
[32m+[m[32m</adaptive-icon>[m
\ No newline at end of file[m
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher.png b/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher.png[m
[1mnew file mode 100644[m
[1mindex 0000000..a2f5908[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher_round.png[m
[1mnew file mode 100644[m
[1mindex 0000000..1b52399[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher.png b/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher.png[m
[1mnew file mode 100644[m
[1mindex 0000000..ff10afd[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher_round.png[m
[1mnew file mode 100644[m
[1mindex 0000000..115a4c7[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher.png[m
[1mnew file mode 100644[m
[1mindex 0000000..dcd3cd8[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png[m
[1mnew file mode 100644[m
[1mindex 0000000..459ca60[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher.png[m
[1mnew file mode 100644[m
[1mindex 0000000..8ca12fe[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png[m
[1mnew file mode 100644[m
[1mindex 0000000..8e19b41[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png[m
[1mnew file mode 100644[m
[1mindex 0000000..b824ebd[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
[1mdiff --git a/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png[m
[1mnew file mode 100644[m
[1mindex 0000000..4c19a13[m
Binary files /dev/null and b/AidlClient/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
[1mdiff --git a/AidlClient/app/src/main/res/values/colors.xml b/AidlClient/app/src/main/res/values/colors.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..3ab3e9c[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/values/colors.xml[m
[36m@@ -0,0 +1,6 @@[m
[32m+[m[32m<?xml version="1.0" encoding="utf-8"?>[m
[32m+[m[32m<resources>[m
[32m+[m[32m <color name="colorPrimary">#3F51B5</color>[m
[32m+[m[32m <color name="colorPrimaryDark">#303F9F</color>[m
[32m+[m[32m <color name="colorAccent">#FF4081</color>[m
[32m+[m[32m</resources>[m
[1mdiff --git a/AidlClient/app/src/main/res/values/strings.xml b/AidlClient/app/src/main/res/values/strings.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..b1549da[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/values/strings.xml[m
[36m@@ -0,0 +1,6 @@[m
[32m+[m[32m<resources>[m
[32m+[m[32m <string name="app_name">AidlClient</string>[m
[32m+[m[32m <string name="linked">linked</string>[m
[32m+[m[32m <string name="to_link">to link</string>[m
[32m+[m[32m <string name="err_link_fail">link fail !</string>[m
[32m+[m[32m</resources>[m
[1mdiff --git a/AidlClient/app/src/main/res/values/styles.xml b/AidlClient/app/src/main/res/values/styles.xml[m
[1mnew file mode 100644[m
[1mindex 0000000..5885930[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/main/res/values/styles.xml[m
[36m@@ -0,0 +1,11 @@[m
[32m+[m[32m<resources>[m
[32m+[m
[32m+[m[32m <!-- Base application theme. -->[m
[32m+[m[32m <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">[m
[32m+[m[32m <!-- Customize your theme here. -->[m
[32m+[m[32m <item name="colorPrimary">@color/colorPrimary</item>[m
[32m+[m[32m <item name="colorPrimaryDark">@color/colorPrimaryDark</item>[m
[32m+[m[32m <item name="colorAccent">@color/colorAccent</item>[m
[32m+[m[32m </style>[m
[32m+[m
[32m+[m[32m</resources>[m
[1mdiff --git a/AidlClient/app/src/test/java/com/mark/aidlclient/ExampleUnitTest.java b/AidlClient/app/src/test/java/com/mark/aidlclient/ExampleUnitTest.java[m
[1mnew file mode 100644[m
[1mindex 0000000..c1ff9b1[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/app/src/test/java/com/mark/aidlclient/ExampleUnitTest.java[m
[36m@@ -0,0 +1,17 @@[m
[32m+[m[32mpackage com.mark.aidlclient;[m
[32m+[m
[32m+[m[32mimport org.junit.Test;[m
[32m+[m
[32m+[m[32mimport static org.junit.Assert.*;[m
[32m+[m
[32m+[m[32m/**[m
[32m+[m[32m * Example local unit test, which will execute on the development machine (host).[m
[32m+[m[32m *[m
[32m+[m[32m * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>[m
[32m+[m[32m */[m
[32m+[m[32mpublic class ExampleUnitTest {[m
[32m+[m[32m @Test[m
[32m+[m[32m public void addition_isCorrect() throws Exception {[m
[32m+[m[32m assertEquals(4, 2 + 2);[m
[32m+[m[32m }[m
[32m+[m[32m}[m
\ No newline at end of file[m
[1mdiff --git a/AidlClient/build.gradle b/AidlClient/build.gradle[m
[1mnew file mode 100644[m
[1mindex 0000000..e6b32bc[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/build.gradle[m
[36m@@ -0,0 +1,27 @@[m
[32m+[m[32m// Top-level build file where you can add configuration options common to all sub-projects/modules.[m
[32m+[m
[32m+[m[32mbuildscript {[m
[32m+[m[41m [m
[32m+[m[32m repositories {[m
[32m+[m[32m google()[m
[32m+[m[32m jcenter()[m
[32m+[m[32m }[m
[32m+[m[32m dependencies {[m
[32m+[m[32m classpath 'com.android.tools.build:gradle:3.0.1'[m
[32m+[m[41m [m
[32m+[m
[32m+[m[32m // NOTE: Do not place your application dependencies here; they belong[m
[32m+[m[32m // in the individual module build.gradle files[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[32m+[m
[32m+[m[32mallprojects {[m
[32m+[m[32m repositories {[m
[32m+[m[32m google()[m
[32m+[m[32m jcenter()[m
[32m+[m[32m }[m
[32m+[m[32m}[m
[32m+[m
[32m+[m[32mtask clean(type: Delete) {[m
[32m+[m[32m delete rootProject.buildDir[m
[32m+[m[32m}[m
[1mdiff --git a/AidlClient/gradle.properties b/AidlClient/gradle.properties[m
[1mnew file mode 100644[m
[1mindex 0000000..aac7c9b[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/gradle.properties[m
[36m@@ -0,0 +1,17 @@[m
[32m+[m[32m# Project-wide Gradle settings.[m
[32m+[m
[32m+[m[32m# IDE (e.g. Android Studio) users:[m
[32m+[m[32m# Gradle settings configured through the IDE *will override*[m
[32m+[m[32m# any settings specified in this file.[m
[32m+[m
[32m+[m[32m# For more details on how to configure your build environment visit[m
[32m+[m[32m# http://www.gradle.org/docs/current/userguide/build_environment.html[m
[32m+[m
[32m+[m[32m# Specifies the JVM arguments used for the daemon process.[m
[32m+[m[32m# The setting is particularly useful for tweaking memory settings.[m
[32m+[m[32morg.gradle.jvmargs=-Xmx1536m[m
[32m+[m
[32m+[m[32m# When configured, Gradle will run in incubating parallel mode.[m
[32m+[m[32m# This option should only be used with decoupled projects. More details, visit[m
[32m+[m[32m# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects[m
[32m+[m[32m# org.gradle.parallel=true[m
[1mdiff --git a/AidlClient/gradlew b/AidlClient/gradlew[m
[1mnew file mode 100644[m
[1mindex 0000000..9d82f78[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/gradlew[m
[36m@@ -0,0 +1,160 @@[m
[32m+[m[32m#!/usr/bin/env bash[m
[32m+[m
[32m+[m[32m##############################################################################[m
[32m+[m[32m##[m
[32m+[m[32m## Gradle start up script for UN*X[m
[32m+[m[32m##[m
[32m+[m[32m##############################################################################[m
[32m+[m
[32m+[m[32m# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.[m
[32m+[m[32mDEFAULT_JVM_OPTS=""[m
[32m+[m
[32m+[m[32mAPP_NAME="Gradle"[m
[32m+[m[32mAPP_BASE_NAME=`basename "$0"`[m
[32m+[m
[32m+[m[32m# Use the maximum available, or set MAX_FD != -1 to use that value.[m
[32m+[m[32mMAX_FD="maximum"[m
[32m+[m
[32m+[m[32mwarn ( ) {[m
[32m+[m[32m echo "$*"[m
[32m+[m[32m}[m
[32m+[m
[32m+[m[32mdie ( ) {[m
[32m+[m[32m echo[m
[32m+[m[32m echo "$*"[m
[32m+[m[32m echo[m
[32m+[m[32m exit 1[m
[32m+[m[32m}[m
[32m+[m
[32m+[m[32m# OS specific support (must be 'true' or 'false').[m
[32m+[m[32mcygwin=false[m
[32m+[m[32mmsys=false[m
[32m+[m[32mdarwin=false[m
[32m+[m[32mcase "`uname`" in[m
[32m+[m[32m CYGWIN* )[m
[32m+[m[32m cygwin=true[m
[32m+[m[32m ;;[m
[32m+[m[32m Darwin* )[m
[32m+[m[32m darwin=true[m
[32m+[m[32m ;;[m
[32m+[m[32m MINGW* )[m
[32m+[m[32m msys=true[m
[32m+[m[32m ;;[m
[32m+[m[32mesac[m
[32m+[m
[32m+[m[32m# Attempt to set APP_HOME[m
[32m+[m[32m# Resolve links: $0 may be a link[m
[32m+[m[32mPRG="$0"[m
[32m+[m[32m# Need this for relative symlinks.[m
[32m+[m[32mwhile [ -h "$PRG" ] ; do[m
[32m+[m[32m ls=`ls -ld "$PRG"`[m
[32m+[m[32m link=`expr "$ls" : '.*-> \(.*\)$'`[m
[32m+[m[32m if expr "$link" : '/.*' > /dev/null; then[m
[32m+[m[32m PRG="$link"[m
[32m+[m[32m else[m
[32m+[m[32m PRG=`dirname "$PRG"`"/$link"[m
[32m+[m[32m fi[m
[32m+[m[32mdone[m
[32m+[m[32mSAVED="`pwd`"[m
[32m+[m[32mcd "`dirname \"$PRG\"`/" >/dev/null[m
[32m+[m[32mAPP_HOME="`pwd -P`"[m
[32m+[m[32mcd "$SAVED" >/dev/null[m
[32m+[m
[32m+[m[32mCLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar[m
[32m+[m
[32m+[m[32m# Determine the Java command to use to start the JVM.[m
[32m+[m[32mif [ -n "$JAVA_HOME" ] ; then[m
[32m+[m[32m if [ -x "$JAVA_HOME/jre/sh/java" ] ; then[m
[32m+[m[32m # IBM's JDK on AIX uses strange locations for the executables[m
[32m+[m[32m JAVACMD="$JAVA_HOME/jre/sh/java"[m
[32m+[m[32m else[m
[32m+[m[32m JAVACMD="$JAVA_HOME/bin/java"[m
[32m+[m[32m fi[m
[32m+[m[32m if [ ! -x "$JAVACMD" ] ; then[m
[32m+[m[32m die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME[m
[32m+[m
[32m+[m[32mPlease set the JAVA_HOME variable in your environment to match the[m
[32m+[m[32mlocation of your Java installation."[m
[32m+[m[32m fi[m
[32m+[m[32melse[m
[32m+[m[32m JAVACMD="java"[m
[32m+[m[32m which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.[m
[32m+[m
[32m+[m[32mPlease set the JAVA_HOME variable in your environment to match the[m
[32m+[m[32mlocation of your Java installation."[m
[32m+[m[32mfi[m
[32m+[m
[32m+[m[32m# Increase the maximum file descriptors if we can.[m
[32m+[m[32mif [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then[m
[32m+[m[32m MAX_FD_LIMIT=`ulimit -H -n`[m
[32m+[m[32m if [ $? -eq 0 ] ; then[m
[32m+[m[32m if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then[m
[32m+[m[32m MAX_FD="$MAX_FD_LIMIT"[m
[32m+[m[32m fi[m
[32m+[m[32m ulimit -n $MAX_FD[m
[32m+[m[32m if [ $? -ne 0 ] ; then[m
[32m+[m[32m warn "Could not set maximum file descriptor limit: $MAX_FD"[m
[32m+[m[32m fi[m
[32m+[m[32m else[m
[32m+[m[32m warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"[m
[32m+[m[32m fi[m
[32m+[m[32mfi[m
[32m+[m
[32m+[m[32m# For Darwin, add options to specify how the application appears in the dock[m
[32m+[m[32mif $darwin; then[m
[32m+[m[32m GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""[m
[32m+[m[32mfi[m
[32m+[m
[32m+[m[32m# For Cygwin, switch paths to Windows format before running java[m
[32m+[m[32mif $cygwin ; then[m
[32m+[m[32m APP_HOME=`cygpath --path --mixed "$APP_HOME"`[m
[32m+[m[32m CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`[m
[32m+[m[32m JAVACMD=`cygpath --unix "$JAVACMD"`[m
[32m+[m
[32m+[m[32m # We build the pattern for arguments to be converted via cygpath[m
[32m+[m[32m ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`[m
[32m+[m[32m SEP=""[m
[32m+[m[32m for dir in $ROOTDIRSRAW ; do[m
[32m+[m[32m ROOTDIRS="$ROOTDIRS$SEP$dir"[m
[32m+[m[32m SEP="|"[m
[32m+[m[32m done[m
[32m+[m[32m OURCYGPATTERN="(^($ROOTDIRS))"[m
[32m+[m[32m # Add a user-defined pattern to the cygpath arguments[m
[32m+[m[32m if [ "$GRADLE_CYGPATTERN" != "" ] ; then[m
[32m+[m[32m OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"[m
[32m+[m[32m fi[m
[32m+[m[32m # Now convert the arguments - kludge to limit ourselves to /bin/sh[m
[32m+[m[32m i=0[m
[32m+[m[32m for arg in "$@" ; do[m
[32m+[m[32m CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`[m
[32m+[m[32m CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option[m
[32m+[m
[32m+[m[32m if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition[m
[32m+[m[32m eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`[m
[32m+[m[32m else[m
[32m+[m[32m eval `echo args$i`="\"$arg\""[m
[32m+[m[32m fi[m
[32m+[m[32m i=$((i+1))[m
[32m+[m[32m done[m
[32m+[m[32m case $i in[m
[32m+[m[32m (0) set -- ;;[m
[32m+[m[32m (1) set -- "$args0" ;;[m
[32m+[m[32m (2) set -- "$args0" "$args1" ;;[m
[32m+[m[32m (3) set -- "$args0" "$args1" "$args2" ;;[m
[32m+[m[32m (4) set -- "$args0" "$args1" "$args2" "$args3" ;;[m
[32m+[m[32m (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;[m
[32m+[m[32m (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;[m
[32m+[m[32m (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;[m
[32m+[m[32m (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;[m
[32m+[m[32m (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;[m
[32m+[m[32m esac[m
[32m+[m[32mfi[m
[32m+[m
[32m+[m[32m# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules[m
[32m+[m[32mfunction splitJvmOpts() {[m
[32m+[m[32m JVM_OPTS=("$@")[m
[32m+[m[32m}[m
[32m+[m[32meval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS[m
[32m+[m[32mJVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"[m
[32m+[m
[32m+[m[32mexec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"[m
[1mdiff --git a/AidlClient/gradlew.bat b/AidlClient/gradlew.bat[m
[1mnew file mode 100644[m
[1mindex 0000000..8a0b282[m
[1m--- /dev/null[m
[1m+++ b/AidlClient/gradlew.bat[m
[36m@@ -0,0 +1,90 @@[m
[32m+[m[32m@if "%DEBUG%" == "" @echo off[m
[32m+[m[32m@rem ##########################################################################[m
[32m+[m[32m@rem[m
[32m+[m[32m@rem Gradle startup script for Windows[m
[32m+[m[32m@rem[m
[32m+[m[32m@rem ##########################################################################[m
[32m+[m
[32m+[m[32m@rem Set local scope for the variables with windows NT shell[m
[32m+[m[32mif "%OS%"=="Windows_NT" setlocal[m
[32m+[m
[32m+[m[32m@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.[m
[32m+[m[32mset DEFAULT_JVM_OPTS=[m
[32m+[m
[32m+[m[32mset DIRNAME=%~dp0[m
[32m+[m[32mif "%DIRNAME%" == "" set DIRNAME=.[m
[32m+[m[32mset APP_BASE_NAME=%~n0[m
[32m+[m[32mset APP_HOME=%DIRNAME%[m
[32m+[m
[32m+[m[32m@rem Find java.exe[m
[32m+[m[32mif defined JAVA_HOME goto findJavaFromJavaHome[m
[32m+[m
[32m+[m[32mset JAVA_EXE=java.exe[m
[32m+[m[32m%JAVA_EXE% -version >NUL 2>&1[m
[32m+[m[32mif "%ERRORLEVEL%" == "0" goto init[m
[32m+[m
[32m+[m[32mecho.[m
[32m+[m[32mecho ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.[m
[32m+[m[32mecho.[m
[32m+[m[32mecho Please set the JAVA_HOME variable in your environment to match the[m