Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/updater_sample/tests/src/com/example/android/systemupdatersample/util/
DPayloadSpecsTest.java82 PayloadSpec spec = mPayloadSpecs.forNonStreaming(packageFile); in forNonStreaming_works() local
84 assertEquals("correct url", "file://" + packageFile.getAbsolutePath(), spec.getUrl()); in forNonStreaming_works()
86 30 + PAYLOAD_BINARY_FILE_NAME.length(), spec.getOffset()); in forNonStreaming_works()
87 assertEquals("correct payload size", 1392, spec.getSize()); in forNonStreaming_works()
88 assertEquals(4, spec.getProperties().size()); in forNonStreaming_works()
91 spec.getProperties().get(0)); in forNonStreaming_works()
107 PayloadSpec spec = mPayloadSpecs.forStreaming(url, offset, size, propertiesFile); in forStreaming_works() local
108 assertEquals("same url", url, spec.getUrl()); in forStreaming_works()
109 assertEquals("same offset", offset, spec.getOffset()); in forStreaming_works()
110 assertEquals("same size", size, spec.getSize()); in forStreaming_works()
[all …]
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/services/
DPrepareUpdateService.java132 PayloadSpec spec = execute(config); in onHandleIntent() local
133 resultReceiver.send(RESULT_CODE_SUCCESS, CallbackResultReceiver.createBundle(spec)); in onHandleIntent()