Home
last modified time | relevance | path

Searched refs:StoreUtils (Results 1 – 18 of 18) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java43 import static com.android.managedprovisioning.common.StoreUtils.accountToPersistableBundle;
44 import static com.android.managedprovisioning.common.StoreUtils.getIntegerAttrFromPersistableBundle;
45 import static com.android.managedprovisioning.common.StoreUtils.getObjectAttrFromPersistableBundle;
46 import static com.android.managedprovisioning.common.StoreUtils.getStringAttrFromPersistableBundle;
47 import static com.android.managedprovisioning.common.StoreUtils.putIntegerIfNotNull;
48 import static com.android.managedprovisioning.common.StoreUtils.putPersistableBundlableIfNotNull;
66 import com.android.managedprovisioning.common.StoreUtils;
342 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); in toPersistableBundle()
347 StoreUtils.componentNameToString(deviceAdminComponentName)); in toPersistableBundle()
386 EXTRA_PROVISIONING_LOCALE, StoreUtils::stringToLocale)); in createBuilderFromPersistableBundle()
[all …]
DPackageDownloadInfo.java33 import com.android.managedprovisioning.common.StoreUtils;
119 builder.setPackageChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
121 builder.setSignatureChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
135 StoreUtils.byteArrayToString(packageChecksum)); in toPersistableBundle()
137 StoreUtils.byteArrayToString(signatureChecksum)); in toPersistableBundle()
DDisclaimersParam.java23 import com.android.managedprovisioning.common.StoreUtils;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java34 import com.android.managedprovisioning.common.StoreUtils;
166 + StoreUtils.byteArrayToString(signatureChecksum)); in doesASignatureHashMatch()
170 ProvisionLogger.loge(StoreUtils.byteArrayToString(sigHash)); in doesASignatureHashMatch()
192 + StoreUtils.byteArrayToString(packageChecksum)); in doesPackageHashMatch()
195 + StoreUtils.byteArrayToString(packageSha256Hash)); in doesPackageHashMatch()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DDeviceAdminIconParser.java18 import static com.android.managedprovisioning.common.StoreUtils.DIR_PROVISIONING_PARAMS_FILE_CACHE;
24 import com.android.managedprovisioning.common.StoreUtils;
52 boolean success = StoreUtils.copyUriIntoFile(mContext.getContentResolver(), uri, mFileIcon); in parse()
DDisclaimersParser.java21 import static com.android.managedprovisioning.common.StoreUtils.DIR_PROVISIONING_PARAMS_FILE_CACHE;
31 import com.android.managedprovisioning.common.StoreUtils;
105 boolean success = StoreUtils.copyUriIntoFile(mContext.getContentResolver(), uri, in saveDisclaimerContentIntoFile()
DPropertiesProvisioningDataParser.java70 import com.android.managedprovisioning.common.StoreUtils;
156 .setLocale(StoreUtils.stringToLocale( in parse()
268 builder.setPackageChecksum(StoreUtils.stringToByteArray(s)); in parsePackageDownloadInfoFromProperties()
272 builder.setSignatureChecksum(StoreUtils.stringToByteArray(s)); in parsePackageDownloadInfoFromProperties()
DExtrasProvisioningDataParser.java91 import com.android.managedprovisioning.common.StoreUtils;
685 .setLocale(StoreUtils.stringToLocale( in parseAllSupportedProvisioningData()
772 downloadInfoBuilder.setPackageChecksum(StoreUtils.stringToByteArray(packageHash)); in parsePackageDownloadInfoFromExtras()
777 downloadInfoBuilder.setSignatureChecksum(StoreUtils.stringToByteArray(sigHash)); in parsePackageDownloadInfoFromExtras()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DDeviceAdminIconParserTest.java18 import static com.android.managedprovisioning.common.StoreUtils.DIR_PROVISIONING_PARAMS_FILE_CACHE;
32 import com.android.managedprovisioning.common.StoreUtils;
102 assertEquals(INPUT_CONTENT, StoreUtils.readString(OUTPUT_FILE)); in testUri()
DDisclaimersParserTest.java21 import static com.android.managedprovisioning.common.StoreUtils.DIR_PROVISIONING_PARAMS_FILE_CACHE;
36 import com.android.managedprovisioning.common.StoreUtils;
177 return StoreUtils.readString(new File(disclaimer.mContentFilePath)); in getDisclaimerContentString()
DPropertiesProvisioningDataParserTest.java127 import com.android.managedprovisioning.common.StoreUtils;
592 props.setProperty(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(TEST_LOCALE)); in setTestTimeTimeZoneAndLocale()
602 EXTRA_PROVISIONING_LOCALE_SHORT, StoreUtils.localeToString(TEST_LOCALE)); in setShortTestTimeTimeZoneAndLocale()
DExtrasProvisioningDataParserTest.java131 import com.android.managedprovisioning.common.StoreUtils;
888 return StoreUtils.localeToString(TEST_LOCALE); in buildTestLocaleString()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivity.java43 import com.android.managedprovisioning.common.StoreUtils;
64 this(StoreUtils::readString, null, new SettingsFacade()); in TermsActivity()
67 @VisibleForTesting TermsActivity(StoreUtils.TextFileReader textFileReader, in TermsActivity()
DTermsProvider.java31 import com.android.managedprovisioning.common.StoreUtils;
54 private final StoreUtils.TextFileReader mTextFileReader;
65 public TermsProvider(Context context, StoreUtils.TextFileReader textFileReader, Utils utils) { in TermsProvider()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/testcommon/
DTestUtils.java22 import com.android.managedprovisioning.common.StoreUtils;
39 StoreUtils.copyStream(in, out); in stringFromUri()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java38 StoreUtils.copyUriIntoFile(context.getContentResolver(), uri, logoFile); in saveOrganisationLogo()
DStoreUtils.java41 public class StoreUtils { class
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java78 import com.android.managedprovisioning.common.StoreUtils;
448 return new TermsProvider(mContext, StoreUtils::readString, mUtils) in getDisclaimerHeadings()