Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java40 import static com.android.managedprovisioning.common.StoreUtils.accountToPersistableBundle;
41 import static com.android.managedprovisioning.common.StoreUtils.getIntegerAttrFromPersistableBundle;
42 import static com.android.managedprovisioning.common.StoreUtils.getObjectAttrFromPersistableBundle;
43 import static com.android.managedprovisioning.common.StoreUtils.getStringAttrFromPersistableBundle;
44 import static com.android.managedprovisioning.common.StoreUtils.putIntegerIfNotNull;
45 import static com.android.managedprovisioning.common.StoreUtils.putPersistableBundlableIfNotNull;
59 import com.android.managedprovisioning.common.StoreUtils;
254 bundle.putString(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(locale)); in toPersistableBundle()
258 StoreUtils.componentNameToString(deviceAdminComponentName)); in toPersistableBundle()
292 EXTRA_PROVISIONING_LOCALE, StoreUtils::stringToLocale)); in createBuilderFromPersistableBundle()
[all …]
DPackageDownloadInfo.java33 import com.android.managedprovisioning.common.StoreUtils;
129 builder.setPackageChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
131 builder.setSignatureChecksum(StoreUtils.stringToByteArray(bundle.getString( in createBuilderFromPersistableBundle()
147 StoreUtils.byteArrayToString(packageChecksum)); in toPersistableBundle()
149 StoreUtils.byteArrayToString(signatureChecksum)); in toPersistableBundle()
DDisclaimersParam.java23 import com.android.managedprovisioning.common.StoreUtils;
DWifiInfo.java37 import com.android.managedprovisioning.common.StoreUtils;
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DVerifyPackageTask.java30 import com.android.managedprovisioning.common.StoreUtils;
159 + StoreUtils.byteArrayToString(signatureChecksum)); in doesASignatureHashMatch()
163 ProvisionLogger.loge(StoreUtils.byteArrayToString(sigHash)); in doesASignatureHashMatch()
196 + StoreUtils.byteArrayToString(packageChecksum)); in doesPackageHashMatch()
199 + StoreUtils.byteArrayToString(packageSha256Hash)); in doesPackageHashMatch()
203 + StoreUtils.byteArrayToString(packageSha1Hash)); 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()
DPropertiesProvisioningDataParser.java58 import com.android.managedprovisioning.common.StoreUtils;
128 .setLocale(StoreUtils.stringToLocale( in parse()
221 builder.setPackageChecksum(StoreUtils.stringToByteArray(s)) in parsePackageDownloadInfoFromProperties()
226 builder.setSignatureChecksum(StoreUtils.stringToByteArray(s)); in parsePackageDownloadInfoFromProperties()
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()
DExtrasProvisioningDataParser.java73 import com.android.managedprovisioning.common.StoreUtils;
298 .setLocale(StoreUtils.stringToLocale( in parseAllSupportedProvisioningData()
362 downloadInfoBuilder.setPackageChecksum(StoreUtils.stringToByteArray(packageHash)); in parsePackageDownloadInfoFromExtras()
366 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;
30 import com.android.managedprovisioning.common.StoreUtils;
98 assertEquals(INPUT_CONTENT, StoreUtils.readString(OUTPUT_FILE)); in testUri()
DDisclaimersParserTest.java20 import static com.android.managedprovisioning.common.StoreUtils.DIR_PROVISIONING_PARAMS_FILE_CACHE;
32 import com.android.managedprovisioning.common.StoreUtils;
171 return StoreUtils.readString(new File(disclaimer.mContentFilePath)); in getDisclaimerContentString()
DPropertiesProvisioningDataParserTest.java58 import com.android.managedprovisioning.common.StoreUtils;
281 props.setProperty(EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(TEST_LOCALE)); in setTestTimeTimeZoneAndLocale()
DExtrasProvisioningDataParserTest.java69 import com.android.managedprovisioning.common.StoreUtils;
538 EXTRA_PROVISIONING_LOCALE, StoreUtils.localeToString(TEST_LOCALE)); in getTestTimeTimeZoneAndLocaleExtras()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/terms/
DTermsActivity.java36 import com.android.managedprovisioning.common.StoreUtils;
55 this(StoreUtils::readString, null); in TermsActivity()
58 @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/preprovisioning/
DPreProvisioningController.java65 import com.android.managedprovisioning.common.StoreUtils;
304 return new TermsProvider(mContext, StoreUtils::readString, mUtils) in getDisclaimerHeadings()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DLogoUtils.java38 StoreUtils.copyUriIntoFile(context.getContentResolver(), uri, logoFile); in saveOrganisationLogo()
DStoreUtils.java41 public class StoreUtils { class