Searched refs:_cache (Results 1 - 25 of 68) sorted by relevance

123

/external/tensorflow/tensorflow/python/summary/writer/
H A Dwriter_cache.py35 _cache = {} variable in class: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/python/cpython2/Lib/
H A 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[pa
[all...]
H A 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/
H A Dbattery_utils.py199 self._cache = device.GetClientCache(self.__class__.__name__)
216 return (self._cache['profile']['enable_command'] != None
217 and self._cache['profile']['charge_counter'] != None)
238 self._cache['profile']['charge_counter']))
256 if 'uids' not in self._cache:
257 self._cache['uids'] = {}
258 if package not in self._cache['uids']:
260 if package not in self._cache['uids']:
265 network_data_path = '/proc/uid_stat/%s/' % self._cache['uids'][package]
301 if 'uids' not in self._cache
[all...]
H A Dbattery_utils_test.py109 self.battery._cache['profile'] = self._NEXUS_5
119 self.battery._cache['profile'] = self._NEXUS_5
129 self.battery._cache['profile'] = self._NEXUS_5
205 self.battery._cache['uids'] = {'test_package1': '1000'}
222 self.battery._cache['uids'] = {'test_package1': '1'}
237 self.battery._cache.clear()
437 self.battery._cache['uids'] = {'test_package1': '1000'}
451 self.battery._cache.clear()
459 self.battery._cache['profile'] = self._NEXUS_6
467 self.battery._cache['profil
[all...]
H A Ddevice_utils.py340 self._cache = {}
440 if 'needs_su' not in self._cache:
444 self._cache['needs_su'] = False
451 self._cache['needs_su'] = True
453 self._cache['needs_su'] = False
454 return self._cache['needs_su']
474 if 'needs_su' in self._cache:
475 del self._cache['needs_su']
531 if not self._cache['external_storage']:
534 return self._cache['external_storag
[all...]
/external/libmojo/third_party/catapult/devil/devil/android/
H A Dbattery_utils.py155 self._cache = device.GetClientCache(self.__class__.__name__)
172 return (self._cache['profile']['enable_command'] != None
173 and self._cache['profile']['charge_counter'] != None)
194 self._cache['profile']['charge_counter']))
212 if 'uids' not in self._cache:
213 self._cache['uids'] = {}
214 if package not in self._cache['uids']:
216 if package not in self._cache['uids']:
221 network_data_path = '/proc/uid_stat/%s/' % self._cache['uids'][package]
257 if 'uids' not in self._cache
[all...]
H A Ddevice_utils.py276 self._cache = {}
369 if 'needs_su' not in self._cache:
375 self._cache['needs_su'] = True
377 self._cache['needs_su'] = False
378 return self._cache['needs_su']
400 if 'needs_su' in self._cache:
401 del self._cache['needs_su']
440 if not self._cache['external_storage']:
443 return self._cache['external_storage']
458 cached_result = self._cache['package_apk_path
[all...]
H A Dbattery_utils_test.py109 self.battery._cache['profile'] = self._NEXUS_5
118 self.battery._cache['profile'] = self._NEXUS_5
127 self.battery._cache['profile'] = self._NEXUS_5
202 self.battery._cache['uids'] = {'test_package1': '1000'}
219 self.battery._cache['uids'] = {'test_package1': '1'}
234 self.battery._cache.clear()
434 self.battery._cache['uids'] = {'test_package1': '1000'}
448 self.battery._cache.clear()
456 self.battery._cache['profile'] = self._NEXUS_6
464 self.battery._cache['profil
[all...]
/external/libunwind/doc/
H A Dunw_flush_cache.tex8 \begin{Name}{3}{unw\_flush\_cache}{David Mosberger-Tang}{Programming Library}{unw\_flush\_cache}unw\_flush\_cache -- flush cached info
15 \Type{void} \Func{unw\_flush\_cache}(\Type{unw\_addr\_space\_t} \Var{as}, \Type{unw\_word\_t} \Var{lo}, \Type{unw\_word\_t} \Var{hi});\\
19 The \Func{unw\_flush\_cache}() routine flushes all cached info as it
27 \Func{unw\_flush\_cache}() may flush more information than requested,
28 but \emph{never} less. In other words, \Func{unw\_flush\_cache}() may
36 The \Func{unw\_flush\_cache}() routine cannot fail and does not
41 The \Func{unw\_flush\_cache}() routine is thread-safe as well as safe to
/external/python/cpython2/Lib/encodings/
H A D__init__.py35 _cache = {} variable
74 entry = _cache.get(encoding, _unknown)
116 _cache[encoding] = None
140 _cache[encoding] = entry
/external/python/cpython2/Lib/test/
H A Dtest_fnmatch.py6 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache namespace
7 from fnmatch import fnmatch, fnmatchcase, _MAXCACHE, _cache, _purge namespace
65 self.assertLessEqual(len(_cache), _MAXCACHE)
/external/python/cpython2/Tools/scripts/
H A Dfind_recursionlimit.py73 def test_cpickle(_cache={}):
82 l = _cache[n]
88 _cache[n] = l
/external/python/cpython3/Tools/scripts/
H A Dfind_recursionlimit.py73 def test_cpickle(_cache={}):
83 l = _cache[n]
90 _cache[n] = l
/external/python/cpython2/Lib/compiler/
H A 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/cpython3/Lib/multiprocessing/
H A Dresource_sharer.py65 self._cache = {}
79 self._cache[self._key] = (send, close)
108 for key, (send, close) in self._cache.items():
110 self._cache.clear()
113 for key, (send, close) in self._cache.items():
115 self._cache.clear()
147 send, close = self._cache.pop(key)
/external/python/cpython2/Lib/multiprocessing/
H A 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/toolchain-utils/bestflags/
H A Dpipeline_process.py70 self._cache = cache
94 args=(self._stage, self._cache, self._helper_queue, self._work_queue,
97 mycache = self._cache.keys()
/external/lzma/Java/SevenZip/Compression/RangeCoder/
H A DEncoder.java17 int _cache; field in class:Encoder
37 _cache = 0;
57 int temp = _cache;
64 _cache = (((int)Low) >>> 24);
/external/python/cpython3/Lib/encodings/
H A D__init__.py35 _cache = {} variable
74 entry = _cache.get(encoding, _unknown)
118 _cache[encoding] = None
139 _cache[encoding] = entry
/external/valgrind/helgrind/
H A Dhg_wordset.c87 WCache* _cache = &(_zzcache); \
88 tl_assert(_cache->dynMax >= 1); \
89 tl_assert(_cache->dynMax <= N_WCACHE_STAT_MAX); \
90 tl_assert(_cache->inUse >= 0); \
91 tl_assert(_cache->inUse <= _cache->dynMax); \
92 if (_cache->inUse > 0) { \
93 if (_cache->ent[0].arg1 == _arg1 \
94 && _cache->ent[0].arg2 == _arg2) \
95 return (_retty)_cache
[all...]
/external/autotest/scheduler/
H A Drdb_cache_manager.py182 self._cache = {}
185 return self._cache[key]
188 self._cache[key] = value
191 self._cache.pop(key)
194 return key in self._cache
/external/lzma/CS/7zip/Compress/RangeCoder/
H A DRangeCoder.cs14 byte _cache; field in class:SevenZip.Compression.RangeCoder.Encoder
35 _cache = 0;
69 byte temp = _cache;
76 _cache = (byte)(((uint)Low) >> 24);
/external/freetype/src/cache/
H A 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/
H A Dre.py237 _cache.clear()
281 _cache = {} variable
289 p, loc = _cache[type(pattern), pattern, flags]
303 if len(_cache) >= _MAXCACHE:
304 _cache.clear()
311 _cache[type(pattern), pattern, flags] = p, loc

Completed in 484 milliseconds

123