예제 #1
0
 public static void statistics() {
   if (mCache != null) {
     Log.d(
         TAG,
         "request count:"
             + HttpCache.getRequestCount(mCache)
             + ",network count:"
             + HttpCache.getNetworkCount(mCache)
             + ",hit count:"
             + HttpCache.getHitCount(mCache));
   }
 }
예제 #2
0
 public static void statistics(Context context) {
   if (mCache != null) {
     Toast.makeText(
             context,
             "request count:"
                 + HttpCache.getRequestCount(mCache)
                 + ",network count:"
                 + HttpCache.getNetworkCount(mCache)
                 + ",hit count:"
                 + HttpCache.getHitCount(mCache),
             Toast.LENGTH_SHORT)
         .show();
   }
 }