Lines Matching refs:settings

17 package com.android.providers.settings;
58 * Performs backup and restore of the System and Secure settings.
59 * List of settings that are backed up are stored in the Settings.java file
411 // representation of the backed-up settings.
422 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
425 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
428 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
455 // Our data is actually a blob of flattened settings data identical to that
469 // system settings data first
471 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of settings data");
476 // secure settings
478 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of secure settings data");
486 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of global settings data");
609 byte[] settings = new byte[data.getDataSize()];
611 data.readEntityData(settings, 0, settings.length);
616 restoreSettings(settings, settings.length, contentUri, movedToGlobal);
619 private void restoreSettings(byte[] settings, int bytes, Uri contentUri,
651 int length = readInt(settings, pos);
653 String dataKey = length > 0 ? new String(settings, pos, length) : null;
655 length = readInt(settings, pos);
657 String dataValue = length > 0 ? new String(settings, pos, length) : null;
693 * @param cursor A cursor with settings data.
694 * @param settings The settings to extract.
697 private byte[] extractRelevantValues(Cursor cursor, String[] settings) {
698 final int settingsCount = settings.length;
710 String key = settings[i];