OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:MdmPackageInfo
(Results
1 - 2
of
2
) sorted by null
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
MdmPackageInfo.java
35
public final class
MdmPackageInfo
{
44
public
MdmPackageInfo
(@NonNull Drawable packageIcon, @NonNull String appLabel) {
50
* Constructs an {@link
MdmPackageInfo
} object by reading the data from the package manager.
54
* @return an {@link
MdMPackageInfo
} object for the given package, or {@code null} if the
58
public static
MdmPackageInfo
createFromPackageName(@NonNull Context context,
64
return new
MdmPackageInfo
(pm.getApplicationIcon(packageName),
/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
MdmPackageInfoTest.java
60
// WHEN
MdmPackageInfo
is constructed
61
MdmPackageInfo
mdmInfo = new
MdmPackageInfo
(TEST_DRAWABLE, TEST_LABEL);
62
// THEN the app icon and app label are stored in the
MdmPackageInfo
object
69
// WHEN
MdmPackageInfo
is created from package name
70
MdmPackageInfo
mdmInfo =
MdmPackageInfo
.createFromPackageName(mockContext,
79
// WHEN
MdmPackageInfo
is created from package name
83
assertNull(
MdmPackageInfo
.createFromPackageName(mockContext, TEST_PACKAGE_NAME));
Completed in 64 milliseconds