Home
last modified time | relevance | path

Searched refs:_cache (Results 1 – 25 of 85) sorted by relevance

1234

/external/python/cpython2/Lib/
Dfnmatch.py17 _cache = {} variable
22 _cache.clear()
51 re_pat = _cache[pat]
54 if len(_cache) >= _MAXCACHE:
55 _cache.clear()
56 _cache[pat] = re_pat = re.compile(res)
77 re_pat = _cache[pat]
80 if len(_cache) >= _MAXCACHE:
81 _cache.clear()
82 _cache[pat] = re_pat = re.compile(res)
Dre.py198 _cache.clear()
223 _cache = {} variable
237 p, loc = _cache[cachekey]
253 if len(_cache) >= _MAXCACHE:
254 _cache.clear()
261 _cache[cachekey] = p, loc
/external/chromium-trace/catapult/devil/devil/android/
Dbattery_utils.py200 self._cache = device.GetClientCache(self.__class__.__name__)
217 return (self._cache['profile']['enable_command'] != None
218 and self._cache['profile']['charge_counter'] != None)
239 self._device.ReadFile(self._cache['profile']['charge_counter']))
263 if 'uids' not in self._cache:
264 self._cache['uids'] = {}
278 if (self._cache['uids'].get(current_package)
279 and self._cache['uids'].get(current_package) !=
283 (current_package, self._cache['uids'][current_package],
285 self._cache['uids'][current_package] = entry[_PACKAGE_UID_INDEX]
[all …]
Dbattery_utils_test.py124 self.battery._cache['profile'] = self._NEXUS_5
135 self.battery._cache['profile'] = self._NEXUS_5
146 self.battery._cache['profile'] = self._NEXUS_5
222 self.battery._cache['uids'] = {'test_package1': '1000'}
244 self.battery._cache['uids'] = {'test_package1': '1'}
257 self.battery._cache.clear()
444 self.battery._cache['profile'] = self._NEXUS_6
453 self.battery._cache['profile'] = self._NEXUS_6
464 self.battery._cache['profile'] = self._NEXUS_5
476 self.battery._cache['profile'] = self._NEXUS_5
[all …]
Ddevice_utils.py467 self._cache = {}
582 if 'needs_su' not in self._cache:
591 self._cache['needs_su'] = False
601 self._cache['needs_su'] = True
603 self._cache['needs_su'] = False
604 return self._cache['needs_su']
623 if 'needs_su' in self._cache:
624 del self._cache['needs_su']
687 if not self._cache['external_storage']:
690 return self._cache['external_storage']
[all …]
/external/tensorflow/tensorflow/python/summary/writer/
Dwriter_cache.py35 _cache = {} variable in FileWriterCache
46 for item in FileWriterCache._cache.values():
48 FileWriterCache._cache = {}
61 if logdir not in FileWriterCache._cache:
62 FileWriterCache._cache[logdir] = FileWriter(
64 return FileWriterCache._cache[logdir]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dcache.py38 self._cache = weakref.WeakKeyDictionary()
45 parent = self._cache.get(key, None)
52 parent = self._cache.get(key, None)
56 self._cache[key] = parent = {}
60 return len(self._cache)
/external/python/cpython3/Tools/peg_generator/pegen/
Dparser.py51 if key in self._cache and not self._verbose:
52 tree, endmark = self._cache[key]
59 if key not in self._cache:
68 self._cache[key] = tree, endmark
70 tree, endmark = self._cache[key]
88 if key in self._cache and not self._verbose:
89 tree, endmark = self._cache[key]
95 if key not in self._cache:
109 self._cache[key] = None, mark
132 self._cache[key] = lastresult, lastmark = result, endmark
[all …]
/external/tensorflow/tensorflow/python/framework/
Dop_def_registry.py30 _cache = {} variable
37 return _cache[name]
44 return _cache[name]
54 _cache[name] = op_def
/external/python/cpython3/Lib/multiprocessing/
Dresource_sharer.py65 self._cache = {}
78 self._cache[self._key] = (send, close)
107 for key, (send, close) in self._cache.items():
109 self._cache.clear()
112 for key, (send, close) in self._cache.items():
114 self._cache.clear()
143 send, close = self._cache.pop(key)
Dpool.py197 self._cache = _PoolCache(notifier=self._change_notifier)
225 args=(self._cache, self._taskqueue, self._ctx, self.Process,
238 self._pool, self._cache)
246 args=(self._outqueue, self._quick_get, self._cache)
256 self._result_handler, self._cache),
748 self._cache = pool._cache
751 self._cache[self._job] = self
780 del self._cache[self._job]
802 del self._cache[self._job]
814 del self._cache[self._job]
[all …]
/external/python/cpython2/Lib/compiler/
Dvisitor.py36 self._cache = {}
45 meth = self._cache.get(klass, None)
49 self._cache[klass] = meth
76 meth = self._cache.get(node.__class__, None)
80 self._cache[node.__class__] = meth
/external/python/cpython2/Lib/multiprocessing/
Dpool.py142 self._cache = {}
175 self._pool, self._cache)
183 args=(self._outqueue, self._quick_get, self._cache)
193 self._result_handler, self._cache),
261 result = IMapIterator(self._cache)
268 result = IMapIterator(self._cache)
279 result = IMapUnorderedIterator(self._cache)
286 result = IMapUnorderedIterator(self._cache)
296 result = ApplyResult(self._cache, callback)
316 result = MapResult(self._cache, chunksize, len(iterable), callback)
[all …]
Dreduction.py89 _cache = set() variable
92 global _lock, _listener, _cache
93 for h in _cache:
95 _cache.clear()
126 _cache.remove(handle_wanted)
146 _cache.add(dup_handle)
/external/mesa3d/src/gallium/frontends/lavapipe/
Dlvp_pipeline_cache.c59 VkPipelineCache _cache, in lvp_DestroyPipelineCache() argument
63 LVP_FROM_HANDLE(lvp_pipeline_cache, cache, _cache); in lvp_DestroyPipelineCache()
65 if (!_cache) in lvp_DestroyPipelineCache()
74 VkPipelineCache _cache, in lvp_GetPipelineCacheData() argument
/external/python/cpython3/Lib/
Dre.py256 _cache.clear()
286 _cache = {} # ordered! variable
294 return _cache[type(pattern), pattern, flags]
306 if len(_cache) >= _MAXCACHE:
309 del _cache[next(iter(_cache))]
312 _cache[type(pattern), pattern, flags] = p
/external/python/cpython2/Lib/encodings/
D__init__.py35 _cache = {} variable
74 entry = _cache.get(encoding, _unknown)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/external/freetype/src/cache/
Dftccache.h213 FTC_Cache _cache = FTC_CACHE(cache); \
223 _bucket = _pnode = FTC_NODE_TOP_FOR_HASH( _cache, _hash ); \
234 _nodcomp( _node, query, _cache, &_list_changed ) ) \
243 _bucket = _pnode = FTC_NODE_TOP_FOR_HASH( _cache, _hash ); \
268 FTC_Manager _manager = _cache->manager; \
279 error = FTC_Cache_NewNode( _cache, _hash, query, &_node ); \
/external/python/cpython3/Lib/encodings/
D__init__.py35 _cache = {} variable
73 entry = _cache.get(encoding, _unknown)
117 _cache[encoding] = None
138 _cache[encoding] = entry
/external/pigweed/pw_tokenizer/py/pw_tokenizer/
Dtokens.py125 self._cache: Optional[Dict[int, List[TokenizedStringEntry]]] = None
147 if self._cache is None: # build cache token -> entry cache
148 self._cache = collections.defaultdict(list)
150 self._cache[entry.token].append(entry)
152 return self._cache
184 self._cache = None
205 self._cache = None
222 self._cache = None
239 self._cache = None
263 self._cache = None
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DEncoder.java17 int _cache; field in Encoder
37 _cache = 0; in Init()
57 int temp = _cache; in ShiftLow()
64 _cache = (((int)Low) >>> 24); in ShiftLow()
/external/rust/crates/grpcio-sys/grpc/tools/run_tests/python_utils/
Dwatch_dirs.py30 self._cache = self._calculate()
58 self._cache = self._calculate()
60 return self._cache
/external/grpc-grpc/tools/run_tests/python_utils/
Dwatch_dirs.py29 self._cache = self._calculate()
57 self._cache = self._calculate()
59 return self._cache
/external/python/cpython2/Tools/scripts/
Dfind_recursionlimit.py73 def test_cpickle(_cache={}): argument
82 l = _cache[n]
88 _cache[n] = l
/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoder.cs14 byte _cache; field in SevenZip.Compression.RangeCoder.Encoder
35 _cache = 0; in Init()
69 byte temp = _cache; in ShiftLow()
76 _cache = (byte)(((uint)Low) >> 24); in ShiftLow()

1234