Skip to content

Commit f08b6f3

Browse files
danascapeBrainKub
authored andcommitted
nothing: Re-format using pre-commit
Change-Id: I5af2a629818961ffb9c6633547ee3d57f422ecfe Signed-off-by: Saalim Quadri <danascape@gmail.com>
1 parent 5e45b9a commit f08b6f3

38 files changed

Lines changed: 94 additions & 89 deletions

GlyphAdapter/Android.bp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ aidl_interface {
3030
"aidl/com/nothing/thirdparty/IGlyphService.aidl",
3131
],
3232
}
33-

GlyphAdapter/aidl/com/nothing/thirdparty/IGlyphService.aidl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ interface IGlyphService {
1212
void closeSession();
1313
boolean register(in String str);
1414
boolean registerSDK(in String str1, in String str2);
15-
}
15+
}

GlyphAdapter/src/com/nothing/thirdparty/GlyphService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ import android.content.Intent
1010

1111
public class GlyphService : Service() {
1212
private val binder by lazy { IGlyphServiceImpl(this) }
13+
1314
override fun onBind(intent: Intent?) = binder
14-
}
15+
}

GlyphAdapter/src/com/nothing/thirdparty/IGlyphServiceImpl.kt

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,28 @@ import android.util.Log
1515
class IGlyphServiceImpl(private val context: Context) : IGlyphService.Stub() {
1616
private var glyphService: IGlyphService? = null
1717

18-
private val connection = object : ServiceConnection {
19-
override fun onServiceConnected(name: ComponentName?, service: IBinder?) {
20-
glyphService = IGlyphService.Stub.asInterface(service)
21-
}
18+
private val connection =
19+
object : ServiceConnection {
20+
override fun onServiceConnected(name: ComponentName?, service: IBinder?) {
21+
glyphService = IGlyphService.Stub.asInterface(service)
22+
}
2223

23-
override fun onServiceDisconnected(name: ComponentName?) {
24-
glyphService = null
24+
override fun onServiceDisconnected(name: ComponentName?) {
25+
glyphService = null
26+
}
2527
}
26-
}
2728

2829
init {
2930
bindglyphService()
3031
}
3132

3233
private fun bindglyphService() {
3334
if (context != null) {
34-
val intent = Intent("com.nothing.thirdparty.IGlyphService").apply {
35-
component = ComponentName("co.aospa.glyph", "co.aospa.glyph.Services.ThirdPartyService")
36-
}
35+
val intent =
36+
Intent("com.nothing.thirdparty.IGlyphService").apply {
37+
component =
38+
ComponentName("co.aospa.glyph", "co.aospa.glyph.Services.ThirdPartyService")
39+
}
3740
context.bindService(intent, connection, Context.BIND_AUTO_CREATE)
3841
} else {
3942
Log.e("IGlyphServiceImpl", "Context is null, cannot bind service")
@@ -57,7 +60,7 @@ class IGlyphServiceImpl(private val context: Context) : IGlyphService.Stub() {
5760
glyphService?.setFrameColors(intArrayOf(0, 0, 0, 0, 0))
5861
}
5962

60-
6163
override fun register(str: String) = true
64+
6265
override fun registerSDK(str1: String, str2: String) = true
6366
}

ParanoidGlyph/phone1/assets/call/Small Noise.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,4 +322,4 @@
322322
0,0,0,0,0,
323323
0,0,0,0,0,
324324
0,0,0,0,0,
325-
0,0,0,0,0,
325+
0,0,0,0,0,

ParanoidGlyph/phone1/assets/call/Wakey Wakey.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,4 @@
360360
0,0,0,0,0,
361361
0,0,0,0,0,
362362
0,0,0,0,0,
363-
0,0,0,0,0,
363+
0,0,0,0,0,

ParanoidGlyph/phone1/assets/notification/Bulb Two.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@
101101
0,0,0,0,0
102102
0,0,0,0,0
103103
0,0,0,0,0
104-
0,0,0,0,0
104+
0,0,0,0,0

ParanoidGlyph/phone1/assets/powershare.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,4 @@
237237
0,0,160,0,0,
238238
0,0,80,0,0,
239239
0,0,48,0,0,
240-
0,0,0,0,0,
240+
0,0,0,0,0,

ParanoidGlyph/phone1/res/drawable/glyph_led_a.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<vector android:height="47.71dp" android:width="26.51dp" android:viewportWidth="45" android:viewportHeight="81"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44
<path android:fillColor="@color/glyph_settings_device_glyph_color" android:pathData="M0.354,58.077V22.177C0.354,10.184 9.891,0.363 21.883,0.01C33.876,-0.343 43.964,8.909 44.671,20.885C44.688,21.221 44.567,21.548 44.343,21.798C44.111,22.039 43.792,22.177 43.456,22.177H39.786C39.148,22.177 38.614,21.677 38.571,21.04C37.985,12.691 31.033,6.109 22.538,6.109C13.664,6.109 6.47,13.303 6.47,22.177V58.077C6.47,66.951 13.664,74.145 22.538,74.145C31.412,74.145 38.605,66.951 38.605,58.077V47.696C38.605,47.024 39.148,46.472 39.829,46.472H43.49C44.162,46.472 44.714,47.015 44.714,47.696V58.077C44.714,66.003 40.484,73.318 33.626,77.281C26.768,81.244 18.308,81.244 11.45,77.281C4.584,73.318 0.354,65.994 0.354,58.077Z" />
5-
</vector>
5+
</vector>

ParanoidGlyph/phone1/res/drawable/glyph_led_b.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<vector android:height="27.68dp" android:width="24.15dp" android:viewportWidth="41" android:viewportHeight="47"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44
<path android:fillColor="@color/glyph_settings_device_glyph_color" android:pathData="M1.206,41.813C0.508,42.648 0.301,43.794 0.672,44.819C1.042,45.845 1.938,46.594 3.006,46.784C4.075,46.973 5.177,46.577 5.875,45.741L39.587,5.568C40.672,4.276 40.5,2.354 39.208,1.269C37.916,0.183 35.994,0.356 34.909,1.648L1.206,41.813Z" />
5-
</vector>
5+
</vector>

0 commit comments

Comments
 (0)