Lines Matching refs:grp
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()
612 static void printFeatureGroup(const FeatureGroup& grp) { in printFeatureGroup() argument
613 printFeatureGroupImpl(grp, NULL); in printFeatureGroup()
616 static void printDefaultFeatureGroup(const FeatureGroup& grp, in printDefaultFeatureGroup() argument
618 printFeatureGroupImpl(grp, &impliedFeatures); in printDefaultFeatureGroup()
621 static void addParentFeatures(FeatureGroup* grp, const String8& name) { in addParentFeatures() argument
624 grp->features.add(String8("android.hardware.camera"), Feature(true)); in addParentFeatures()
627 grp->features.add(String8("android.hardware.location"), Feature(true)); in addParentFeatures()
629 grp->features.add(String8("android.hardware.faketouch"), Feature(true)); in addParentFeatures()
632 grp->features.add(String8("android.hardware.faketouch.multitouch"), Feature(true)); in addParentFeatures()
633 grp->features.add(String8("android.hardware.faketouch"), Feature(true)); in addParentFeatures()
635 grp->features.add(String8("android.hardware.touchscreen"), Feature(true)); in addParentFeatures()
638 grp->features.add(String8("android.hardware.touchscreen.multitouch"), Feature(true)); in addParentFeatures()
639 grp->features.add(String8("android.hardware.touchscreen"), Feature(true)); in addParentFeatures()
642 if (openGLESVersion31 > grp->openGLESVersion) { in addParentFeatures()
643 grp->openGLESVersion = openGLESVersion31; in addParentFeatures()
2196 FeatureGroup& grp = featureGroups.editItemAt(i); in doDump() local
2198 if (commonFeatures.openGLESVersion > grp.openGLESVersion) { in doDump()
2199 grp.openGLESVersion = commonFeatures.openGLESVersion; in doDump()
2206 if (grp.features.indexOfKey(commonFeatures.features.keyAt(j)) < 0) { in doDump()
2207 grp.features.add(commonFeatures.features.keyAt(j), in doDump()
2212 if (!grp.features.isEmpty()) { in doDump()
2213 printFeatureGroup(grp); in doDump()