Home
last modified time | relevance | path

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

1234567

/system/sepolicy/build/soong/
Dselinux_contexts.go105 func (m *selinuxContextsModule) InstallInRoot() bool {
106 return m.InRecovery()
109 func (m *selinuxContextsModule) InstallInRecovery() bool {
111 return m.InRecovery()
114 func (m *selinuxContextsModule) onlyInRecovery() bool {
116 return m.ModuleBase.InstallInRecovery()
119 func (m *selinuxContextsModule) DepsMutator(ctx android.BottomUpMutatorContext) {
120 if m.deps != nil {
121 m.deps(ctx)
124 if m.InRecovery() && !m.onlyInRecovery() {
[all …]
Dversioned_policy.go75 m := &versionedPolicy{}
76 m.AddProperties(&m.properties)
77 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
78 return m
81 func (m *versionedPolicy) installable() bool {
82 return proptools.BoolDefault(m.properties.Installable, true)
85 func (m *versionedPolicy) DepsMutator(ctx android.BottomUpMutatorContext) {
89 func (m *versionedPolicy) GenerateAndroidBuildActions(ctx android.ModuleContext) {
90 version := proptools.StringDefault(m.properties.Version, "current")
98 if s := proptools.String(m.properties.Stem); s != "" {
[all …]
Dmac_permissions.go73 func (m *macPermissionsModule) DepsMutator(ctx android.BottomUpMutatorContext) {
77 func (m *macPermissionsModule) stem() string {
78 return proptools.StringDefault(m.properties.Stem, m.Name())
91 func (m *macPermissionsModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
93 keys := android.PathsForModuleSrc(ctx, m.properties.Keys)
94 srcs := android.PathsForModuleSrc(ctx, m.properties.Srcs)
106 m.outputPath = android.PathForModuleOut(ctx, m.stem())
112 FlagWithOutput("-o ", m.outputPath).
115 rule.Build("mac_permission", "build "+m.Name())
117 m.installPath = android.PathForModuleInstall(ctx, "etc", "selinux")
[all …]
Dvalidate_bindings.go59 m := &fuzzerBindingsTestModule{tool: "fuzzer_bindings_check"}
60 m.AddProperties(&m.properties)
61 android.InitAndroidArchModule(m, android.DeviceSupported, android.MultilibCommon)
62 return m
65 func (m *fuzzerBindingsTestModule) GenerateAndroidBuildActions(ctx android.ModuleContext) {
66 tool := m.tool
71 if len(m.properties.Srcs) == 0 {
85 srcs := android.PathsForModuleSrc(ctx, m.properties.Srcs)
91 m.testTimestamp = android.PathForModuleOut(ctx, "timestamp")
92 rule.Command().Text("touch").Output(m.testTimestamp)
[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/extras/mtectrl/
Dmtectrl.cc41 bool UpdateProp(const char* prop_name, const misc_memtag_message& m) { in UpdateProp() argument
42 uint32_t mode = m.memtag_mode; in UpdateProp()
207 bool HandleOverride(const std::string& override_value, misc_memtag_message* m) { in HandleOverride() argument
210 if ((m->memtag_mode & MISC_MEMTAG_MODE_MEMTAG_OFF) == 0) { in HandleOverride()
211 m->memtag_mode |= MISC_MEMTAG_MODE_FORCED; in HandleOverride()
213 m->memtag_mode |= MISC_MEMTAG_MODE_MEMTAG_OFF; in HandleOverride()
214 m->memtag_mode &= ~MISC_MEMTAG_MODE_MEMTAG; in HandleOverride()
216 if ((m->memtag_mode & MISC_MEMTAG_MODE_MEMTAG) == 0) { in HandleOverride()
217 m->memtag_mode |= MISC_MEMTAG_MODE_FORCED; in HandleOverride()
219 m->memtag_mode |= MISC_MEMTAG_MODE_MEMTAG; in HandleOverride()
[all …]
Dmtectrl_test.cc44 void Boot(misc_memtag_message m) { in Boot() argument
45 std::string m_str(reinterpret_cast<char*>(&m), sizeof(m)); in Boot()
56 misc_memtag_message m; in Reboot() local
57 ASSERT_EQ(m_str.size(), sizeof(m)); in Reboot()
58 memcpy(&m, m_str.c_str(), sizeof(m)); in Reboot()
59 m.memtag_mode &= ~MISC_MEMTAG_MODE_MEMTAG_ONCE; in Reboot()
60 Boot(m); in Reboot()
123 misc_memtag_message m = {.version = 1, .magic = 0xffff, .memtag_mode = MISC_MEMTAG_MODE_MEMTAG}; in TEST_F() local
124 Boot(m); in TEST_F()
129 misc_memtag_message m = {.version = MISC_MEMTAG_MESSAGE_VERSION, in TEST_F() local
[all …]
/system/tools/aidl/build/
Daidl_api.go86 func (m *aidlApi) apiDir() string {
87 return filepath.Join(aidlApiDir, m.properties.BaseName)
91 func (m *aidlApi) nextVersion() string {
92 return nextVersion(m.properties.Versions)
95 func (m *aidlApi) hasVersion() bool {
96 return len(m.properties.Versions) > 0
99 func (m *aidlApi) latestVersion() string {
100 if !m.hasVersion() {
103 return m.properties.Versions[len(m.properties.Versions)-1]
106 func (m *aidlApi) isFrozen() bool {
[all …]
/system/chre/external/kiss_fft/
Dkiss_fft.c33 int m in kf_bfly2() argument
39 Fout2 = Fout + m; in kf_bfly2()
49 }while (--m); in kf_bfly2()
56 const size_t m in kf_bfly4() argument
61 size_t k=m; in kf_bfly4()
62 const size_t m2=2*m; in kf_bfly4()
63 const size_t m3=3*m; in kf_bfly4()
69 C_FIXDIV(*Fout,4); C_FIXDIV(Fout[m],4); C_FIXDIV(Fout[m2],4); C_FIXDIV(Fout[m3],4); in kf_bfly4()
71 C_MUL(scratch[0],Fout[m] , *tw1 ); in kf_bfly4()
86 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 …]
/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/media/camera/fuzz/
Dlibcamera_metadata_fuzzer.cpp20 camera_metadata_t *m = NULL; in LLVMFuzzerTestOneInput() local
26 m = allocate_camera_metadata(entry_capacity, data_capacity); in LLVMFuzzerTestOneInput()
45 add_camera_metadata_entry(m, tag, data, data_count); in LLVMFuzzerTestOneInput()
46 validate_camera_metadata_structure(m, NULL); in LLVMFuzzerTestOneInput()
59 add_camera_metadata_entry(m, tag, tag_data, data_count); in LLVMFuzzerTestOneInput()
60 validate_camera_metadata_structure(m, NULL); in LLVMFuzzerTestOneInput()
62 if (OK == find_camera_metadata_ro_entry(m, tag, &entry)) { in LLVMFuzzerTestOneInput()
63 delete_camera_metadata_entry(m, entry.index); in LLVMFuzzerTestOneInput()
64 validate_camera_metadata_structure(m, NULL); in LLVMFuzzerTestOneInput()
68 add_camera_metadata_entry(m, tag, tag_data, data_count); in LLVMFuzzerTestOneInput()
[all …]
/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/sepolicy/tests/
Dmini_parser.py39 m = re.match(r"(\d+\.\d+).+\.cil", fn)
40 if m:
41 self.apiLevel = m.group(1)
93 m = re.match(r"type\s+(.+)", stmt)
94 self.types.add(m.group(1))
98 m = re.match(r"expandtypeattribute\s+\((.+)\)\s+(true|false)", stmt)
99 self.expandtypeattributes[m.group(1)] = m.group(2)
103 m = re.match(r"typeattribute\s+(.+)", stmt)
104 self.typeattributes.add(m.group(1))
108 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S)
[all …]
/system/incremental_delivery/incfs/tests/
DMountRegistry_test.cpp103 MountRegistry::Mounts m; in makeFrom() local
104 EXPECT_TRUE(m.loadFrom(f.fd, INCFS_NAME)); in makeFrom()
105 return std::move(m); in makeFrom()
118 auto m = makeFrom(mountsFile); in TEST_F() local
120 EXPECT_EQ(size_t(1), m.size()); in TEST_F()
122 m.rootFor("/data/incremental/MT_data_app_vmdl703/mount/123/2").data()); in TEST_F()
124 m.rootFor("/var/run/mount/data/mount/data/incremental/MT_data_app_vmdl703/mount/" in TEST_F()
139 auto m = makeFrom(mountsFile); in TEST_F() local
141 EXPECT_EQ(size_t(1), m.size()); in TEST_F()
143 m.rootFor("/data/incremental/MT_data_app_vmdl703/mount/123/2").data()); in TEST_F()
[all …]
/system/tools/aidl/scripts/
Dvis_aidl_ver_errors.py32 m = RE_dependencyStart.fullmatch(i) variable
33 if m:
34 last = m.groups()[0]
37 m = RE_dependencyCont.fullmatch(i) variable
38 if m:
39 curr = m.groups()[0]
/system/tools/aidl/
Ddiagnostics.cpp199 for (const auto& m : i.GetMethods()) { in Visit() local
200 if (!m->IsUserDefined()) continue; in Visit()
201 if (Suppressed(*m)) continue; in Visit()
202 if (m->IsOneway()) { in Visit()
215 bool Suppressed(const AidlMethod& m) const { in Suppressed()
216 for (const auto& w : m.GetType().SuppressWarnings()) { in Suppressed()
227 void Visit(const AidlMethod& m) override { in Visit()
228 for (const auto& a : m.GetArguments()) { in Visit()
230 diag.Report(m.GetLocation(), DiagnosticID::out_array) in Visit()
231 << "The method '" << m.GetName() << "' an array output parameter '" << a->GetName() in Visit()
[all …]
Daidl.cpp319 void Visit(const AidlInterface& m) override { in ValidateAnnotationContext()
320 Check(m, AidlAnnotation::CONTEXT_TYPE_INTERFACE); in ValidateAnnotationContext()
322 void Visit(const AidlParcelable& m) override { in ValidateAnnotationContext()
323 Check(m, AidlAnnotation::CONTEXT_TYPE_UNSTRUCTURED_PARCELABLE); in ValidateAnnotationContext()
325 void Visit(const AidlStructuredParcelable& m) override { in ValidateAnnotationContext()
326 Check(m, AidlAnnotation::CONTEXT_TYPE_STRUCTURED_PARCELABLE); in ValidateAnnotationContext()
328 void Visit(const AidlEnumDeclaration& m) override { in ValidateAnnotationContext()
329 Check(m, AidlAnnotation::CONTEXT_TYPE_ENUM); in ValidateAnnotationContext()
331 void Visit(const AidlUnionDecl& m) override { Check(m, AidlAnnotation::CONTEXT_TYPE_UNION); } in ValidateAnnotationContext()
332 void Visit(const AidlMethod& m) override { in ValidateAnnotationContext()
[all …]
/system/netd/include/
DFwmark.h38 Fwmark m; in getUidBillingMask() local
39 m.uidBillingDone = true; in getUidBillingMask()
40 return m.intValue; in getUidBillingMask()
/system/dmesgd/
Ddmesg_parser.cpp61 std::smatch m; in ProcessLine() local
62 if (std::regex_search(line, m, bug_pattern_)) { in ProcessLine()
63 std::string task_re = kTimestampRe + "\\[" + std::string(m[1]) + "\\]\\s"; in ProcessLine()
66 current_title_ = m[2]; in ProcessLine()
67 current_tool_ = m[3]; in ProcessLine()
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/
DUnion.java9 public final static int m = 2; // int m; field in Union
69 public static Union m(int _value) { in m() method in Union
70 return new Union(m, _value); in m()
74 _assertTag(m); in getM()
79 _set(m, _value); in setM()
164 case m: in writeToParcel()
196 case m: { in readFromParcel()
239 case m: return "android.aidl.tests.Union.m(" + (getM()) + ")"; in toString()
273 case m: return "m"; in _tagString()
289 public static final int m = 2; field
/system/update_engine/
Dprotobuflint.py37 m = p.search(output)
38 if m:
41 "is strongly discouraged in protobuf", m.group())
/system/core/libmodprobe/
Dlibmodprobe_test.cpp161 Modprobe m({dir.path}, "modules.load", false); in TEST() local
162 EXPECT_TRUE(m.LoadListedModules()); in TEST()
176 EXPECT_TRUE(m.GetModuleCount() == 15); in TEST()
177 EXPECT_TRUE(m.Remove("test4")); in TEST()
219 Modprobe m({dir.path}); in TEST() local
220 EXPECT_FALSE(m.LoadWithAliases("no_colon", true)); in TEST()

1234567