@@ -286,11 +286,11 @@ static Gson getGson4LogUtils() {
286286 ///////////////////////////////////////////////////////////////////////////
287287 // ImageUtils
288288 ///////////////////////////////////////////////////////////////////////////
289- public static byte [] bitmap2Bytes (final Bitmap bitmap ) {
289+ static byte [] bitmap2Bytes (final Bitmap bitmap ) {
290290 return ImageUtils .bitmap2Bytes (bitmap );
291291 }
292292
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 ) {
294294 return ImageUtils .bitmap2Bytes (bitmap , format , quality );
295295 }
296296
@@ -408,26 +408,26 @@ static boolean isServiceRunning(final String className) {
408408 ///////////////////////////////////////////////////////////////////////////
409409 // ShellUtils
410410 ///////////////////////////////////////////////////////////////////////////
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 );
413413 }
414414
415415 ///////////////////////////////////////////////////////////////////////////
416416 // SizeUtils
417417 ///////////////////////////////////////////////////////////////////////////
418- public static int dp2px (final float dpValue ) {
418+ static int dp2px (final float dpValue ) {
419419 return SizeUtils .dp2px (dpValue );
420420 }
421421
422- public static int px2dp (final float pxValue ) {
422+ static int px2dp (final float pxValue ) {
423423 return SizeUtils .px2dp (pxValue );
424424 }
425425
426- public static int sp2px (final float spValue ) {
426+ static int sp2px (final float spValue ) {
427427 return SizeUtils .sp2px (spValue );
428428 }
429429
430- public static int px2sp (final float pxValue ) {
430+ static int px2sp (final float pxValue ) {
431431 return SizeUtils .px2sp (pxValue );
432432 }
433433
@@ -509,27 +509,4 @@ static Uri file2Uri(final File file) {
509509 ///////////////////////////////////////////////////////////////////////////
510510 static abstract class Task <T > extends ThreadUtils .SimpleTask <T > {
511511 }
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- }
535512}
0 commit comments