@@ -286,11 +286,11 @@ static Gson getGson4LogUtils() {
286
286
///////////////////////////////////////////////////////////////////////////
287
287
// ImageUtils
288
288
///////////////////////////////////////////////////////////////////////////
289
- public static byte [] bitmap2Bytes (final Bitmap bitmap ) {
289
+ static byte [] bitmap2Bytes (final Bitmap bitmap ) {
290
290
return ImageUtils .bitmap2Bytes (bitmap );
291
291
}
292
292
293
- public static byte [] bitmap2Bytes (final Bitmap bitmap , final Bitmap .CompressFormat format , int quality ) {
293
+ static byte [] bitmap2Bytes (final Bitmap bitmap , final Bitmap .CompressFormat format , int quality ) {
294
294
return ImageUtils .bitmap2Bytes (bitmap , format , quality );
295
295
}
296
296
@@ -408,26 +408,26 @@ static boolean isServiceRunning(final String className) {
408
408
///////////////////////////////////////////////////////////////////////////
409
409
// ShellUtils
410
410
///////////////////////////////////////////////////////////////////////////
411
- static ShellCommandResult execCmd (final String command , final boolean isRooted ) {
412
- return ShellCommandResult . parse ( ShellUtils .execCmd (command , isRooted ) );
411
+ static ShellUtils . CommandResult execCmd (final String command , final boolean isRooted ) {
412
+ return ShellUtils .execCmd (command , isRooted );
413
413
}
414
414
415
415
///////////////////////////////////////////////////////////////////////////
416
416
// SizeUtils
417
417
///////////////////////////////////////////////////////////////////////////
418
- public static int dp2px (final float dpValue ) {
418
+ static int dp2px (final float dpValue ) {
419
419
return SizeUtils .dp2px (dpValue );
420
420
}
421
421
422
- public static int px2dp (final float pxValue ) {
422
+ static int px2dp (final float pxValue ) {
423
423
return SizeUtils .px2dp (pxValue );
424
424
}
425
425
426
- public static int sp2px (final float spValue ) {
426
+ static int sp2px (final float spValue ) {
427
427
return SizeUtils .sp2px (spValue );
428
428
}
429
429
430
- public static int px2sp (final float pxValue ) {
430
+ static int px2sp (final float pxValue ) {
431
431
return SizeUtils .px2sp (pxValue );
432
432
}
433
433
@@ -509,27 +509,4 @@ static Uri file2Uri(final File file) {
509
509
///////////////////////////////////////////////////////////////////////////
510
510
static abstract class Task <T > extends ThreadUtils .SimpleTask <T > {
511
511
}
512
-
513
- static class ShellCommandResult {
514
- int result ;
515
- String successMsg ;
516
- String errorMsg ;
517
-
518
- private ShellCommandResult (ShellUtils .CommandResult result ) {
519
- this .result = result .result ;
520
- this .successMsg = result .successMsg ;
521
- this .errorMsg = result .errorMsg ;
522
- }
523
-
524
- static ShellCommandResult parse (ShellUtils .CommandResult result ) {
525
- return new ShellCommandResult (result );
526
- }
527
-
528
- @ Override
529
- public String toString () {
530
- return "result: " + result + "\n " +
531
- "successMsg: " + successMsg + "\n " +
532
- "errorMsg: " + errorMsg ;
533
- }
534
- }
535
512
}
0 commit comments