Home | History | Annotate | Download | only in testrunner

Lines Matching full:self

35   def __init__(self, app_path=None):
37 self.ParseManifest(app_path)
39 def GetAppPath(self):
41 return self._app_path
43 def GetPackageName(self):
49 manifest = self._GetManifestElement()
54 def ParseManifest(self, app_path):
63 self._app_path = app_path
64 self._manifest_path = os.path.join(app_path, self.FILENAME)
65 self._dom = xml.dom.minidom.parse(self._manifest_path)
67 def AddUsesSdk(self, min_sdk_version):
73 manifest = self._GetManifestElement()
78 uses_sdk_element = self._dom.createElement('uses-sdk')
82 self._SaveXml()
84 def GetInstrumentationNames(self):
90 instr_elements = self._dom.getElementsByTagName('instrumentation')
96 def _GetManifestElement(self):
102 manifests = self._dom.getElementsByTagName('manifest')
107 def _SaveXml(self):
109 self._dom.writexml(open(self._manifest_path, mode='w'), encoding='utf-8')