Esempio n. 1
0
  /**
   * Returns the last modification time of the key in milliseconds since the epoch. Will return -1L
   * if the key could not be found or other error.
   */
  public long getmtime(String key) {
    try {
      final long millis = mBinder.getmtime(key);
      if (millis == -1L) {
        return -1L;
      }

      return millis * 1000L;
    } catch (RemoteException e) {
      Log.w(TAG, "Cannot connect to keystore", e);
      return -1L;
    }
  }