Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 117) sorted by relevance

12345

/system/sepolicy/build/soong/
Dselinux_contexts.go101 func (m *selinuxContextsModule) inRecovery() bool {
102 return m.properties.InRecovery || m.ModuleBase.InstallInRecovery()
105 func (m *selinuxContextsModule) onlyInRecovery() bool {
106 return m.ModuleBase.InstallInRecovery()
109 func (m *selinuxContextsModule) InstallInRecovery() bool {
110 return m.inRecovery()
113 func (m *selinuxContextsModule) InstallInRoot() bool {
114 return m.inRecovery()
117 func (m *selinuxContextsModule) DepsMutator(ctx android.BottomUpMutatorContext) {
118 if m.deps != nil {
[all …]
/system/media/camera/tests/
Dcamera_metadata_tests.cpp45 #define FINISH_USING_CAMERA_METADATA(m) \ argument
46 EXPECT_EQ(OK, validate_camera_metadata_structure(m, NULL)); \
47 free_camera_metadata(m); \
50 camera_metadata_t *m = NULL; in TEST() local
54 m = allocate_camera_metadata(entry_capacity, data_capacity); in TEST()
56 EXPECT_NOT_NULL(m); in TEST()
57 EXPECT_EQ((size_t)0, get_camera_metadata_entry_count(m)); in TEST()
58 EXPECT_EQ(entry_capacity, get_camera_metadata_entry_capacity(m)); in TEST()
59 EXPECT_EQ((size_t)0, get_camera_metadata_data_count(m)); in TEST()
60 EXPECT_EQ(data_capacity, get_camera_metadata_data_capacity(m)); in TEST()
[all …]
/system/chre/external/kiss_fft/
Dkiss_fft.c25 int m in kf_bfly2() argument
31 Fout2 = Fout + m; in kf_bfly2()
41 }while (--m); in kf_bfly2()
48 const size_t m in kf_bfly4() argument
53 size_t k=m; in kf_bfly4()
54 const size_t m2=2*m; in kf_bfly4()
55 const size_t m3=3*m; in kf_bfly4()
61 C_FIXDIV(*Fout,4); C_FIXDIV(Fout[m],4); C_FIXDIV(Fout[m2],4); C_FIXDIV(Fout[m3],4); in kf_bfly4()
63 C_MUL(scratch[0],Fout[m] , *tw1 ); in kf_bfly4()
78 Fout[m].r = scratch[5].r - scratch[4].i; in kf_bfly4()
[all …]
Dkissfft.hh81 int m = _stageRemainder[stage]; in kf_work() local
83 cpx_type * Fout_end = Fout + p*m; in kf_work()
85 if (m==1) { in kf_work()
98 }while( (Fout += m) != Fout_end ); in kf_work()
105 case 2: kf_bfly2(Fout,fstride,m); break; in kf_work()
106 case 3: kf_bfly3(Fout,fstride,m); break; in kf_work()
107 case 4: kf_bfly4(Fout,fstride,m); break; in kf_work()
108 case 5: kf_bfly5(Fout,fstride,m); break; in kf_work()
109 default: kf_bfly_generic(Fout,fstride,m,p); break; in kf_work()
123 void kf_bfly2( cpx_type * Fout, const size_t fstride, int m) in kf_bfly2() argument
[all …]
D_kiss_fft_guts.h69 # define C_MUL(m,a,b) \ argument
70 do{ (m).r = sround( smul((a).r,(b).r) - smul((a).i,(b).i) ); \
71 (m).i = sround( smul((a).r,(b).i) + smul((a).i,(b).r) ); }while(0)
87 #define C_MUL(m,a,b) \ argument
88 do{ (m).r = (a).r*(b).r - (a).i*(b).i;\
89 (m).i = (a).r*(b).i + (a).i*(b).r; }while(0)
/system/core/libutils/
DFileMap_test.cpp29 android::FileMap m; in TEST() local
30 ASSERT_TRUE(m.create("test", tf.fd, 4096, 0, true)); in TEST()
31 ASSERT_STREQ("test", m.getFileName()); in TEST()
32 ASSERT_EQ(0u, m.getDataLength()); in TEST()
33 ASSERT_EQ(4096, m.getDataOffset()); in TEST()
49 android::FileMap m; in TEST() local
50 ASSERT_TRUE(m.create("test", tf.fd, offset, 0, true)); in TEST()
51 ASSERT_STREQ("test", m.getFileName()); in TEST()
52 ASSERT_EQ(0u, m.getDataLength()); in TEST()
53 ASSERT_EQ(offset, m.getDataOffset()); in TEST()
[all …]
DFileMap_fuzz.cpp36 android::FileMap m; in LLVMFuzzerTestOneInput() local
42 m.create(orig_name.c_str(), tf.fd, offset, length, read_only); in LLVMFuzzerTestOneInput()
43 m.getDataOffset(); in LLVMFuzzerTestOneInput()
44 m.getFileName(); in LLVMFuzzerTestOneInput()
45 m.getDataLength(); in LLVMFuzzerTestOneInput()
46 m.getDataPtr(); in LLVMFuzzerTestOneInput()
48 m.advise(static_cast<android::FileMap::MapAdvice>(enum_index)); in LLVMFuzzerTestOneInput()
/system/extras/boottime_tools/bootanalyze/
Dbugreport_anayze.py163 m = event_pattern.search(line)
164 if m:
165 return event_key, m
170 m = self.re_time_dmesg.search(line)
171 if not m:
174 return int(float(m.group(1)) * 1000)
176 m = self.re_time_logcat.search(line)
177 if not m:
180 mm = int(m.group(1))
181 dd = int(m.group(2))
[all …]
/system/libbase/
Dmapped_file_test.cpp34 auto m = android::base::MappedFile::FromFd(tf.fd, 3, 2, PROT_READ); in TEST() local
35 ASSERT_EQ(2u, m->size()); in TEST()
36 ASSERT_EQ('l', m->data()[0]); in TEST()
37 ASSERT_EQ('o', m->data()[1]); in TEST()
46 auto m = android::base::MappedFile::FromFd(tf.fd, 4096, 0, PROT_READ); in TEST() local
47 EXPECT_EQ(0u, m->size()); in TEST()
48 EXPECT_NE(nullptr, m->data()); in TEST()
/system/bt/profile/avrcp/
Davrcp_message_converter.h67 static std::shared_ptr<::bluetooth::Packet> Parse(tAVRC_MSG* m) { in Parse() argument
70 switch (m->hdr.opcode) { in Parse()
72 tAVRC_MSG_VENDOR* msg = (tAVRC_MSG_VENDOR*)m; in Parse()
73 data.push_back(m->hdr.ctype); in Parse()
74 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
75 data.push_back(m->hdr.opcode); in Parse()
84 tAVRC_MSG_PASS* msg = (tAVRC_MSG_PASS*)m; in Parse()
85 data.push_back(m->hdr.ctype); in Parse()
86 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
87 data.push_back(m->hdr.opcode); in Parse()
[all …]
/system/bt/gd/packet/
Dpython3_module.cc64 PYBIND11_MODULE(bluetooth_packets_python3, m) { in PYBIND11_MODULE() argument
65 py::class_<BasePacketBuilder, std::shared_ptr<BasePacketBuilder>>(m, "BasePacketBuilder"); in PYBIND11_MODULE()
66 py::class_<RawBuilder, BasePacketBuilder, std::shared_ptr<RawBuilder>>(m, "RawBuilder") in PYBIND11_MODULE()
76 m, "PacketBuilderLittleEndian"); in PYBIND11_MODULE()
78 m, "PacketBuilderBigEndian"); in PYBIND11_MODULE()
79 py::class_<BaseStruct, std::shared_ptr<BaseStruct>>(m, "BaseStruct"); in PYBIND11_MODULE()
81 m, "PacketStructLittleEndian"); in PYBIND11_MODULE()
83 m, "PacketStructBigEndian"); in PYBIND11_MODULE()
84 py::class_<Iterator<kLittleEndian>>(m, "IteratorLittleEndian"); in PYBIND11_MODULE()
85 py::class_<Iterator<!kLittleEndian>>(m, "IteratorBigEndian"); in PYBIND11_MODULE()
[all …]
/system/sepolicy/tests/
Dmini_parser.py27 m = re.match(r"(\d+\.\d+).+\.cil", fn)
28 if m:
29 self.apiLevel = m.group(1)
81 m = re.match(r"type\s+(.+)", stmt)
82 self.types.add(m.group(1))
86 m = re.match(r"expandtypeattribute\s+\((.+)\)\s+(true|false)", stmt)
87 self.expandtypeattributes[m.group(1)] = m.group(2)
91 m = re.match(r"typeattribute\s+(.+)", stmt)
92 self.typeattributes.add(m.group(1))
96 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S)
[all …]
Dcombine_maps.py44 m = re.match(r"(\w+)_\d+_\d+", top_ta)
46 bottom_type = m.group(1) if m else top_ta
/system/tools/aidl/build/
Daidl_interface.go152 mctx.VisitDirectDepsIf(func(m android.Module) bool {
153 return android.InList(m.Name(), *unstableModules(mctx.Config()))
154 }, func(m android.Module) {
155 if mctx.ModuleName() == m.Name() {
164 …mctx.ModuleErrorf(m.Name() + " is disallowed in release version because it is unstable, and its \"…
544 func (m *aidlApi) apiDir() string {
545 return filepath.Join(aidlApiDir, m.properties.BaseName)
549 func (m *aidlApi) nextVersion(ctx android.ModuleContext) string {
550 if len(m.properties.Versions) == 0 {
553 latestVersion := m.properties.Versions[len(m.properties.Versions)-1]
[all …]
/system/netd/include/
DFwmark.h36 Fwmark m; in getUidBillingMask() local
37 m.uidBillingDone = true; in getUidBillingMask()
38 return m.intValue; in getUidBillingMask()
/system/core/libmodprobe/
Dlibmodprobe_test.cpp149 Modprobe m({dir.path}); in TEST() local
150 EXPECT_TRUE(m.LoadListedModules()); in TEST()
164 EXPECT_TRUE(m.GetModuleCount() == 15); in TEST()
165 EXPECT_TRUE(m.Remove("test4")); in TEST()
179 m.EnableBlocklist(true); in TEST()
180 EXPECT_FALSE(m.LoadWithAliases("test4", true)); in TEST()
/system/bt/stack/test/
Dcrypto_toolbox_test.cc38 uint8_t m[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, in TEST() local
47 aes_encrypt(m, output, &ctx); /* outputs in byte 48 to byte 63 */ in TEST()
84 Octet16 m = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, in TEST() local
92 std::reverse(std::begin(m), std::end(m)); in TEST()
95 Octet16 output = aes_cmac(k, m); in TEST()
111 uint8_t m[] = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, in TEST() local
121 std::reverse(std::begin(m), std::end(m)); in TEST()
124 Octet16 output = aes_cmac(k, m, sizeof(m)); in TEST()
133 uint8_t m[] = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, in TEST() local
146 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox_test.cc34 …uint8_t m[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,… in TEST() local
42 aes_encrypt(m, output, &ctx); /* outputs in byte 48 to byte 63 */ in TEST()
76 …Octet16 m = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, 0… in TEST() local
82 std::reverse(std::begin(m), std::end(m)); in TEST()
85 Octet16 output = aes_cmac(k, m); in TEST()
100 uint8_t m[] = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93, in TEST() local
108 std::reverse(std::begin(m), std::end(m)); in TEST()
111 Octet16 output = aes_cmac(k, m, sizeof(m)); in TEST()
119 …uint8_t m[] = {0x6b, 0xc1, 0xbe, 0xe2, 0x2e, 0x40, 0x9f, 0x96, 0xe9, 0x3d, 0x7e, 0x11, 0x73, 0x93,… in TEST() local
128 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/sepolicy/tools/
Dcheck_seapp.c131 key_map m[]; /** key value mapping */ member
448 static bool key_map_validate(key_map *m, const char *filename, int lineno, in key_map_validate() argument
454 char *key = m->name; in key_map_validate()
455 char *value = m->data; in key_map_validate()
466 if (!m->regex.compiled) { in key_map_validate()
467 rc = compile_regex(m, &errcode, &erroff); in key_map_validate()
480 if (m->fn_validate) { in key_map_validate()
481 rc = m->fn_validate(value, &errmsg); in key_map_validate()
504 key_map *m; in rule_map_print() local
507 m = &(r->m[i]); in rule_map_print()
[all …]
/system/extras/simpleperf/scripts/
Ddebug_unwind_reporter.py337 m = re.search(r'ip\s+0x(\w+),\s+sp\s+0x(\w+)$', line)
338 if m:
339 ips.append(int(m.group(1), 16))
340 sps.append(int(m.group(2), 16))
351 m = re.match(r'(.*)\[\+(\w+)\]\)', line[break_pos + 1:])
352 if m:
354 filenames.append(m.group(1))
355 vaddr_in_files.append(int(m.group(2), 16))
400 m = re.search(r'pid\s+(\d+).+addr\s+0x(\w+).+len\s+0x(\w+)', lines[i])
401 if m:
[all …]
/system/libvintf/
Dparse_xml.cpp687 void mutateNode(const ManifestHal& m, NodeType* root, DocType* d) const override { in mutateNode()
688 mutateNode(m, root, d, SerializeFlags::EVERYTHING); in mutateNode()
913 void mutateNode(const Version &m, NodeType *root, DocType *d) const override { in mutateNode()
914 appendChild(root, versionConverter(m, d)); in mutateNode()
974 void mutateNode(const HalManifest &m, NodeType *root, DocType *d) const override { in mutateNode()
975 mutateNode(m, root, d, SerializeFlags::EVERYTHING); in mutateNode()
977 void mutateNode(const HalManifest& m, NodeType* root, DocType* d, in mutateNode()
980 appendAttr(root, "version", m.getMetaVersion()); in mutateNode()
983 appendAttr(root, "type", m.mType); in mutateNode()
987 appendChildren(root, manifestHalConverter, m.getHals(), d, flags); in mutateNode()
[all …]
/system/apex/tests/src/com/android/tests/apex/
DMediaHostTest.java63 Matcher m = EXTRACTOR_PLUGIN_REGEX.matcher(line); in checkMediaExtractor() local
64 if (m.matches()) { in checkMediaExtractor()
67 m.group(5).startsWith(MEDIA_APEX_PATH)); in checkMediaExtractor()
/system/core/toolbox/
Dgenerate-input.h-labels.py44 m = r.match(line) variable
45 if m:
46 name = m.group(1)
Dmodprobe.cpp218 Modprobe m(mod_dirs); in modprobe_main() local
220 m.EnableBlocklist(true); in modprobe_main()
226 if (!m.LoadWithAliases(module, true, module_parameters)) { in modprobe_main()
232 if (!m.Remove(module)) { in modprobe_main()
238 std::vector<std::string> list = m.ListModules(module); in modprobe_main()
246 if (!m.GetAllDependencies(module, &pre_deps, &deps, &post_deps)) { in modprobe_main()
/system/tools/aidl/
Daidl_language.cpp1045 for (const auto& m : this->GetMethods()) { in LanguageSpecificCheckValid()
1046 if (!m->GetType().LanguageSpecificCheckValid(typenames, lang)) { in LanguageSpecificCheckValid()
1049 for (const auto& arg : m->GetArguments()) { in LanguageSpecificCheckValid()
1114 for (const auto& m : GetMethods()) { in CheckValid() local
1115 if (!m->GetType().CheckValid(typenames)) { in CheckValid()
1120 if (m->GetType().GetName() == "ParcelableHolder") { in CheckValid()
1121 AIDL_ERROR(m) << "ParcelableHolder cannot be a return type"; in CheckValid()
1124 if (m->IsOneway() && m->GetType().GetName() != "void") { in CheckValid()
1125 AIDL_ERROR(m) << "oneway method '" << m->GetName() << "' cannot return a value"; in CheckValid()
1130 for (const auto& arg : m->GetArguments()) { in CheckValid()
[all …]

12345