Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp50 struct group* grp = getgrnam("shell"); in DropRootUser() local
51 gid_t shell_gid = grp != nullptr ? grp->gr_gid : 0; in DropRootUser()
75 grp = getgrnam(group_names[i].c_str()); in DropRootUser()
76 groups[i] = grp != nullptr ? grp->gr_gid : 0; in DropRootUser()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp186 struct group* grp = getgrnam(str); in android_os_Process_getGidForName() local
187 if (grp == NULL) { in android_os_Process_getGidForName()
190 return grp->gr_gid; in android_os_Process_getGidForName()
198 static bool verifyGroup(JNIEnv* env, int grp) in verifyGroup() argument
200 if (grp < SP_DEFAULT || grp >= SP_CNT) { in verifyGroup()
201 signalExceptionForError(env, EINVAL, grp); in verifyGroup()
207 void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) in android_os_Process_setThreadGroup() argument
209 ALOGV("%s tid=%d grp=%" PRId32, __func__, tid, grp); in android_os_Process_setThreadGroup()
210 if (!verifyGroup(env, grp)) { in android_os_Process_setThreadGroup()
214 … int res = SetTaskProfiles(tid, {get_sched_policy_profile_name((SchedPolicy)grp)}, true) ? 0 : -1; in android_os_Process_setThreadGroup()
[all …]
/frameworks/base/tools/aapt/
DCommand.cpp530 static bool hasFeature(const char* name, const FeatureGroup& grp, in hasFeature() argument
533 ssize_t idx = grp.features.indexOfKey(name8); in hasFeature()
557 static void printFeatureGroupImpl(const FeatureGroup& grp, in printFeatureGroupImpl() argument
559 printf("feature-group: label='%s'\n", grp.label.string()); in printFeatureGroupImpl()
561 if (grp.openGLESVersion > 0) { in printFeatureGroupImpl()
562 printf(" uses-gl-es: '0x%x'\n", grp.openGLESVersion); in printFeatureGroupImpl()
565 const size_t numFeatures = grp.features.size(); in printFeatureGroupImpl()
567 const Feature& feature = grp.features[i]; in printFeatureGroupImpl()
571 const String8& featureName = grp.features.keyAt(i); in printFeatureGroupImpl()
585 if (grp.features.indexOfKey(impliedFeature.name) >= 0) { in printFeatureGroupImpl()
[all …]
DAaptAssets.cpp1363 sp<AaptGroup> grp = dir->getFiles().valueAt(j); in filter() local
1366 for (size_t k=0; k<grp->getFiles().size(); k++) { in filter()
1367 sp<AaptFile> file = grp->getFiles().valueAt(k); in filter()
1368 if (k == 0 && grp->getFiles().size() == 1) { in filter()
1390 grp->removeFile(k); in filter()
1403 for (size_t k=0; k<grp->getFiles().size(); k++) { in filter()
1404 sp<AaptFile> file = grp->getFiles().valueAt(k); in filter()
1405 if (k == 0 && grp->getFiles().size() == 1) { in filter()
1428 for (size_t m=0; m<grp->getFiles().size(); m++) { in filter()
1433 sp<AaptFile> mfile = grp->getFiles().valueAt(m); in filter()
[all …]
DResource.cpp51 status_t parsePackage(const sp<AaptGroup>& grp);
221 const sp<AaptGroup>& grp) in parsePackage() argument
223 if (grp->getFiles().size() != 1) { in parsePackage()
225 grp->getFiles().valueAt(0)->getPrintableSource().string()); in parsePackage()
228 sp<AaptFile> file = grp->getFiles().valueAt(0); in parsePackage()
/frameworks/libs/net/common/native/bpf_headers/include/bpf/
Dbpf_helpers.h140 #define DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, \ argument
149 .gid = (grp), \
175 #define DEFINE_BPF_MAP_UGM(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md) \ argument
176 DEFINE_BPF_MAP_EXT(the_map, TYPE, KeyType, ValueType, num_entries, usr, grp, md, "", "", false)
/frameworks/base/services/core/java/com/android/server/textservices/
DTextServicesManagerService.java233 final SpellCheckerBindGroup grp = ent.getValue(); in dump() local
234 pw.println(" " + ent.getKey() + " " + grp + ":"); in dump()
235 pw.println(" " + "mInternalConnection=" + grp.mInternalConnection); in dump()
236 pw.println(" " + "mSpellChecker=" + grp.mSpellChecker); in dump()
237 pw.println(" " + "mUnbindCalled=" + grp.mUnbindCalled); in dump()
238 pw.println(" " + "mConnected=" + grp.mConnected); in dump()
239 final int numPendingSessionRequests = grp.mPendingSessionRequests.size(); in dump()
241 final SessionRequest req = grp.mPendingSessionRequests.get(j); in dump()
248 final int numOnGoingSessionRequests = grp.mOnGoingSessionRequests.size(); in dump()
250 final SessionRequest req = grp.mOnGoingSessionRequests.get(j); in dump()
[all …]
/frameworks/base/libs/androidfw/
DResourceTypes.cpp3853 PackageGroup* const grp = mTable.mPackageGroups[curPackageIndex]; in applyStyle() local
3854 const TypeList& typeList = grp->types[t]; in applyStyle()
4403 const PackageGroup* const grp = mPackageGroups[p]; in getResourceName() local
4404 if (grp == NULL) { in getResourceName()
4410 status_t err = getEntry(grp, t, e, NULL, &entry); in getResourceName()
4415 outName->package = grp->name.string(); in getResourceName()
4416 outName->packageLen = grp->name.size(); in getResourceName()
4466 const PackageGroup* const grp = mPackageGroups[p]; in getResource() local
4467 if (grp == NULL) { in getResource()
4479 status_t err = getEntry(grp, t, e, &desiredConfig, &entry); in getResource()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java1077 final String grp = getNextArg(); in runListPermissions() local
1078 groupList.add(grp); in runListPermissions()
/frameworks/base/core/java/android/view/
DViewRootImpl.java8732 ViewGroup grp = (ViewGroup)view; in dumpViewHierarchy() local
8733 final int N = grp.getChildCount(); in dumpViewHierarchy()
8739 dumpViewHierarchy(prefix, writer, grp.getChildAt(i)); in dumpViewHierarchy()