Home
last modified time | relevance | path

Searched refs:UpdateConfig (Results 1 – 10 of 10) sorted by relevance

/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/
DUpdateConfigTest.java71 UpdateConfig config = UpdateConfig.fromJson(JSON_NON_STREAMING); in fromJson_parsesNonStreaming()
75 UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING, in fromJson_parsesNonStreaming()
82 UpdateConfig config = UpdateConfig.fromJson(mJsonStreaming001); in fromJson_parsesStreaming()
85 assertSame(UpdateConfig.AB_INSTALL_TYPE_STREAMING, config.getInstallType()); in fromJson_parsesStreaming()
95 UpdateConfig config = UpdateConfig.fromJson(mJsonStreaming001); in getUpdatePackageFile_throwsErrorIfStreaming()
108 UpdateConfig config = UpdateConfig.fromJson(json); in getUpdatePackageFile_throwsErrorIfNotAFile()
115 UpdateConfig c = UpdateConfig.fromJson(JSON_NON_STREAMING); in getUpdatePackageFile_works()
DUpdateManagerTest.java71 private UpdateConfig mStreamingUpdate002;
78 UpdateConfig.fromJson(readResource(R.raw.update_config_002_stream)); in setUp()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
DUpdateConfig.java35 public class UpdateConfig implements Parcelable { class
40 public static final Parcelable.Creator<UpdateConfig> CREATOR =
41 new Parcelable.Creator<UpdateConfig>() {
43 public UpdateConfig createFromParcel(Parcel source) {
44 return new UpdateConfig(source);
48 public UpdateConfig[] newArray(int size) {
49 return new UpdateConfig[size];
54 public static UpdateConfig fromJson(String json) throws JSONException { in fromJson()
55 UpdateConfig c = new UpdateConfig(); in fromJson()
118 protected UpdateConfig() { in UpdateConfig() method in UpdateConfig
[all …]
DUpdateManager.java284 public synchronized void applyUpdate(Context context, UpdateConfig config) in applyUpdate()
314 private List<String> prepareExtraProperties(UpdateConfig config) { in prepareExtraProperties()
322 if (config.getInstallType() == UpdateConfig.AB_INSTALL_TYPE_STREAMING) { in prepareExtraProperties()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/util/
DUpdateConfigs.java22 import com.example.android.systemupdatersample.UpdateConfig;
44 public static String[] configsToNames(List<UpdateConfig> configs) { in configsToNames()
45 return configs.stream().map(UpdateConfig::getName).toArray(String[]::new); in configsToNames()
62 public static List<UpdateConfig> getUpdateConfigs(Context context) { in getUpdateConfigs()
64 ArrayList<UpdateConfig> configs = new ArrayList<>(); in getUpdateConfigs()
73 configs.add(UpdateConfig.fromJson(json)); in getUpdateConfigs()
90 public static Optional<UpdateConfig.PackageFile> getPropertyFile( in getPropertyFile()
92 UpdateConfig config) { in getPropertyFile()
/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/
DUpdateConfigsTest.java24 import com.example.android.systemupdatersample.UpdateConfig;
46 List<UpdateConfig> configs = Arrays.asList( in configsToNames_extractsNames()
47 new UpdateConfig("blah", "http://", UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING), in configsToNames_extractsNames()
48 new UpdateConfig("blah 2", "http://", UpdateConfig.AB_INSTALL_TYPE_STREAMING) in configsToNames_extractsNames()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/
DPrepareUpdateService.java35 import com.example.android.systemupdatersample.UpdateConfig;
94 UpdateConfig config, in startService()
128 UpdateConfig config = intent.getParcelableExtra(EXTRA_PARAM_CONFIG); in onHandleIntent()
146 private PayloadSpec execute(UpdateConfig config) in execute()
156 if (config.getInstallType() == UpdateConfig.AB_INSTALL_TYPE_NON_STREAMING) { in execute()
162 Optional<UpdateConfig.PackageFile> payloadBinary = in execute()
198 private boolean verifyPayloadMetadata(UpdateConfig config) { in verifyPayloadMetadata()
199 Optional<UpdateConfig.PackageFile> metadataPackageFile = in verifyPayloadMetadata()
239 private void downloadPreStreamingFiles(UpdateConfig config, String dir) in downloadPreStreamingFiles()
246 for (UpdateConfig.PackageFile file : config.getAbConfig().getPropertyFiles()) { in downloadPreStreamingFiles()
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
DMainActivity.java35 import com.example.android.systemupdatersample.UpdateConfig;
67 private List<UpdateConfig> mConfigs;
137 UpdateConfig config = mConfigs.get(mSpinnerConfigs.getSelectedItemPosition()); in onViewConfigClick()
162 private void applyUpdate(UpdateConfig config) { in applyUpdate()
413 private void loadConfigsToSpinner(List<UpdateConfig> configs) { in loadConfigsToSpinner()
423 private UpdateConfig getSelectedConfig() { in getSelectedConfig()
/bootable/recovery/updater_sample/
Dproguard.flags21 -keep public class com.example.android.systemupdatersample.UpdateConfig {
DREADME.md24 `com.example.android.systemupdatersample.UpdateConfig`, example file is located
213 - [x] Add `UpdateConfig` for working with json config files