Lines Matching refs:fi
344 FilterInfo fi, BluetoothMapAppParams ap) {
353 FilterInfo fi, BluetoothMapAppParams ap) {
356 if (fi.msgType == FilterInfo.TYPE_SMS) {
358 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
373 FilterInfo fi, BluetoothMapAppParams ap) {
375 if (fi.msgType == FilterInfo.TYPE_SMS) {
377 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
391 FilterInfo fi, BluetoothMapAppParams ap) {
407 FilterInfo fi, BluetoothMapAppParams ap) {
410 if (fi.msgType == FilterInfo.TYPE_MMS) {
419 FilterInfo fi, BluetoothMapAppParams ap) {
422 if (fi.msgType == FilterInfo.TYPE_SMS) {
424 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
444 FilterInfo fi, BluetoothMapAppParams ap) {
453 FilterInfo fi, BluetoothMapAppParams ap) {
456 if (fi.msgType == FilterInfo.TYPE_SMS) {
459 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
468 FilterInfo fi, BluetoothMapAppParams ap) {
471 if (fi.msgType == FilterInfo.TYPE_SMS) {
472 if (fi.phoneType == TelephonyManager.PHONE_TYPE_GSM) {
474 } else if (fi.phoneType == TelephonyManager.PHONE_TYPE_CDMA) {
477 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
486 FilterInfo fi, BluetoothMapAppParams ap) {
489 if (fi.msgType == FilterInfo.TYPE_SMS) {
492 address = fi.phoneNum;
496 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
506 FilterInfo fi, BluetoothMapAppParams ap) {
509 if (fi.msgType == FilterInfo.TYPE_SMS) {
515 name = fi.phoneAlphaTag;
517 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
528 FilterInfo fi, BluetoothMapAppParams ap) {
531 if (fi.msgType == FilterInfo.TYPE_SMS) {
536 address = fi.phoneNum;
538 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
548 FilterInfo fi, BluetoothMapAppParams ap) {
551 if (fi.msgType == FilterInfo.TYPE_SMS) {
557 name = fi.phoneAlphaTag;
559 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
570 FilterInfo fi, BluetoothMapAppParams ap) {
573 if (fi.msgType == FilterInfo.TYPE_SMS) {
575 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
613 FilterInfo fi, BluetoothMapAppParams ap) {
620 if (fi.msgType == FilterInfo.TYPE_SMS) {
622 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
640 FilterInfo fi, BluetoothMapAppParams ap) {
643 if (fi.msgType == FilterInfo.TYPE_SMS) {
644 if (fi.phoneType == TelephonyManager.PHONE_TYPE_GSM) {
646 } else if (fi.phoneType == TelephonyManager.PHONE_TYPE_CDMA) {
649 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
656 private BluetoothMapMessageListingElement element(Cursor c, FilterInfo fi,
660 setHandle(e, c, fi, ap);
661 setSubject(e, c, fi, ap);
662 setDateTime(e, c, fi, ap);
663 setSenderName(e, c, fi, ap);
664 setSenderAddressing(e, c, fi, ap);
665 setRecipientName(e, c, fi, ap);
666 setRecipientAddressing(e, c, fi, ap);
667 setType(e, c, fi, ap);
668 setSize(e, c, fi, ap);
669 setReceptionStatus(e, c, fi, ap);
670 setText(e, c, fi, ap);
671 setAttachmentSize(e, c, fi, ap);
672 setPriority(e, c, fi, ap);
673 setRead(e, c, fi, ap);
674 setSent(e, c, fi, ap);
675 setProtected(e, c, fi, ap);
717 private boolean matchRecipientMms(Cursor c, FilterInfo fi, String recip) {
740 private boolean matchRecipientSms(Cursor c, FilterInfo fi, String recip) {
744 String phone = fi.phoneNum;
745 String name = fi.phoneAlphaTag;
778 private boolean matchRecipient(Cursor c, FilterInfo fi, BluetoothMapAppParams ap) {
784 if (fi.msgType == FilterInfo.TYPE_SMS) {
785 res = matchRecipientSms(c, fi, recip);
786 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
787 res = matchRecipientMms(c, fi, recip);
789 if (D) Log.d(TAG, "Unknown msg type: " + fi.msgType);
798 private boolean matchOriginatorMms(Cursor c, FilterInfo fi, String orig) {
821 private boolean matchOriginatorSms(Cursor c, FilterInfo fi, String orig) {
844 String phone = fi.phoneNum;
845 String name = fi.phoneAlphaTag;
859 private boolean matchOriginator(Cursor c, FilterInfo fi, BluetoothMapAppParams ap) {
865 if (fi.msgType == FilterInfo.TYPE_SMS) {
866 res = matchOriginatorSms(c, fi, orig);
867 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
868 res = matchOriginatorMms(c, fi, orig);
870 Log.d(TAG, "Unknown msg type: " + fi.msgType);
879 private boolean matchAddresses(Cursor c, FilterInfo fi, BluetoothMapAppParams ap) {
880 if (matchOriginator(c, fi, ap) && matchRecipient(c, fi, ap)) {
929 private String setWhereFilterFolderType(String folder, FilterInfo fi) {
931 if (fi.msgType == FilterInfo.TYPE_SMS) {
933 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
955 private String setWhereFilterPeriod(BluetoothMapAppParams ap, FilterInfo fi) {
958 if (fi.msgType == FilterInfo.TYPE_SMS) {
960 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
966 if (fi.msgType == FilterInfo.TYPE_SMS) {
968 } else if (fi.msgType == FilterInfo.TYPE_MMS) {
1020 FilterInfo fi) {
1037 if (fi.phoneNum != null && fi.phoneNum.length() > 0
1038 && fi.phoneNum.matches(orig)) {
1042 if (fi.phoneAlphaTag != null && fi.phoneAlphaTag.length() > 0
1043 && fi.phoneAlphaTag.matches(orig)) {
1056 FilterInfo fi) {
1073 if (fi.phoneNum != null && fi.phoneNum.length() > 0
1074 && fi.phoneNum.matches(recip)) {
1078 if (fi.phoneAlphaTag != null && fi.phoneAlphaTag.length() > 0
1079 && fi.phoneAlphaTag.matches(recip)) {
1091 private String setWhereFilter(String folder, FilterInfo fi, BluetoothMapAppParams ap) {
1094 where += setWhereFilterFolderType(folder, fi);
1096 where += setWhereFilterPeriod(ap, fi);
1097 /* where += setWhereFilterOriginator(ap, fi); */
1098 /* where += setWhereFilterRecipient(ap, fi); */
1105 private boolean smsSelected(FilterInfo fi, BluetoothMapAppParams ap) {
1107 int phoneType = fi.phoneType;
1123 private boolean mmsSelected(FilterInfo fi, BluetoothMapAppParams ap) {
1135 private void setFilterInfo(FilterInfo fi) {
1138 fi.phoneType = tm.getPhoneType();
1139 fi.phoneNum = tm.getLine1Number();
1140 fi.phoneAlphaTag = tm.getLine1AlphaTag();
1141 if (D) Log.d(TAG, "phone type = " + fi.phoneType +
1142 " phone num = " + fi.phoneNum +
1143 " phone alpha tag = " + fi.phoneAlphaTag);
1153 FilterInfo fi = new FilterInfo();
1154 setFilterInfo(fi);
1156 if (smsSelected(fi, ap)) {
1157 fi.msgType = FilterInfo.TYPE_SMS;
1159 String where = setWhereFilter(folder, fi, ap);
1166 if (matchAddresses(c, fi, ap)) {
1168 e = element(c, fi, ap);
1176 if (mmsSelected(fi, ap)) {
1177 fi.msgType = FilterInfo.TYPE_MMS;
1179 String where = setWhereFilter(folder, fi, ap);
1187 if (matchAddresses(c, fi, ap)) {
1189 e = element(c, fi, ap);
1209 FilterInfo fi = new FilterInfo();
1210 setFilterInfo(fi);
1212 if (smsSelected(fi, ap)) {
1213 fi.msgType = FilterInfo.TYPE_SMS;
1214 String where = setWhereFilter(folder, fi, ap);
1224 if (mmsSelected(fi, ap)) {
1225 fi.msgType = FilterInfo.TYPE_MMS;
1226 String where = setWhereFilter(folder, fi, ap);
1250 FilterInfo fi = new FilterInfo();
1251 setFilterInfo(fi);
1253 if (smsSelected(fi, ap)) {
1254 fi.msgType = FilterInfo.TYPE_SMS;
1255 String where = setWhereFilterFolderType(folder, fi);
1257 where += setWhereFilterPeriod(ap, fi);
1267 if (mmsSelected(fi, ap)) {
1268 fi.msgType = FilterInfo.TYPE_MMS;
1269 String where = setWhereFilterFolderType(folder, fi);
1271 where += setWhereFilterPeriod(ap, fi);