/packages/apps/Email/src/org/apache/commons/io/ |
D | EndianUtils.java | 118 public static void writeSwappedShort(byte[] data, int offset, short value) { in writeSwappedShort() argument 119 data[ offset + 0 ] = (byte)( ( value >> 0 ) & 0xff ); in writeSwappedShort() 120 data[ offset + 1 ] = (byte)( ( value >> 8 ) & 0xff ); in writeSwappedShort() 130 public static short readSwappedShort(byte[] data, int offset) { in readSwappedShort() argument 131 return (short)( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedShort() 132 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedShort() 143 public static int readSwappedUnsignedShort(byte[] data, int offset) { in readSwappedUnsignedShort() argument 144 return ( ( ( data[ offset + 0 ] & 0xff ) << 0 ) + in readSwappedUnsignedShort() 145 ( ( data[ offset + 1 ] & 0xff ) << 8 ) ); in readSwappedUnsignedShort() 155 public static void writeSwappedInteger(byte[] data, int offset, int value) { in writeSwappedInteger() argument [all …]
|
D | IOUtils.java | 628 public static void write(byte[] data, OutputStream output) in write() argument 630 if (data != null) { in write() 631 output.write(data); in write() 648 public static void write(byte[] data, Writer output) throws IOException { in write() argument 649 if (data != null) { in write() 650 output.write(new String(data)); in write() 671 public static void write(byte[] data, Writer output, String encoding) in write() argument 673 if (data != null) { in write() 675 write(data, output); in write() 677 output.write(new String(data, encoding)); in write() [all …]
|
D | HexDump.java | 59 public static void dump(byte[] data, long offset, in dump() argument 64 if ((index < 0) || (index >= data.length)) { in dump() 67 + data.length); in dump() 75 for (int j = index; j < data.length; j += 16) { in dump() 76 int chars_read = data.length - j; in dump() 84 dump(buffer, data[k + j]); in dump() 91 if ((data[k + j] >= ' ') && (data[k + j] < 127)) { in dump() 92 buffer.append((char) data[k + j]); in dump()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/ |
D | AddressListParserVisitor.java | 7 public Object visit(SimpleNode node, Object data); in visit() argument 8 public Object visit(ASTaddress_list node, Object data); in visit() argument 9 public Object visit(ASTaddress node, Object data); in visit() argument 10 public Object visit(ASTmailbox node, Object data); in visit() argument 11 public Object visit(ASTname_addr node, Object data); in visit() argument 12 public Object visit(ASTgroup_body node, Object data); in visit() argument 13 public Object visit(ASTangle_addr node, Object data); in visit() argument 14 public Object visit(ASTroute node, Object data); in visit() argument 15 public Object visit(ASTphrase node, Object data); in visit() argument 16 public Object visit(ASTaddr_spec node, Object data); in visit() argument [all …]
|
D | SimpleNode.java | 49 public Object jjtAccept(AddressListParserVisitor visitor, Object data) { in jjtAccept() argument 50 return visitor.visit(this, data); in jjtAccept() 54 public Object childrenAccept(AddressListParserVisitor visitor, Object data) { in childrenAccept() argument 57 children[i].jjtAccept(visitor, data); in childrenAccept() 60 return data; in childrenAccept()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndfdic.c | 75 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi); 80 NJ_UINT8 *data; in search_data() local 88 data = STEM_AREA_TOP_ADDR(loctset->loct.handle) + offset; in search_data() 91 data += DATA_SIZE; in search_data() 95 if (data >= STRS_AREA_TOP_ADDR(loctset->loct.handle)) { in search_data() 106 i = (STRS_AREA_TOP_ADDR(loctset->loct.handle) - data) / DATA_SIZE; in search_data() 109 if (njd_connect_test(condition, DATA_FHINSI(data), DATA_BHINSI(data))) { in search_data() 120 if (yomi_strcmp_forward(loctset->loct.handle, data, condition->yomi)) { in search_data() 141 data += DATA_SIZE; in search_data() 201 static NJ_UINT16 yomi_strcmp_forward(NJ_DIC_HANDLE hdl, NJ_UINT8 *data, NJ_CHAR *yomi) in yomi_strcmp_forward() argument [all …]
|
D | ndbdic.c | 122 NJ_UINT16 data; in get_stem_hindo() local 136 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_hindo() 141 return GET_BITFIELD_16(data, j, BIT_HINDO_LEN(hdl)); in get_stem_hindo() 151 NJ_UINT16 data; in get_stem_next() local 170 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next() 176 candidate_size = GET_BITFIELD_16(data, j, cand_bit); in get_stem_next() 184 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_next() 190 yomi_size = GET_BITFIELD_16(data, j, yomi_bit); in get_stem_next() 212 NJ_UINT16 data; in get_stem_word() local 231 data = (NJ_UINT16)(NJ_INT16_READ(stem_data + pos)); in get_stem_word() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | AttachmentTypeSelectorAdapter.java | 53 List<IconListItem> data = new ArrayList<IconListItem>(7); in getData() local 54 addItem(data, context.getString(R.string.attach_image), in getData() 57 addItem(data, context.getString(R.string.attach_take_photo), in getData() 60 addItem(data, context.getString(R.string.attach_video), in getData() 63 addItem(data, context.getString(R.string.attach_record_video), in getData() 67 addItem(data, context.getString(R.string.attach_sound), in getData() 71 addItem(data, context.getString(R.string.attach_record_sound), in getData() 75 addItem(data, context.getString(R.string.attach_slideshow), in getData() 79 return data; in getData() 82 protected static void addItem(List<IconListItem> data, String title, in addItem() argument [all …]
|
D | LayoutSelectorAdapter.java | 36 List<IconListItem> data = new ArrayList<IconListItem>(2); in getData() local 37 addItem(data, context.getString(R.string.select_top_text), in getData() 39 addItem(data, context.getString(R.string.select_bottom_text), in getData() 42 return data; in getData() 45 protected static void addItem(List<IconListItem> data, String title, int resource) { in addItem() argument 47 data.add(temp); in addItem()
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | ContactsUtilsTests.java | 46 final Uri data = intent.getData(); in testImIntent() local 47 assertEquals("imto", data.getScheme()); in testImIntent() 48 assertEquals("gtalk", data.getAuthority()); in testImIntent() 49 assertEquals(TEST_ADDRESS, data.getPathSegments().get(0)); in testImIntent() 64 final Uri data = intent.getData(); in testImIntentCustom() local 65 assertEquals("imto", data.getScheme()); in testImIntentCustom() 66 assertEquals(TEST_PROTOCOL, data.getAuthority()); in testImIntentCustom() 67 assertEquals(TEST_ADDRESS, data.getPathSegments().get(0)); in testImIntentCustom() 80 final Uri data = intent.getData(); in testImEmailIntent() local 81 assertEquals("imto", data.getScheme()); in testImEmailIntent() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AllAppsList.java | 49 public ArrayList<ApplicationInfo> data = new ArrayList(DEFAULT_APPLICATIONS_NUMBER); field in AllAppsList 68 data.add(info); in add() 73 data.clear(); in clear() 81 return data.size(); in size() 85 return data.get(index); in get() 98 data.add(item); in addPackage() 108 final List<ApplicationInfo> data = this.data; in removePackage() local 109 for (int i=data.size()-1; i>=0; i--) { in removePackage() 110 ApplicationInfo info = data.get(i); in removePackage() 114 data.remove(i); in removePackage() [all …]
|
D | InstallShortcutReceiver.java | 32 public void onReceive(Context context, Intent data) { in onReceive() argument 33 if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { in onReceive() 39 if (!installShortcut(context, data, screen)) { in onReceive() 42 if (i != screen && installShortcut(context, data, i)) break; in onReceive() 47 private boolean installShortcut(Context context, Intent data, int screen) { in installShortcut() argument 48 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in installShortcut() 56 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in installShortcut() 64 boolean duplicate = data.getBooleanExtra(Launcher.EXTRA_SHORTCUT_DUPLICATE, true); in installShortcut() 66 Launcher.addShortcut(context, data, cell, true); in installShortcut()
|
D | UninstallShortcutReceiver.java | 33 public void onReceive(Context context, Intent data) { in onReceive() argument 34 if (!ACTION_UNINSTALL_SHORTCUT.equals(data.getAction())) { in onReceive() 38 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in onReceive() 39 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in onReceive() 40 boolean duplicate = data.getBooleanExtra(Launcher.EXTRA_SHORTCUT_DUPLICATE, true); in onReceive()
|
/packages/apps/IM/src/com/android/im/imps/ |
D | SmsAssembler.java | 46 public void onIncomingSms(byte[] data) { in onIncomingSms() argument 47 String preamble = extractPreamble(data); in onIncomingSms() 60 notifyAssembledSms(data); in onIncomingSms() 76 pts.setSegment(index, data); in onIncomingSms() 84 private String extractPreamble(byte[] data) { in extractPreamble() argument 85 int N = data.length; in extractPreamble() 87 while (data[preambleIndex] != ' ' && preambleIndex < N) { in extractPreamble() 96 return new String(data, 0, preambleIndex, "UTF-8"); in extractPreamble() 103 private void notifyAssembledSms(byte[] data) { in notifyAssembledSms() argument 105 mListener.onIncomingSms(data); in notifyAssembledSms()
|
D | SmsSplitter.java | 50 public int split(byte[] data) { in split() argument 51 mData = data; in split() 116 byte[] data = mData; in searchPreambleEnd() 118 while(index < data.length && data[index] != ' ') { in searchPreambleEnd()
|
D | SmsDataChannel.java | 205 public void onIncomingSms(byte[] data) { in onIncomingSms() argument 207 Primitive p = mParser.parse(new ByteArrayInputStream(data)); in onIncomingSms() 211 handleError(data, ImpsErrorInfo.PARSER_ERROR, e.getLocalizedMessage()); in onIncomingSms() 213 handleError(data, ImpsErrorInfo.PARSER_ERROR, e.getLocalizedMessage()); in onIncomingSms() 215 handleError(data, ImpsErrorInfo.UNKNOWN_ERROR, e.getLocalizedMessage()); in onIncomingSms() 219 private void handleError(byte[] data, int errCode, String info) { in handleError() argument 220 String trId = extractTrId(data); in handleError() 227 private String extractTrId(byte[] data) { in extractTrId() argument 230 while(Character.isDigit(data[index])) { in extractTrId() 235 return new String(data, transIdStart, transIdLen, "UTF-8"); in extractTrId()
|
/packages/apps/Mms/src/com/android/mms/model/ |
D | TextModel.java | 45 int charset, byte[] data, RegionModel region) { in TextModel() argument 47 data != null ? data : new byte[0], region); in TextModel() 55 mText = extractTextFromData(data); in TextModel() 58 private CharSequence extractTextFromData(byte[] data) { in extractTextFromData() argument 59 if (data != null) { in extractTextFromData() 62 return new String(data); // system default encoding. in extractTextFromData() 65 return new String(data, name); in extractTextFromData() 69 return new String(data); // system default encoding. in extractTextFromData()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 74 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument 83 userDictionaryData, data); in onBackup() 89 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument 92 while (data.readNextHeader()) { in onRestore() 93 final String key = data.getKey(); in onRestore() 94 final int size = data.getDataSize(); in onRestore() 96 restoreDictionary(data, Words.CONTENT_URI); in onRestore() 98 data.skipEntityData(); in onRestore() 129 private long writeIfChanged(long oldChecksum, String key, byte[] data, in writeIfChanged() argument 132 checkSummer.update(data); in writeIfChanged() [all …]
|
/packages/apps/Launcher/src/com/android/launcher/ |
D | InstallShortcutReceiver.java | 32 public void onReceive(Context context, Intent data) { in onReceive() argument 33 if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) { in onReceive() 39 if (!installShortcut(context, data, screen)) { in onReceive() 42 if (i != screen && installShortcut(context, data, i)) break; in onReceive() 47 private boolean installShortcut(Context context, Intent data, int screen) { in installShortcut() argument 48 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in installShortcut() 56 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in installShortcut() 64 boolean duplicate = data.getBooleanExtra(Launcher.EXTRA_SHORTCUT_DUPLICATE, true); in installShortcut() 66 Launcher.addShortcut(context, data, cell, true); in installShortcut()
|
D | UninstallShortcutReceiver.java | 33 public void onReceive(Context context, Intent data) { in onReceive() argument 34 if (!ACTION_UNINSTALL_SHORTCUT.equals(data.getAction())) { in onReceive() 38 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT); in onReceive() 39 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME); in onReceive() 40 boolean duplicate = data.getBooleanExtra(Launcher.EXTRA_SHORTCUT_DUPLICATE, true); in onReceive()
|
/packages/apps/IM/src/com/android/im/engine/ |
D | Presence.java | 101 byte[] data = new byte[mAvatarData.length]; in getAvatarData() 102 System.arraycopy(mAvatarData, 0, data, 0, mAvatarData.length); in getAvatarData() 103 return data; in getAvatarData() 143 public void setAvatar(byte[] data, String type) { in setAvatar() argument 144 if(data != null) { in setAvatar() 145 mAvatarData = new byte[data.length]; in setAvatar() 146 System.arraycopy(data, 0, mAvatarData, 0, data.length); in setAvatar()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBackupAgent.java | 72 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup() argument 101 copyFileToBackup(BOOKMARK_KEY, tmpfile, data); in onBackup() 118 public void onRestore(BackupDataInput data, int appVersionCode, in onRestore() argument 123 while (data.readNextHeader()) { in onRestore() 124 if (BOOKMARK_KEY.equals(data.getKey())) { in onRestore() 126 crc = copyBackupToFile(data, tmpfile, data.getDataSize()); in onRestore() 252 private void copyFileToBackup(String key, File file, BackupDataOutput data) in copyFileToBackup() argument 258 data.writeEntityHeader(key, toCopy); in copyFileToBackup() 264 data.writeEntityData(buf, nRead); in copyFileToBackup() 271 private long copyBackupToFile(BackupDataInput data, File file, int toRead) in copyBackupToFile() argument [all …]
|
/packages/apps/IM/src/com/android/im/service/ |
D | AndroidSmsService.java | 70 public void sendSms(String dest, int port, byte[] data) { in sendSms() argument 71 sendSms(dest, port, data, null); in sendSms() 74 public void sendSms(String dest, int port, byte[] data, in sendSms() argument 78 log(dest + ":" + port + " >>> " + new String(data, "UTF-8")); in sendSms() 82 if (data.length > sMaxSmsLength) { in sendSms() 104 (short) port, data, in sendSms() 197 byte[] data = msg.getUserData(); in onReceive() 200 log(from + ":" + port + " <<< " + new String(data, "UTF-8")); in onReceive() 204 listeners.notifySms(from, data); in onReceive() 234 public void notifySms(String addr, byte[] data) { in notifySms() argument [all …]
|
/packages/apps/IM/libwbxml/include/ |
D | wbxml_parser.h | 40 virtual void characters(const char * data, int len) = 0; 41 virtual void opaque(const char * data, int len) = 0; 71 void characters(const char * data, int len) in characters() argument 75 void opaque(const char * data, int len) in opaque() argument 92 int parse(const char * data, uint32_t len, bool end); 156 void appendData(const char * data, uint32_t len, bool end);
|
/packages/apps/Email/src/org/apache/commons/io/input/ |
D | SwappedDataInputStream.java | 117 public void readFully( byte[] data ) in readFully() argument 120 readFully( data, 0, data.length ); in readFully() 133 public void readFully( byte[] data, int offset, int length ) in readFully() argument 141 int count = read( data, location, remaining ); in readFully()
|