Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/device/google/trout/tools/
Dbpttool226 def __init__(self, chunk_type, chunk_offset, output_offset, output_size, argument
241 self.chunk_type = chunk_type
242 self.chunk_offset = chunk_offset
243 self.output_offset = output_offset
244 self.output_size = output_size
245 self.input_offset = input_offset
246 self.fill_data = fill_data
248 if self.chunk_type == self.TYPE_RAW:
249 if self.fill_data is not None:
251 if not self.input_offset:
[all …]
Dlogcat_diff.py38 def __init__(self, fp, keep_mismatches=False): argument
39 self.filename = fp
40 self.mismatches = 0
41 self.messages = []
42 self.rgx = re.compile(RE_TEXT, re.MULTILINE)
45 match = self.rgx.match(line)
49 self.messages.append("%s: %s" % (component, message))
51 self.messages.append(line)
53 self.mismatches += 1
54 def save(self): argument
[all …]
/device/google/trout/tools/tracing/tooling/
Dtracing_agent.py96 def __init__(self, name='TracingAgent'): argument
97 self.name = name
98 self.thread = Thread(target=self.run)
99 self.error_msg = None
104 def startTracing(self): argument
110 def copyTracingFile(self): argument
116 def parseTracingFile(self): argument
119 def verbose_print(self, str): argument
120 if self.verbose:
123 def run(self): argument
[all …]
Dcalculate_time_offset.py42 def __init__(self, clock_name, mode): argument
44 self.time_cmd += f' {clock_name}'
48 self.time_cmd = f'{self.time_cmd} --trace'
49 def GetTime(self): argument
52 def ParseTime(self, time_str): argument
67 def TraceTime(self, ts_str): argument
74 self.cpu_ts = int(lines[0])
75 self.clock_ts = int(lines[1])
76 self.cpu_cycles = float(lines[2])
79 def __init__(self, host_username, host_ip, clock_name, mode): argument
[all …]
/device/linaro/dragonboard/shared/utils/qrtr/
Dqrtr.py14 def __init__(self, port=0): argument
15 self.sock = _qrtr.qrtr_open(port)
16 if self.sock < 0:
18 self.service = None
19 self._qrtr = _qrtr
21 def __del__(self): argument
22 self._qrtr.qrtr_close(self.sock)
24 def _lookup_list_add(self, ptr, srv, instance, node, port): argument
28 def lookup(self, srv, instance=0, ifilter=0): argument
30 err = _qrtr.qrtr_lookup(self.sock, srv, instance, ifilter,
[all …]
/device/google/cuttlefish_vmm/qemu/scripts/
Drebuild.py203 def __init__(self, build_dir: Path, top_dir: Path, target_arch: Architecture): argument
204 self._target_arch = target_arch
205 self._build_dir = build_dir
206 self._sysroot_dir = build_dir / "sysroot"
207 self._install_dir = build_dir / "dest-install"
208 self._prebuilts_dir = top_dir / "prebuilts"
209 self._clang_dir = self._prebuilts_dir / "clang" / f"clang-{_CLANG_VERSION}"
210 self._third_party_dir = top_dir / "third_party"
211 self._env = create_dev_environment(
212 self._build_dir,
[all …]
/device/google/trout/agl_services_build/yocto-layer/meta-google/recipes-trout/images/machine-image/sa81x5/google-overlay/usr/bin/
Dgnss_replay.py30 def __init__(self, prefix, lines): argument
31 self.idx = 0
32 self.lines = []
35 self.lines.append(line.strip('\n'))
37 def next(self): argument
39 if len(self.lines) > 0:
40 line = self.lines[self.idx]
41 self.idx = (self.idx + 1) % len(self.lines)
44 def __str__(self): argument
45 return str(self.lines)
[all …]
/device/google/trout/hal/gnss/host/
Dgnss_replay.py30 def __init__(self, prefix, lines): argument
31 self.idx = 0
32 self.lines = []
35 self.lines.append(line.strip('\n'))
37 def next(self): argument
39 if len(self.lines) > 0:
40 line = self.lines[self.idx]
41 self.idx = (self.idx + 1) % len(self.lines)
44 def __str__(self): argument
45 return str(self.lines)
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
Dgen_entries.py39 def __init__(self, func_name, return_type, parameters): argument
44 self.func_name = func_name
45 self.return_type = return_type
46 self.parameters = ""
47 self.vartypes = []
48 self.varnames = []
49 self.call = ""
52 self.vartypes.append(param[0])
53 self.varnames.append(param[1])
54 self.parameters += "%s%s %s" % (comma, param[0], param[1])
[all …]
/device/generic/opengl-transport/host/commands/emugen/tests/t.001/expected/encoder/
Dfoo_enc.cpp22 void fooAlphaFunc_enc(void *self , FooInt func, FooFloat ref) in fooAlphaFunc_enc() argument
25 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooAlphaFunc_enc()
48 FooBoolean fooIsBuffer_enc(void *self , void* stuff) in fooIsBuffer_enc() argument
51 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooIsBuffer_enc()
90 void fooDoEncoderFlush_enc(void *self , FooInt param) in fooDoEncoderFlush_enc() argument
93 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooDoEncoderFlush_enc()
116 void fooTakeConstVoidPtrConstPtr_enc(void *self , const void* const* param) in fooTakeConstVoidPtrConstPtr_enc() argument
119 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooTakeConstVoidPtrConstPtr_enc()
143 void fooSetComplexStruct_enc(void *self , const FooStruct* obj) in fooSetComplexStruct_enc() argument
146 foo_encoder_context_t *ctx = (foo_encoder_context_t *)self; in fooSetComplexStruct_enc()
[all …]
/device/generic/goldfish/sepolicy/vendor/
Dgoldfish_setup.te9 allow goldfish_setup self:capability { fowner chown net_admin net_raw };
10 allow goldfish_setup self:udp_socket { create ioctl };
13 allowxperm goldfish_setup self:udp_socket ioctl priv_sock_ioctls;
23 allow goldfish_setup self:netlink_route_socket { create nlmsg_write setopt bind getattr read write …
24 allow goldfish_setup self:netlink_generic_socket create_socket_perms_no_ioctl;
25 allow goldfish_setup self:capability { sys_module sys_admin };
36 dontaudit goldfish_setup self:capability dac_override;
Ddhcpclient.te10 allow dhcpclient self:capability { net_admin net_raw sys_module };
11 allow dhcpclient self:netlink_route_socket { ioctl write nlmsg_write };
13 allow dhcpclient self:packet_socket { create bind write read };
14 allowxperm dhcpclient self:netlink_route_socket ioctl { SIOCGIFFLAGS
/device/google/redbull-sepolicy/vendor/qcom/common/
Dnetmgrd.te35 allow netmgrd self:netlink_route_socket nlmsg_write;
36 allow netmgrd self:netlink_socket create_socket_perms_no_ioctl;
37 allow netmgrd self:netlink_xfrm_socket create_socket_perms_no_ioctl;
38 allow netmgrd self:netlink_generic_socket create_socket_perms_no_ioctl;
39 allow netmgrd self:qipcrtr_socket create_socket_perms_no_ioctl;
48 allowxperm netmgrd self:udp_socket ioctl priv_sock_ioctls;
Dlocation.te28 allow location self:capability setgid;
29 allow location self:qipcrtr_socket create_socket_perms_no_ioctl;
32 allow location self:netlink_generic_socket create_socket_perms_no_ioctl;
33 allow location self:netlink_socket create_socket_perms_no_ioctl;
34 allowxperm location self:udp_socket ioctl lowi_server_ioctls;
/device/linaro/dragonboard/shared/utils/dlkm_loader/sepolicy/
Ddlkm_loader.te6 allow dlkm_loader self:capability net_admin;
7 allow dlkm_loader self:capability sys_module;
20 # Once we remove CONFIG_USB_DUMMY_HCD config, self:key write permission can be
22 allow dlkm_loader self:key write;
27 allow dlkm_loader self:capability sys_nice;
/device/generic/goldfish-opengl/
Dcmake_transform.py39 def __init__(self, *args, **kwargs): argument
40 super(AttrDict, self).__init__(*args, **kwargs)
41 self.__dict__ = self
43 def as_list(self, name): argument
44 v = self.get(name, [])
/device/google/coral-sepolicy/vendor/qcom/common/
Dlocation.te8 allow location self:capability setgid;
25 allow location self:netlink_route_socket read;
26 allow location self:{
31 allow location self:udp_socket create_socket_perms;
32 allowxperm location self:udp_socket ioctl { SIOCGIFINDEX SIOCGIFHWADDR SIOCIWFIRSTPRIV_05 };
Dcnd.te9 allow cnd self:capability net_bind_service;
15 allow cnd self:capability2 block_suspend;
17 allow cnd self:udp_socket create_socket_perms;
18 allow cnd self:{
25 allowxperm cnd self:udp_socket ioctl SIOCGIFMTU;
/device/linaro/dragonboard/shared/graphics/swangle/sepolicy/
Dsw_execmem.te2 allow bootanim self:process execmem;
3 allow surfaceflinger self:process execmem;
4 allow system_server self:process execmem;
5 allow zygote self:process execmem;
/device/linaro/dragonboard/sepolicy/
Dqrtr.te5 allow qrtr self:capability net_admin;
6 allow qrtr self:capability sys_admin;
7 allow qrtr self:qipcrtr_socket create_socket_perms_no_ioctl;
8 allow qrtr self:netlink_route_socket { create nlmsg_write read write };
Dset_ethaddr.te8 allow set_ethaddr self:capability net_admin;
9 allow set_ethaddr self:capability sys_module;
10 allow set_ethaddr self:udp_socket create_socket_perms;
13 allowxperm set_ethaddr self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR };
/device/generic/opengl-transport/host/libs/virglrenderer/GLESv3_dec/
Dgles3.attrib175 len params glSizeof(glesv2_enc::uniformType(self, program, location))
179 len params glSizeof(glesv2_enc::uniformType(self, program, location))
192 len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 1)
202 len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 0)
206 len pixels glesv2_enc::pixelDataSize(self, width, height, format, type, 0)
266 len pixels glesv2_enc::pixelDataSize3D(self, width, height, depth, format, type, 0)
270 len pixels glesv2_enc::pixelDataSize3D(self, width, height, depth, format, type, 0)
511 len value (sizeof(GLint) * glesv2_enc::clearBufferNumElts(self, buffer))
515 len value (sizeof(GLuint) * glesv2_enc::clearBufferNumElts(self, buffer))
519 len value (sizeof(GLfloat) * glesv2_enc::clearBufferNumElts(self, buffer))
[all …]
/device/generic/trusty/sepolicy/
Ddhcpclient.te9 allow dhcpclient self:capability { net_admin net_raw };
10 allow dhcpclient self:netlink_route_socket { ioctl write nlmsg_write };
12 allow dhcpclient self:packet_socket { create bind write read };
13 allowxperm dhcpclient self:netlink_route_socket ioctl { SIOCGIFFLAGS
/device/google/cuttlefish_vmm/
Dgen_android_bp.py52 def dir(self) -> Path: argument
83 def name(self) -> str: argument
84 assert isinstance(self.parameters.get("name"), str)
85 return self.parameters["name"]
87 def __str__(self) -> str: argument
90 f"{k}: {value_to_bp(v)}," for k, v in self.parameters.items()
/device/google/gs101-sepolicy/whitechapel/vendor/google/
Dhal_uwb_vendor.te10 allow hal_uwb_vendor self:udp_socket create_socket_perms;
11 allowxperm hal_uwb_vendor self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFHWADDR SIOCETHTOOL };
12 allow hal_uwb_vendor self:global_capability_class_set { net_admin };
15 allow hal_uwb_vendor self:netlink_generic_socket create_socket_perms_no_ioctl;

12345678910>>...13