コード例 #1
0
 public static boolean shouldFetchProvisioning(CarrierBillingStorage carrierBillingStorage) {
   return shouldFetchProvisioning(
       carrierBillingStorage,
       System.currentTimeMillis(),
       SystemClock.elapsedRealtime(),
       ((Long) BillingPreferences.LAST_PROVISIONING_TIME_MILLIS.get()).longValue(),
       ((Long) BillingPreferences.EARLIEST_PROVISIONING_CHECK_TIME_MILLIS.get()).longValue());
 }
コード例 #2
0
 private void updateBillingPreferences(long now) {
   BillingPreferences.EARLIEST_PROVISIONING_CHECK_TIME_MILLIS.put(
       Long.valueOf(
           now
               + Math.min(
                   ((Long) G.vendingCarrierProvisioningRefreshFrequencyMs.get()).longValue(),
                   ((Long) G.vendingCarrierProvisioningRetryMs.get()).longValue())));
   BillingPreferences.LAST_PROVISIONING_TIME_MILLIS.put(Long.valueOf(now));
 }