Deregister a diagnostic module for a package

@param packageName
The package name for which to deregister a diagnostic module
@return true if a diagnostic module was registered from the package (and
is now not registered), false otherwise
510386
public static boolean deregisterDiagnosticModule(String packageName) {
        if (modules.containsKey(packageName)) {
            modules.remove(packageName);
            return true;
        } else
            return false;
    }
898793
public static boolean isPackageInstalled(Context context, String packageName) {
		try {
			context.getPackageManager().getApplicationInfo(packageName, 0);
			return true;
		} catch (Exception e) {
			return false;
		}
	}
352873
boolean isValidPackageName(String s) {
        int index;
        while ((index = s.indexOf('.')) != -1) {
            if (!isValidClassName(s.substring(0, index))) return false;
            s = s.substring(index+1);
        }
        return isValidClassName(s);
    }
1254258
protected boolean checkActionPackages(String classPackageName) {
		if (actionPackages != null) {
			for (String packageName : actionPackages) {
				String strictPackageName = packageName + ".";
				if (classPackageName.equals(packageName) || classPackageName.startsWith(strictPackageName))
					return true;
			}
		}
		return false;
	}
917191
public static Set<Class<?>> scanPackageByAnnotation(String packageName, final Class<? extends Annotation> annotationClass) {
		return ClassScaner.scanPackageByAnnotation(packageName, annotationClass);
	}
271267
public ClasspathScanDescriptorProvider scanPackage(final String packageName, final boolean recursive) {
        return scanPackage(packageName, recursive, ClassLoaderUtils.getParentClassLoader(), false);
    }
597087
protected boolean isValidRequiredPropertyName(String name) {
        return !name.equals("basedir") && !name.startsWith("project.") && !name.startsWith("pom.") && !name.equals("package");
    }
114953
public static boolean isSystemPackage(@Nullable @CheckForNull Package aPackage) {
    if (aPackage == null) {
      return false;
    }
    return runAsSystem(
        () ->
            aPackage.getId().equals(PACKAGE_SYSTEM)
                || (aPackage.getRootPackage() != null
                    && aPackage.getRootPackage().getId().equals(PACKAGE_SYSTEM)));
  }
270695
public boolean deleteAll(String geoPackage) {
		boolean deleted = false;
		PropertiesCoreExtension<T, ?, ?, ?> properties = propertiesMap
				.get(geoPackage);
		if (properties != null) {
			deleted = properties.deleteAll() > 0;
		}
		return deleted;
	}
604267
function(depName, depLoad){
				var parsed = baseHelpers.parseModuleName(depLoad.name);
				var res;
				if( parsed.packageName !== "can-util" ) {
					res = baseNormalize.apply(this, arguments);
				} else {
					res = "set-"+parsed.packageName+"/"+parsed.modulePath
				}
				return res;
			}
203129
public void registerFunctionPackage(String packageName, Object o)
	{
		checkFunctionName(packageName);
		registerFunctionPackage(packageName, o.getClass(), o);

	}
611954
public static void infoOnGeneratedClasses(Class<? extends Annotation> annotation, String packageName, String className) {
		String msg = String.format("class '%s' in package '%s' is generated by '@%s' annotation processor", className, packageName, annotation.getSimpleName());
		
		printMessage(msg);
	}
692937
private boolean isAnyPackageFromListInstalled(List<String> packages){
        boolean result = false;

        PackageManager pm = mContext.getPackageManager();

        for (String packageName : packages) {
            try {
                // Root app detected
                pm.getPackageInfo(packageName, 0);
                QLog.e(packageName + " ROOT management app detected!");
                result = true;
            } catch (PackageManager.NameNotFoundException e) {
                // Exception thrown, package is not installed into the system
            }
        }

        return result;
    }
320428
public boolean remove(String classname) {
    String		pkgname;
    HashSet<String>	names;

    classname = ClassPathTraversal.cleanUp(classname);
    pkgname   = ClassPathTraversal.extractPackage(classname);
    names     = m_NameCache.get(pkgname);
    if (names != null)
      return names.remove(classname);
    else
      return false;
  }
184899
public static void register(BeanDefinitionRegistry registry, String... packageNames) {
		Assert.notNull(registry, "Registry must not be null");
		Assert.notNull(packageNames, "PackageNames must not be null");
		register(registry, Arrays.asList(packageNames));
	}
365017
public final Package<NotDependsOn> findForbiddenByName(final String packageName) {
        final List<Package<NotDependsOn>> list = getForbidden();
        for (final Package<NotDependsOn> pkg : list) {
            if (pkg.getName().equals(packageName)) {
                return pkg;
            }
        }
        return null;
    }
321125
public ClasspathScanDescriptorProvider scanPackage(final String packageName, final boolean recursive,
            final ClassLoader classLoader) {
        return scanPackage(packageName, recursive, classLoader, true);
    }