Lines Matching defs:settings

17 package com.android.providers.settings;
68 * Performs backup and restore of the System and Secure settings.
69 * List of settings that are backed up are stored in the Settings.java file
525 // representation of the backed-up settings.
536 if (DEBUG_BACKUP) Log.d(TAG, systemSettingsData.length + " bytes of settings data");
539 if (DEBUG_BACKUP) Log.d(TAG, secureSettingsData.length + " bytes of secure settings data");
542 if (DEBUG_BACKUP) Log.d(TAG, globalSettingsData.length + " bytes of global settings data");
569 // Our data is actually a blob of flattened settings data identical to that
583 // system settings data first
585 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of settings data");
590 // secure settings
592 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of secure settings data");
600 if (DEBUG_BACKUP) Log.d(TAG, nBytes + " bytes of global settings data");
723 byte[] settings = new byte[data.getDataSize()];
725 data.readEntityData(settings, 0, settings.length);
730 restoreSettings(settings, settings.length, contentUri, movedToGlobal);
733 private void restoreSettings(byte[] settings, int bytes, Uri contentUri,
765 int length = readInt(settings, pos);
767 String dataKey = length > 0 ? new String(settings, pos, length) : null;
769 length = readInt(settings, pos);
771 String dataValue = length > 0 ? new String(settings, pos, length) : null;
807 * @param cursor A cursor with settings data.
808 * @param settings The settings to extract.
811 private byte[] extractRelevantValues(Cursor cursor, String[] settings) {
812 final int settingsCount = settings.length;
824 String key = settings[i];