Home
last modified time | relevance | path

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

/frameworks/support/work/workmanager/src/main/java/androidx/work/
DData.java43 public static final int MAX_DATA_BYTES = 10 * 1024; // 10KB field in Data
322 if (outputStream.size() > MAX_DATA_BYTES) { in toByteArray()
324 "Data cannot occupy more than " + MAX_DATA_BYTES + "KB when serialized"); in toByteArray()
338 if (bytes.length > MAX_DATA_BYTES) { in fromByteArray()
340 "Data cannot occupy more than " + MAX_DATA_BYTES + "KB when serialized"); in fromByteArray()
/frameworks/support/work/workmanager/src/test/java/androidx/work/
DDataTest.java90 int[] payload = new int[Data.MAX_DATA_BYTES + 1]; in testSerializePastMaxSize()
104 byte[] payload = new byte[Data.MAX_DATA_BYTES + 1]; in testDeserializePastMaxSize()