/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/ |
D | ResName.java | 16 public final @Nonnull String packageName; field in ResName 22 public ResName(@Nonnull String packageName, @Nonnull String type, @Nonnull String name) { in ResName() argument 23 this.packageName = packageName; in ResName() 35 packageName = matcher.group(NAMESPACE); in ResName() 40 …if (packageName.equals("xmlns")) throw new IllegalStateException("\"" + fullyQualifiedName + "\" u… in ResName() 52 return qualifyResName(possiblyQualifiedResourceName, defaults.packageName, defaults.type); in qualifyResName() 59 String packageName = null; in qualifyResName() local 65 packageName = possiblyQualifiedResourceName.substring(indexOfSlash + 1, indexOfColon); in qualifyResName() 69 packageName = possiblyQualifiedResourceName.substring(0, indexOfColon); in qualifyResName() 75 …if ((type == null && defaultType == null) || (packageName == null && defaultPackageName == null)) { in qualifyResName() [all …]
|
D | StyleData.java | 11 private final String packageName; field in StyleData 16 …public StyleData(String packageName, String name, String parent, List<AttributeResource> attribute… in StyleData() argument 17 this.packageName = packageName; in StyleData() 46 …ttributeResource == null && !"android".equals(resName.packageName) && !"android".equals(packageNam… in getAttrValue() 47 attributeResource = items.get(resName.withPackageName(packageName)); in getAttrValue() 49 … attributeResource = new AttributeResource(resName, attributeResource.value, resName.packageName); in getAttrValue() 82 return Objects.equals(packageName, other.packageName) in equals() 91 hashCode = 31 * hashCode + Strings.nullToEmpty(packageName).hashCode(); in hashCode() 99 return "Style " + packageName + ":" + name; in toString() 103 return packageName; in getPackageName()
|
D | PackageResourceTable.java | 20 private final String packageName; field in PackageResourceTable 24 public PackageResourceTable(String packageName) { in PackageResourceTable() argument 25 this.packageName = packageName; in PackageResourceTable() 30 return packageName; in getPackageName() 46 .get(new ResName(resName.packageName, resName.type, underscorize(resName.name))); in getResourceId() 71 return XmlBlock.create(fileTypedResource.getFsFile(), resName.packageName); in getXml() 112 ResName resName = new ResName(packageName, type, name); in addResource() 117 …throw new IllegalArgumentException("Incompatible package for " + packageName + ":" + type + "/" + … in addResource() 127 ResName resName = new ResName(packageName, type, name); in addResource() 131 ResName resNameWithUnderscores = new ResName(packageName, type, underscorize(name)); in addResource() [all …]
|
/external/proguard/src/proguard/ |
D | GPL.java | 111 String packageName = (String)iterator.next(); in uniquePackageNames() local 112 if (!containsPrefix(packageNames, packageName)) in uniquePackageNames() 114 buffer.append(packageName).append(", "); in uniquePackageNames() 160 private static boolean isKnown(String packageName) in isKnown() argument 162 return packageName.startsWith("java") || in isKnown() 163 packageName.startsWith("sun.reflect") || in isKnown() 164 packageName.startsWith("proguard") || in isKnown() 165 packageName.startsWith("org.apache.tools.ant") || in isKnown() 166 packageName.startsWith("org.apache.tools.maven") || in isKnown() 167 packageName.startsWith("org.gradle") || in isKnown() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowApplicationPackageManager.java | 136 String packageName = packageInfo.packageName; in getInstalledPackages() local 138 if (applicationEnabledSettingMap.get(packageName) == COMPONENT_ENABLED_STATE_DISABLED in getInstalledPackages() 144 if (hiddenPackages.contains(packageName) && !isFlagSet(flags, MATCH_UNINSTALLED_PACKAGES)) { in getInstalledPackages() 158 String packageName = component.getPackageName(); in getActivityInfo() local 159 PackageInfo packageInfo = packageInfos.get(packageName); in getActivityInfo() 176 result.packageName = packageName; in getActivityInfo() 185 result.packageName = packageName; in getActivityInfo() 187 result.applicationInfo.packageName = packageName; in getActivityInfo() 218 results.add(packageInfo.packageName); in getPackagesForUid() 226 protected int getApplicationEnabledSetting(String packageName) { in getApplicationEnabledSetting() argument [all …]
|
D | ShadowDevicePolicyManager.java | 103 public PackageAndPermission(String packageName, String permission) { in PackageAndPermission() argument 104 this.packageName = packageName; in PackageAndPermission() 108 private String packageName; field in ShadowDevicePolicyManager.PackageAndPermission 117 return packageName.equals(other.packageName) && permission.equals(other.permission); in equals() 122 int result = packageName.hashCode(); in hashCode() 157 protected boolean isDeviceOwnerApp(String packageName) { in isDeviceOwnerApp() argument 158 return deviceOwner != null && deviceOwner.getPackageName().equals(packageName); in isDeviceOwnerApp() 162 protected boolean isProfileOwnerApp(String packageName) { in isProfileOwnerApp() argument 163 return profileOwner != null && profileOwner.getPackageName().equals(packageName); in isProfileOwnerApp() 189 protected boolean setApplicationHidden(ComponentName admin, String packageName, boolean hidden) { in setApplicationHidden() argument [all …]
|
D | ShadowAppOpsManager.java | 102 public void setMode(String op, int uid, String packageName, int mode) { in setMode() argument 103 setMode(AppOpsManager.strOpToOp(op), uid, packageName, mode); in setMode() local 116 public void setMode(int op, int uid, String packageName, int mode) { in setMode() argument 117 Integer oldMode = appModeMap.put(getOpMapKey(uid, packageName, op), mode); in setMode() 118 OnOpChangedListener listener = appOpListeners.get(getListenerKey(op, packageName)); in setMode() 121 listener.onOpChanged(sOpToString[op], packageName); in setMode() 127 public int unsafeCheckOpNoThrow(String op, int uid, String packageName) { in unsafeCheckOpNoThrow() argument 128 return checkOpNoThrow(AppOpsManager.strOpToOp(op), uid, packageName); in unsafeCheckOpNoThrow() 134 protected int checkOpNoThrow(String op, int uid, String packageName) { in checkOpNoThrow() argument 135 return checkOpNoThrow(AppOpsManager.strOpToOp(op), uid, packageName); in checkOpNoThrow() [all …]
|
D | ShadowPackageManager.java | 220 static String resolvePackageName(String packageName, ComponentName componentName) { in resolvePackageName() argument 224 classString = packageName + "." + classString; in resolvePackageName() 226 classString = packageName + classString; in resolvePackageName() 238 .createIfNotExists(applicationInfo.packageName + "-sourceDir") in setUpPackageStorage() 246 .createIfNotExists(applicationInfo.packageName + "-dataDir") in setUpPackageStorage() 328 public void removeResolveInfosForIntent(Intent intent, String packageName) { in removeResolveInfosForIntent() argument 337 if (getPackageName(resolveInfo).equals(packageName)) { in removeResolveInfosForIntent() 347 return resolveInfo.activityInfo.packageName; in getPackageName() 349 return resolveInfo.serviceInfo.packageName; in getPackageName() 351 return resolveInfo.providerInfo.packageName; in getPackageName() [all …]
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/ |
D | ManifestIdentifier.java | 14 private final String packageName; field in ManifestIdentifier 18 public ManifestIdentifier(String packageName, in ManifestIdentifier() argument 21 this(packageName, manifestFile, resDir, assetDir, libraries, null); in ManifestIdentifier() 24 public ManifestIdentifier(String packageName, in ManifestIdentifier() argument 30 this.packageName = packageName; in ManifestIdentifier() 39 public ManifestIdentifier(FsFile manifestFile, FsFile resDir, FsFile assetDir, String packageName, in ManifestIdentifier() argument 44 this.packageName = packageName; in ManifestIdentifier() 74 return packageName; in getPackageName() 107 if (packageName != null ? !packageName.equals(that.packageName) : that.packageName != null) { in equals() 121 result = 31 * result + (packageName != null ? packageName.hashCode() : 0); in hashCode() [all …]
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/match/ |
D | TypeName.java | 24 private final String packageName; field in TypeName 28 public TypeName(String packageName, String className) { in TypeName() argument 29 this.packageName = packageName; in TypeName() 33 public String packageName() { in packageName() method in TypeName 34 return packageName; in packageName() 43 String packageName; in fromFullyQualifiedClassName() local 46 packageName = ""; in fromFullyQualifiedClassName() 49 packageName = fullyQualifiedClassName.substring(0, packageSeparatorIndex); in fromFullyQualifiedClassName() 52 return new TypeName(packageName, className); in fromFullyQualifiedClassName()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | ClassName.java | 36 final String packageName; field in ClassName 47 private ClassName(String packageName, ClassName enclosingClassName, String simpleName) { in ClassName() argument 48 this(packageName, enclosingClassName, simpleName, Collections.emptyList()); in ClassName() 51 private ClassName(String packageName, ClassName enclosingClassName, String simpleName, in ClassName() argument 54 this.packageName = packageName; in ClassName() 59 : (packageName.isEmpty() ? simpleName : packageName + '.' + simpleName); in ClassName() 63 return new ClassName(packageName, enclosingClassName, simpleName, in annotated() 72 return new ClassName(packageName, resultEnclosingClassName, simpleName); in withoutAnnotations() 83 public String packageName() { in packageName() method in ClassName 84 return packageName; in packageName() [all …]
|
D | JavaFile.java | 58 public final String packageName; field in JavaFile 66 this.packageName = builder.packageName; in JavaFile() 89 if (!packageName.isEmpty()) { in writeTo() 90 for (String packageComponent : packageName.split("\\.")) { in writeTo() 109 String fileName = packageName.isEmpty() in writeTo() 111 : packageName + "." + typeSpec.name; in writeTo() 127 codeWriter.pushPackage(packageName); in emit() 133 if (!packageName.isEmpty()) { in emit() 134 codeWriter.emit("package $L;\n", packageName); in emit() 147 if (skipJavaLangImports && className.packageName().equals("java.lang")) continue; in emit() [all …]
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | JavaWriter.java | 52 public static JavaWriter inPackage(String packageName) { in inPackage() argument 53 return new JavaWriter(packageName); in inPackage() 64 private final String packageName; field in JavaWriter 69 private JavaWriter(String packageName) { in JavaWriter() argument 70 this.packageName = packageName; in JavaWriter() 86 ClassWriter classWriter = new ClassWriter(ClassName.create(packageName, simpleName)); in addClass() 93 EnumWriter writer = new EnumWriter(ClassName.create(packageName, simpleName)); in addEnum() 99 InterfaceWriter writer = new InterfaceWriter(ClassName.create(packageName, simpleName)); in addInterface() 105 if (!packageName.isEmpty()) { in write() 106 appendable.append("package ").append(packageName).append(";\n\n"); in write() [all …]
|
D | ClassName.java | 52 private final String packageName; field in ClassName 57 private ClassName(String packageName, ImmutableList<String> enclosingSimpleNames, in ClassName() argument 59 this.packageName = packageName; in ClassName() 64 public String packageName() { in packageName() method in ClassName 65 return packageName; in packageName() 75 : Optional.of(new ClassName(packageName, in enclosingClassName() 86 StringBuilder builder = new StringBuilder(packageName()); in canonicalName() 122 ? new ClassName(packageName(), ImmutableList.<String>of(), in topLevelClassName() 130 return new ClassName(packageName(), in nestedClassNamed() 141 return new ClassName(packageName(), enclosingSimpleNames(), peerClassName); in peerNamed() [all …]
|
/external/vogar/src/vogar/ |
D | DotJavaFile.java | 36 private final String packageName; field in DotJavaFile 40 private DotJavaFile(String simpleName, String packageName, String actionName, boolean isJtreg) { in DotJavaFile() argument 42 this.packageName = packageName; in DotJavaFile() 61 return packageName != null ? packageName + "." + simpleName : simpleName; in getClassName() 75 String packageName; in parse() local 79 packageName = packageMatcher.group(1); in parse() 80 actionName = packageName + "." + simpleName; in parse() 82 packageName = null; in parse() 90 return new DotJavaFile(simpleName, packageName, actionName, isjtreg); in parse()
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/ |
D | PackageMatcher.java | 28 protected final String packageName; field in PackageMatcher 30 public PackageMatcher(String packageName) { in PackageMatcher() argument 31 this.packageName = packageName; in PackageMatcher() 41 return cuPackageName.equals(packageName); in matches() 47 "packageName='" + packageName + '\'' + in toString() 52 return packageName; in toStringForm() 76 return Objects.equals(packageName, that.packageName); in equals() 81 return Objects.hash(packageName); in hashCode()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/ |
D | InterpreterConfiguration.java | 83 addInterpreter(info.activityInfo.packageName); in discoverForType() 100 addInterpreter(info.activityInfo.packageName); in discoverAll() 114 private void addInterpreter(final String packageName) { in addInterpreter() argument 115 if (mmDiscoveredInterpreters.containsKey(packageName)) { in addInterpreter() 118 Interpreter discoveredInterpreter = buildInterpreter(packageName); in addInterpreter() 122 mmDiscoveredInterpreters.put(packageName, discoveredInterpreter); in addInterpreter() 124 Log.v("Interpreter discovered: " + packageName + "\nBinary: " in addInterpreter() 128 private void remove(final String packageName) { in remove() argument 129 if (!mmDiscoveredInterpreters.containsKey(packageName)) { in remove() 135 Interpreter interpreter = mmDiscoveredInterpreters.get(packageName); in remove() [all …]
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cTestPackages.cpp | 108 GL40TestPackage::GL40TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* de… in GL40TestPackage() argument 110 : GL33TestPackage(testCtx, packageName, packageName, renderContextType) in GL40TestPackage() 148 GL41TestPackage::GL41TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* de… in GL41TestPackage() argument 150 : GL40TestPackage(testCtx, packageName, packageName, renderContextType) in GL41TestPackage() 193 GL42TestPackage::GL42TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* de… in GL42TestPackage() argument 195 : GL41TestPackage(testCtx, packageName, packageName, renderContextType) in GL42TestPackage() 228 GL43TestPackage::GL43TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* de… in GL43TestPackage() argument 230 : GL42TestPackage(testCtx, packageName, packageName, renderContextType) in GL43TestPackage() 289 GL44TestPackage::GL44TestPackage(tcu::TestContext& testCtx, const char* packageName, const char* de… in GL44TestPackage() argument 291 : GL43TestPackage(testCtx, packageName, packageName, renderContextType) in GL44TestPackage() [all …]
|
/external/turbine/java/com/google/turbine/binder/bound/ |
D | ModuleInfo.java | 124 private final String packageName; field in ModuleInfo.ExportInfo 127 public ExportInfo(String packageName, ImmutableList<String> modules) { in ExportInfo() argument 128 this.packageName = packageName; in ExportInfo() 132 public String packageName() { in packageName() method in ModuleInfo.ExportInfo 133 return packageName; in packageName() 144 private final String packageName; field in ModuleInfo.OpenInfo 147 public OpenInfo(String packageName, ImmutableList<String> modules) { in OpenInfo() argument 148 this.packageName = packageName; in OpenInfo() 152 public String packageName() { in packageName() method in ModuleInfo.OpenInfo 153 return packageName; in packageName()
|
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/ |
D | ResourceEntry.java | 32 private final String packageName; field in ResourceEntry 42 String packageName; in fromBundle() local 50 packageName = bundle.getString(KEY_PACKAGE_NAME); in fromBundle() 53 return new ResourceEntry(packageName, resourceName, resourceId); in fromBundle() 56 public ResourceEntry(String packageName, String resourceName, int resourceId) { in ResourceEntry() argument 57 this.packageName = packageName; in ResourceEntry() 63 return this.packageName; in getPackageName() 81 result.putString(KEY_PACKAGE_NAME, packageName); in toBundle()
|
/external/vogar/src/vogar/target/ |
D | ClassPathScanner.java | 89 public Package scan(String packageName) throws IOException { in scan() argument 93 findClasses(packageName, classNames, subpackageNames); in scan() 109 private void findClasses(String packageName, Set<String> classNames, in findClasses() argument 111 String packagePrefix = packageName + '.'; in findClasses() 116 classFinder.find(entryFile, pathPrefix, packageName, classNames, subpackageNames); in findClasses() 122 void find(File classPathEntry, String pathPrefix, String packageName, in find() argument 131 public void find(File classPathEntry, String pathPrefix, String packageName, in find() argument 188 String packageName = entryName.substring(0, lastIndex + 1); in getJarEntries() local 189 entryNames.add(packageName); in getJarEntries() 203 public void find(File classPathEntry, String pathPrefix, String packageName, in find() argument [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/differentiate_dot_expressions/ |
D | PackageDotExpressions.java | 4 com.packageName.ClassInPackage.staticMethod(); in main() 7 com.packageName.InnerClassContainer.InnerClass.methodCall(); in main() 8 com.packageName.InnerClassContainer.InnerClass.InnerInnerClass.innerMethodCall(); in main() 9 …com.packageName.InnerClassContainer.InnerClass.InnerInnerClass.InnerInnerInnerClass.innerInnerMeth… in main() 12 …com.packageName.InnerClassFieldContainer.outerField.containerField.containerField.firstContainerMe… in main() 13 …com.packageName.InnerClassFieldContainer.InnerClass.innerField.containerField.containerField.secon… in main() 14 …com.packageName.InnerClassFieldContainer.InnerClass.InnerInnerClass.InnerInnerInnerClass.innerInne… in main()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowPackageManagerTest.java | 167 appInfo.packageName = TEST_PACKAGE_NAME; in packageInstallerAndGetPackageArchiveInfo() 172 packageInfo.packageName = TEST_PACKAGE_NAME; in packageInstallerAndGetPackageArchiveInfo() 180 assertThat(applicationInfo.packageName).isEqualTo(TEST_PACKAGE_NAME); in packageInstallerAndGetPackageArchiveInfo() 229 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages() 252 packageInfo.packageName = TEST_PACKAGE_NAME; in testCheckPermission_otherPackages_grantedByDefault() 272 packageInfo.packageName = TEST_PACKAGE_NAME; in testGrantRuntimePermission() 306 packageInfo.packageName = TEST_PACKAGE_NAME; in testGrantRuntimePermission_doesntRequestPermission() 325 packageInfo.packageName = TEST_PACKAGE_NAME; in testRevokeRuntimePermission() 490 appInfo.packageName = TEST_PACKAGE_NAME; in getAllPermissionGroups_duplicatePermission() 510 appInfo2.packageName = TEST_PACKAGE2_NAME; in getAllPermissionGroups_duplicatePermission() [all …]
|
/external/setupdesign/main/src/com/google/android/setupdesign/util/ |
D | Partner.java | 120 public String packageName; field in Partner.ResourceEntry 125 ResourceEntry(String packageName, Resources resources, int id, boolean isOverlay) { in ResourceEntry() argument 126 this.packageName = packageName; in ResourceEntry() 166 partner = new Partner(appInfo.packageName, res); in get() 169 Log.w(TAG, "Failed to find resources for " + appInfo.packageName); in get() 184 private final String packageName; field in Partner 187 private Partner(String packageName, Resources res) { in Partner() argument 188 this.packageName = packageName; in Partner() 193 return packageName; in getPackageName() 201 return resources.getIdentifier(name, defType, packageName); in getIdentifier()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/ |
D | ConfigMerger.java | 41 for (String packageName : reverse(packageHierarchyOf(testClass))) { in getConfig() 42 Config packageConfig = cachedPackageConfig(packageName); in getConfig() 72 private Config buildPackageConfig(String packageName) { in buildPackageConfig() argument 73 return Config.Implementation.fromProperties(getConfigProperties(packageName)); in buildPackageConfig() 81 protected Properties getConfigProperties(String packageName) { in getConfigProperties() argument 82 List<String> packageParts = new ArrayList<>(Arrays.asList(packageName.split("\\."))); in getConfigProperties() 124 private Config cachedPackageConfig(String packageName) { in cachedPackageConfig() argument 126 Config config = packageConfigCache.get(packageName); in cachedPackageConfig() 127 if (config == null && !packageConfigCache.containsKey(packageName)) { in cachedPackageConfig() 128 config = buildPackageConfig(packageName); in cachedPackageConfig() [all …]
|