Searched refs:resId (Results 1 - 25 of 32) sorted by relevance

12

/packages/apps/Camera/src/com/android/camera/ui/
H A DResourceTexture.java31 public ResourceTexture(Context context, int resId) { argument
33 mResId = resId;
H A DNinePatchTexture.java27 public NinePatchTexture(Context context, int resId) { argument
28 super(context, resId);
/packages/apps/Phone/src/com/android/phone/
H A DInCallMenuItemView.java117 public void setIconResource(int resId) { argument
118 if (DBG) log("setIconResource(" + resId + ")...");
119 Drawable iconDrawable = getResources().getDrawable(resId);
128 int resId = mIndicatorState ? android.R.drawable.button_onoff_indicator_on
130 mIndicatorDrawable = getResources().getDrawable(resId);
H A DNotificationMgr.java498 int resId;
524 resId = R.drawable.stat_sys_phone_call_ringing;
528 resId = R.drawable.stat_sys_vp_phone_call_on_hold;
530 resId = R.drawable.stat_sys_phone_call_on_hold;
535 resId = R.drawable.stat_sys_vp_phone_call_bluetooth;
537 resId = R.drawable.stat_sys_phone_call_bluetooth;
541 resId = R.drawable.stat_sys_vp_phone_call;
543 resId = R.drawable.stat_sys_phone_call;
547 // Note we can't just bail out now if (resId == mInCallResId),
553 if (DBG) log("- Updating status bar icon: resId
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountSelectionUtil.java61 public AccountSelectedListener(Context context, List<Account> accountList, int resId) { argument
67 mResId = resId;
76 public static Dialog getSelectAccountDialog(Context context, int resId) { argument
77 return getSelectAccountDialog(context, resId, null, null);
80 public static Dialog getSelectAccountDialog(Context context, int resId, argument
82 return getSelectAccountDialog(context, resId, onClickListener, null);
89 public static Dialog getSelectAccountDialog(Context context, int resId, argument
135 new AccountSelectedListener(context, writableAccountList, resId);
152 public static void doImport(Context context, int resId, Account account) { argument
153 switch (resId) {
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DBinaryDictionary.java73 * @param resId the resource containing the raw binary dictionary
75 public BinaryDictionary(Context context, int[] resId, int dicTypeId) { argument
76 if (resId != null && resId.length > 0 && resId[0] != 0) {
77 loadDictionary(context, resId);
114 private final void loadDictionary(Context context, int[] resId) { argument
119 is = new InputStream[resId.length];
120 for (int i = 0; i < resId.length; i++) {
121 is[i] = context.getResources().openRawResource(resId[
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DDockSettings.java106 int resId = R.string.dock_audio_summary_unknown;
109 resId = R.string.dock_audio_summary_car;
112 resId = R.string.dock_audio_summary_desk;
115 resId = R.string.dock_audio_summary_none;
117 mAudioSettings.setSummary(resId);
/packages/apps/Stk/src/com/android/stk/
H A DStkDialogActivity.java154 private void sendResponse(int resId, boolean confirmed) { argument
157 args.putInt(StkAppService.RES_ID, resId);
162 private void sendResponse(int resId) { argument
163 sendResponse(resId, true);
H A DToneDialog.java127 private void sendResponse(int resId) { argument
130 args.putInt(StkAppService.RES_ID, resId);
H A DStkMenuActivity.java320 private void sendResponse(int resId) { argument
321 sendResponse(resId, 0, false);
324 private void sendResponse(int resId, int itemId, boolean help) { argument
327 args.putInt(StkAppService.RES_ID, resId);
H A DStkInputActivity.java184 private void sendResponse(int resId) { argument
185 sendResponse(resId, null, false);
188 private void sendResponse(int resId, String input, boolean help) { argument
191 args.putInt(StkAppService.RES_ID, resId);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLiveFolderIcon.java37 static LiveFolderIcon fromXml(int resId, Launcher launcher, ViewGroup group, argument
41 LayoutInflater.from(launcher).inflate(resId, group, false);
H A DFolderIcon.java46 static FolderIcon fromXml(int resId, Launcher launcher, ViewGroup group, argument
49 FolderIcon icon = (FolderIcon) LayoutInflater.from(launcher).inflate(resId, group, false);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DUserBigramTests.java34 int[] resId = new int[] { R.raw.test };
35 sh = new SuggestHelper(TAG, getTestContext(), resId, MAX_DATA, DELETE_DATA);
H A DSuggestHelper.java41 public SuggestHelper(String tag, Context context, int[] resId) { argument
47 is = new InputStream[resId.length];
48 for (int i = 0; i < resId.length; i++) {
49 is[i] = context.getResources().openRawResource(resId[i]);
56 for (int i = 0; i < resId.length; i++) {
83 public SuggestHelper(String tag, Context context, int[] resId, int userBigramMax, argument
85 this(tag, context, resId);
H A DSuggestPerformanceTests.java39 //int[] resId = new int[] { R.raw.main0, R.raw.main1, R.raw.main2 };
41 int[] resId = new int[] { R.raw.test };
43 sh = new SuggestHelper(TAG, getTestContext(), resId);
H A DSuggestTests.java29 int[] resId = new int[] { R.raw.test };
30 sh = new SuggestHelper(TAG, getTestContext(), resId);
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DXmlKeyboardLoader.java754 int resId = xrp.getAttributeResourceValue(null, name, 0);
756 if (resId == 0) {
766 return Integer.parseInt(mContext.getResources().getString(resId));
771 int resId = xrp.getAttributeResourceValue(null, name, 0);
773 if (resId == 0) {
783 return mContext.getResources().getColor(resId);
788 int resId = xrp.getAttributeResourceValue(null, name, 0);
789 if (resId == 0) {
792 return mContext.getResources().getString(resId);
797 int resId
[all...]
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSettingsUtils.java139 int resId = xml.getAttributeResourceValue(null, name, 0);
140 if (resId == 0) {
144 return context.getString(resId);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DSymbolList.java127 int resId = xrp.getAttributeResourceValue(null, name, 0);
128 if (resId == 0) {
131 return mWnn.getString(resId);
/packages/apps/Camera/src/com/android/camera/
H A DPreferenceInflater.java50 public CameraPreference inflate(int resId) { argument
51 return inflate(mContext.getResources().getXml(resId));
/packages/apps/Mms/src/com/android/mms/util/
H A DSmileyParser.java178 int resId = mSmileyToRes.get(matcher.group());
179 builder.setSpan(new ImageSpan(mContext, resId),
/packages/apps/Protips/src/com/android/protips/
H A DProtipWidget.java162 private void setIcon(int resId) { argument
163 mIconRes = resId;
217 int resId = context.getResources().getIdentifier(
220 updateViews.setImageViewResource(R.id.tip_callout, resId);
/packages/apps/Contacts/src/com/android/contacts/
H A DImportVCardActivity.java135 public DialogDisplayer(int resId) { argument
136 mResId = resId;
775 final int resId = R.string.import_from_sdcard;
778 this, accountList, resId) {
788 showDialog(resId);
816 protected Dialog onCreateDialog(int resId) { argument
817 switch (resId) {
823 return AccountSelectionUtil.getSelectAccountDialog(this, resId,
906 return super.onCreateDialog(resId);
/packages/apps/Email/src/com/android/email/
H A DController.java321 int resId = -1;
324 resId = R.string.mailbox_name_server_inbox;
327 resId = R.string.mailbox_name_server_outbox;
330 resId = R.string.mailbox_name_server_drafts;
333 resId = R.string.mailbox_name_server_trash;
336 resId = R.string.mailbox_name_server_sent;
339 resId = R.string.mailbox_name_server_junk;
342 return resId != -1 ? mContext.getString(resId) : "";

Completed in 594 milliseconds

12