Searched refs:widgetData (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriter.java | 170 PackageInfo packageInfo, File metadataFile, File filesDir, byte[] widgetData) in backupWidget() argument 172 Preconditions.checkArgument(widgetData.length > 0, "Can't backup widget with no data."); in backupWidget() 181 writeWidgetData(dataOutputStream, widgetData); in backupWidget() 228 private void writeWidgetData(DataOutputStream out, byte[] widgetData) throws IOException { in writeWidgetData() argument 230 out.writeInt(widgetData.length); in writeWidgetData() 231 out.write(widgetData); in writeWidgetData()
|
D | FullBackupEngine.java | 120 byte[] widgetData = in run() 122 if (widgetData != null && widgetData.length > 0) { in run() 125 mPackage, metadataFile, mFilesDir, widgetData); in run()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/ |
D | AppMetadataBackupWriterTest.java | 267 String[] widgetData = new String(writtenBytes, StandardCharsets.UTF_8).split("\n"); in testBackupWidget_writesCorrectData() local 268 assertThat(widgetData.length).isEqualTo(3); in testBackupWidget_writesCorrectData() 270 assertThat(widgetData[0]).isEqualTo(Integer.toString(BACKUP_METADATA_VERSION)); in testBackupWidget_writesCorrectData() 271 assertThat(widgetData[1]).isEqualTo(packageInfo.packageName); in testBackupWidget_writesCorrectData() 279 assertThat(widgetData[2]).isEqualTo(expectedBytes.toString()); in testBackupWidget_writesCorrectData()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | UserBackupManagerService.java | 2314 public void restoreWidgetData(String packageName, byte[] widgetData) { in restoreWidgetData() argument 2319 AppWidgetBackupBridge.restoreWidgetState(packageName, widgetData, mUserId); in restoreWidgetData()
|