/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 50 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/ |
D | android_util_Process.cpp | 187 struct group* grp = getgrnam(str); in android_os_Process_getGidForName() local 188 if (grp == NULL) { in android_os_Process_getGidForName() 191 return grp->gr_gid; in android_os_Process_getGidForName() 199 static bool verifyGroup(JNIEnv* env, int grp) in verifyGroup() argument 201 if (grp < SP_DEFAULT || grp >= SP_CNT) { in verifyGroup() 202 signalExceptionForError(env, EINVAL, grp); in verifyGroup() 208 void android_os_Process_setThreadGroup(JNIEnv* env, jobject clazz, int tid, jint grp) in android_os_Process_setThreadGroup() argument 210 ALOGV("%s tid=%d grp=%" PRId32, __func__, tid, grp); in android_os_Process_setThreadGroup() 211 if (!verifyGroup(env, grp)) { in android_os_Process_setThreadGroup() 215 … int res = SetTaskProfiles(tid, {get_sched_policy_profile_name((SchedPolicy)grp)}, true) ? 0 : -1; in android_os_Process_setThreadGroup() [all …]
|
/frameworks/base/tools/aapt/ |
D | Command.cpp | 531 static bool hasFeature(const char* name, const FeatureGroup& grp, in hasFeature() argument 534 ssize_t idx = grp.features.indexOfKey(name8); in hasFeature() 558 static void printFeatureGroupImpl(const FeatureGroup& grp, in printFeatureGroupImpl() argument 560 printf("feature-group: label='%s'\n", grp.label.c_str()); in printFeatureGroupImpl() 562 if (grp.openGLESVersion > 0) { in printFeatureGroupImpl() 563 printf(" uses-gl-es: '0x%x'\n", grp.openGLESVersion); in printFeatureGroupImpl() 566 const size_t numFeatures = grp.features.size(); in printFeatureGroupImpl() 568 const Feature& feature = grp.features[i]; in printFeatureGroupImpl() 572 const String8& featureName = grp.features.keyAt(i); in printFeatureGroupImpl() 586 if (grp.features.indexOfKey(impliedFeature.name) >= 0) { in printFeatureGroupImpl() [all …]
|
D | AaptAssets.cpp | 1365 sp<AaptGroup> grp = dir->getFiles().valueAt(j); in filter() local 1368 for (size_t k=0; k<grp->getFiles().size(); k++) { in filter() 1369 sp<AaptFile> file = grp->getFiles().valueAt(k); in filter() 1370 if (k == 0 && grp->getFiles().size() == 1) { in filter() 1392 grp->removeFile(k); in filter() 1405 for (size_t k=0; k<grp->getFiles().size(); k++) { in filter() 1406 sp<AaptFile> file = grp->getFiles().valueAt(k); in filter() 1407 if (k == 0 && grp->getFiles().size() == 1) { in filter() 1430 for (size_t m=0; m<grp->getFiles().size(); m++) { in filter() 1435 sp<AaptFile> mfile = grp->getFiles().valueAt(m); in filter() [all …]
|
D | Resource.cpp | 54 status_t parsePackage(const sp<AaptGroup>& grp); 224 const sp<AaptGroup>& grp) in parsePackage() argument 226 if (grp->getFiles().size() != 1) { in parsePackage() 228 grp->getFiles().valueAt(0)->getPrintableSource().c_str()); in parsePackage() 231 sp<AaptFile> file = grp->getFiles().valueAt(0); in parsePackage()
|
/frameworks/base/services/core/java/com/android/server/textservices/ |
D | TextServicesManagerService.java | 234 final SpellCheckerBindGroup grp = ent.getValue(); in dump() local 235 pw.println(" " + ent.getKey() + " " + grp + ":"); in dump() 236 pw.println(" " + "mInternalConnection=" + grp.mInternalConnection); in dump() 237 pw.println(" " + "mSpellChecker=" + grp.mSpellChecker); in dump() 238 pw.println(" " + "mUnbindCalled=" + grp.mUnbindCalled); in dump() 239 pw.println(" " + "mConnected=" + grp.mConnected); in dump() 240 final int numPendingSessionRequests = grp.mPendingSessionRequests.size(); in dump() 242 final SessionRequest req = grp.mPendingSessionRequests.get(j); in dump() 249 final int numOnGoingSessionRequests = grp.mOnGoingSessionRequests.size(); in dump() 251 final SessionRequest req = grp.mOnGoingSessionRequests.get(j); in dump() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 3987 PackageGroup* const grp = mTable.mPackageGroups[curPackageIndex]; in applyStyle() local 3988 const TypeList& typeList = grp->types[t]; in applyStyle() 4537 const PackageGroup* const grp = mPackageGroups[p]; in getResourceName() local 4538 if (grp == NULL) { in getResourceName() 4544 status_t err = getEntry(grp, t, e, NULL, &entry); in getResourceName() 4549 outName->package = grp->name.c_str(); in getResourceName() 4550 outName->packageLen = grp->name.size(); in getResourceName() 4600 const PackageGroup* const grp = mPackageGroups[p]; in getResource() local 4601 if (grp == NULL) { in getResource() 4613 status_t err = getEntry(grp, t, e, &desiredConfig, &entry); in getResource() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 1220 final String grp = getNextArg(); in runListPermissions() local 1221 groupList.add(grp); in runListPermissions()
|
/frameworks/base/core/java/android/view/ |
D | ViewRootImpl.java | 9763 ViewGroup grp = (ViewGroup)view; in dumpViewHierarchy() local 9764 final int N = grp.getChildCount(); in dumpViewHierarchy() 9770 dumpViewHierarchy(prefix, writer, grp.getChildAt(i)); in dumpViewHierarchy()
|