Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
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()
DProvisioningParams.java42 import static com.android.managedprovisioning.common.StoreUtils.accountToPersistableBundle;
43 import static com.android.managedprovisioning.common.StoreUtils.getObjectAttrFromPersistableBundle;
44 import static com.android.managedprovisioning.common.StoreUtils.getStringAttrFromPersistableBundle;
45 import static com.android.managedprovisioning.common.StoreUtils.putPersistableBundlableIfNotNull;
64 import com.android.managedprovisioning.common.StoreUtils;
406 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); in toPersistableBundle()
411 StoreUtils.componentNameToString(deviceAdminComponentName)); in toPersistableBundle()
457 EXTRA_PROVISIONING_LOCALE, StoreUtils::stringToLocale)); in createBuilderFromPersistableBundle()
464 EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME, StoreUtils::stringToComponentName)); in createBuilderFromPersistableBundle()
468 EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE, StoreUtils::persistableBundleToAccount)); in createBuilderFromPersistableBundle()
DDisclaimersParam.java23 import com.android.managedprovisioning.common.StoreUtils;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java33 import com.android.managedprovisioning.common.StoreUtils;
165 + StoreUtils.byteArrayToString(signatureChecksum)); in doesASignatureHashMatch()
169 ProvisionLogger.loge(StoreUtils.byteArrayToString(sigHash)); in doesASignatureHashMatch()
191 + StoreUtils.byteArrayToString(packageChecksum)); in doesPackageHashMatch()
194 + StoreUtils.byteArrayToString(packageSha256Hash)); in doesPackageHashMatch()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
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.java72 import com.android.managedprovisioning.common.StoreUtils;
162 .setLocale(StoreUtils.stringToLocale( in parse()
279 builder.setPackageChecksum(StoreUtils.stringToByteArray(s)); in parsePackageDownloadInfoFromProperties()
283 builder.setSignatureChecksum(StoreUtils.stringToByteArray(s)); in parsePackageDownloadInfoFromProperties()
DExtrasProvisioningDataParser.java92 import com.android.managedprovisioning.common.StoreUtils;
682 .setLocale(StoreUtils.stringToLocale( in parseAllSupportedProvisioningData()
769 downloadInfoBuilder.setPackageChecksum(StoreUtils.stringToByteArray(packageHash)); in parsePackageDownloadInfoFromExtras()
774 downloadInfoBuilder.setSignatureChecksum(StoreUtils.stringToByteArray(sigHash)); in parsePackageDownloadInfoFromExtras()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsProvider.java31 import com.android.managedprovisioning.common.StoreUtils;
55 private final StoreUtils.TextFileReader mTextFileReader;
68 public TermsProvider(Context context, StoreUtils.TextFileReader textFileReader, in TermsProvider()
DTermsViewModel.java30 import com.android.managedprovisioning.common.StoreUtils;
110 StoreUtils::readString, in create()
/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/tests/instrumentation/src/com/android/managedprovisioning/parser/
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.java122 import com.android.managedprovisioning.common.StoreUtils;
593 props.setProperty(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(TEST_LOCALE)); in setTestTimeTimeZoneAndLocale()
603 EXTRA_PROVISIONING_LOCALE_SHORT, StoreUtils.localeToString(TEST_LOCALE)); in setShortTestTimeTimeZoneAndLocale()
DExtrasProvisioningDataParserTest.java142 import com.android.managedprovisioning.common.StoreUtils;
1155 return StoreUtils.localeToString(TEST_LOCALE); in buildTestLocaleString()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsViewModelTest.java34 import com.android.managedprovisioning.common.StoreUtils;
82 private final StoreUtils.TextFileReader mTextFileReader = file -> "terms content";
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java38 StoreUtils.copyUriIntoFile(context.getContentResolver(), uri, logoFile); in saveOrganisationLogo()
DStoreUtils.java41 public class StoreUtils { class