Lines Matching refs:Byte
82 private static final int INTEGER_BYTE_COUNT = Integer.SIZE / Byte.SIZE;
84 private static final byte[] EMPTY_DATA = new byte[0];
129 byte[] systemSettingsData = getSystemSettings();
130 byte[] secureSettingsData = getSecureSettings();
131 byte[] locale = mSettingsHelper.getLocaleData();
132 byte[] wifiSupplicantData = getWifiSupplicant(FILE_WIFI_SUPPLICANT);
133 byte[] wifiConfigData = getFileData(mWifiConfigFile);
176 byte[] localeData = new byte[size];
189 byte[] systemSettingsData = getSystemSettings();
190 byte[] secureSettingsData = getSecureSettings();
191 byte[] locale = mSettingsHelper.getLocaleData();
192 byte[] wifiSupplicantData = getWifiSupplicant(FILE_WIFI_SUPPLICANT);
193 byte[] wifiConfigData = getFileData(mWifiConfigFile);
249 byte[] buffer = new byte[nBytes];
256 if (nBytes > buffer.length) buffer = new byte[nBytes];
263 if (nBytes > buffer.length) buffer = new byte[nBytes];
270 if (nBytes > buffer.length) buffer = new byte[nBytes];
285 if (nBytes > buffer.length) buffer = new byte[nBytes];
333 private long writeIfChanged(long oldChecksum, String key, byte[] data,
350 private byte[] getSystemSettings() {
360 private byte[] getSecureSettings() {
371 byte[] settings = new byte[data.getDataSize()];
381 private void restoreSettings(byte[] settings, int bytes, Uri contentUri) {
445 * values and write them to a byte array.
449 * @return The byte array of extracted values.
451 private byte[] extractRelevantValues(Cursor cursor, String[] settings) {
453 byte[][] values = new byte[settingsCount * 2][]; // keys and values
456 return new byte[0];
486 byte[] keyBytes = key.getBytes();
490 byte[] valueBytes = value.getBytes();
502 byte[] result = new byte[totalSize];
512 private byte[] getFileData(String filename) {
520 byte[] bytes = new byte[(int)file.length()];
550 byte[] bytes = new byte[data.getDataSize()];
560 private void restoreFileData(String filename, byte[] bytes, int size) {
574 private byte[] getWifiSupplicant(String filename) {
613 byte[] bytes = new byte[data.getDataSize()];
623 private void restoreWifiSupplicant(String filename, byte[] bytes, int size) {
655 * Write an int in BigEndian into the byte array.
656 * @param out byte array
661 private int writeInt(byte[] out, int pos, int value) {
662 out[pos + 0] = (byte) ((value >> 24) & 0xFF);
663 out[pos + 1] = (byte) ((value >> 16) & 0xFF);
664 out[pos + 2] = (byte) ((value >> 8) & 0xFF);
665 out[pos + 3] = (byte) ((value >> 0) & 0xFF);
669 private int writeBytes(byte[] out, int pos, byte[] value) {
674 private int readInt(byte[] in, int pos) {