(self)
Clears all caches.
Clears all caches.
Clears all caches .
def _ClearCache(self):
    """Clears all caches."""
    for client in self._client_caches:
      self._client_caches[client].clear()
    self._cache = {
        # Map of packageId -> list of on-device .apk paths
        'package_apk_paths': {},
        # Set of packageId that were loaded from LoadCacheData and not yet
        # verified.
        'package_apk_paths_to_verify': set(),
        # Map of packageId -> set of on-device .apk checksums
        'package_apk_checksums': {},
        # Map of property_name -> value
        'getprop': {},
        # Map of device_path -> [ignore_other_files, map of path->checksum]
        'device_path_checksums': {},
        # Location of sdcard ($EXTERNAL_STORAGE).
        'external_storage': None,
        # Token used to detect when LoadCacheData is stale.
        'token': None,
        'prev_token': None,
    }
def _ClearCache ( self ) : for client in self . _client_caches : self . _client_caches [ client ] . clear ( ) self . _cache = { # Map of packageId -> list of on-device .apk paths 'package_apk_paths' : { } , # Set of packageId that were loaded from LoadCacheData and not yet # verified. 'package_apk_paths_to_verify' : set ( ) , # Map of packageId -> set of on-device .apk checksums 'package_apk_checksums' : { } , # Map of property_name -> value 'getprop' : { } , # Map of device_path -> [ignore_other_files, map of path->checksum] 'device_path_checksums' : { } , # Location of sdcard ($EXTERNAL_STORAGE). 'external_storage' : None , # Token used to detect when LoadCacheData is stale. 'token' : None , 'prev_token' : None , }