Lines Matching refs:key
10 System properties are key/value pairs as exposed by adb shell getprop/setprop.
21 def __getitem__(self, key):
22 if self._IsStatic(key):
23 if key not in self._cached_static_properties:
24 self._cached_static_properties[key] = self._GetProperty(key)
25 return self._cached_static_properties[key]
26 return self._GetProperty(key)
28 def __setitem__(self, key, value):
30 self._adb.SendShellCommand('setprop %s "%s"' % (key, value), retry_count=3)
33 def _IsStatic(key):
35 return (key.startswith('ro.boot.') or
36 key.startswith('ro.build.') or
37 key.startswith('ro.product.'))
39 def _GetProperty(self, key):
40 return self._adb.SendShellCommand('getprop %s' % key, retry_count=3).strip()