• Home
  • Raw
  • Download

Lines Matching refs:cache

50 struct cache {  struct
56 struct cache cache; argument
60 static int check_cache(struct cache* cache) { in check_cache() argument
61 return cache->pinfo && __system_property_serial(cache->pinfo) != cache->serial; in check_cache()
67 static void refresh_cache(struct cache_char* cache, const char* key) { in refresh_cache() argument
70 if (!cache->cache.pinfo) { in refresh_cache()
71 cache->cache.pinfo = __system_property_find(key); in refresh_cache()
72 if (!cache->cache.pinfo) { in refresh_cache()
76 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache()
77 __system_property_read(cache->cache.pinfo, 0, buf); in refresh_cache()
81 cache->c = strcasecmp(buf + 1, "rue") ? buf[0] : BOOLEAN_TRUE; in refresh_cache()
85 cache->c = strcasecmp(buf + 1, "alse") ? buf[0] : BOOLEAN_FALSE; in refresh_cache()
88 cache->c = buf[0]; in refresh_cache()
132 if (check_cache(&tag_cache[i].cache)) { in __android_log_level()
137 if (check_cache(&global_cache[i].cache)) { in __android_log_level()
156 tag_cache[i].cache.pinfo = NULL; in __android_log_level()
183 struct cache_char* cache = &tag_cache[i]; in __android_log_level() local
187 temp_cache.cache.pinfo = NULL; in __android_log_level()
189 cache = &temp_cache; in __android_log_level()
192 refresh_cache(cache, kp); in __android_log_level()
195 if (cache->c) { in __android_log_level()
196 c = cache->c; in __android_log_level()
221 struct cache_char* cache = &global_cache[i]; in __android_log_level() local
225 temp_cache = *cache; in __android_log_level()
226 if (temp_cache.cache.pinfo != cache->cache.pinfo) { /* check atomic */ in __android_log_level()
227 temp_cache.cache.pinfo = NULL; in __android_log_level()
230 cache = &temp_cache; in __android_log_level()
233 refresh_cache(cache, kp); in __android_log_level()
236 if (cache->c) { in __android_log_level()
237 c = cache->c; in __android_log_level()
290 int change_detected = check_cache(&tag_cache.cache); in __android_log_is_debuggable()
332 change_detected = check_cache(&self->cache_persist.cache) || check_cache(&self->cache_ro.cache); in do_cache2_char()
414 struct cache cache; member
418 static void refresh_cache_property(struct cache_property* cache, const char* key) { in refresh_cache_property() argument
419 if (!cache->cache.pinfo) { in refresh_cache_property()
420 cache->cache.pinfo = __system_property_find(key); in refresh_cache_property()
421 if (!cache->cache.pinfo) { in refresh_cache_property()
425 cache->cache.serial = __system_property_serial(cache->cache.pinfo); in refresh_cache_property()
426 __system_property_read(cache->cache.pinfo, 0, cache->property); in refresh_cache_property()
436 property.cache.pinfo = NULL; in __android_logger_property_get_bool()
437 property.cache.serial = 0xFFFFFFFF; in __android_logger_property_get_bool()
440 property.cache.pinfo = NULL; in __android_logger_property_get_bool()
441 property.cache.serial = 0xFFFFFFFF; in __android_logger_property_get_bool()
533 change_detected = check_cache(&self->cache_persist.cache) || check_cache(&self->cache_ro.cache); in do_cache2_property_size()
550 static unsigned long property_get_size_from_cache(const struct cache_property* cache) { in property_get_size_from_cache() argument
552 unsigned long value = strtoul(cache->property, &cp, 10); in property_get_size_from_cache()