Searched refs:type (Results 26 - 50 of 527) sorted by relevance

1234567891011>>

/packages/apps/FMRadio/src/com/android/fmradio/
H A DFmNative.java53 * @param type (0, FMRadio; 1, FMTransimitter)
57 static native boolean powerDown(int type); argument
105 * @return rds event type
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/
H A DState.java35 public State(String text, int type) { argument
37 mType = type;
67 void setType(int type) { argument
68 mType = type;
/packages/apps/Exchange/src/com/android/exchange/adapter/
H A DParser.java122 // The type of the last token read (eg, TEXT, OPAQUE, END, etc).
123 private int type; field in class:Parser
142 // TODO: Define a new parse exception type rather than lumping these in as IOExceptions.
234 if (type == END) {
237 } else if (type != OPAQUE && type != TEXT) {
242 final byte[] val = type == OPAQUE ? bytes : text.getBytes("UTF-8");
246 if (type != END) {
264 if (type == END) {
267 } else if (type !
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DAccountTypeManager.java98 * Set the instance of account type manager. This is only for and should only be used by unit
142 * (1) making sure that the app that contributed the account type is not disabled
144 * (2) that there is at least one raw contact with that account type in the database
145 * (assuming that the user probably doesn't use that account type).
156 public DataKind getKindOrFallback(AccountType type, String mimeType) { argument
157 return type == null ? null : type.getKindForMimetype(mimeType);
254 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type)
257 } else if (b.name == null || b.type
588 getKindOrFallback(AccountType type, String mimeType) argument
[all...]
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
H A DVpnProfileParser.java45 boolean type;
76 if (tagName.equalsIgnoreCase("type")) {
77 type = true;
129 mVpnPool.put(profile.type, vpnInfo);
140 if (type) {
143 throw new SAXException("not a valid VPN type");
145 profile.type = t;
147 type = false;
211 private int getVpnProfileType(String type) {
212 if (type
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DServiceDeclaration.java35 byte type = TYPE_UNDEFINED; field in class:ServiceDeclaration.Entry
45 this.type = TYPE_SERVICE;
52 this.type = TYPE_SERVICE;
60 this.type = TYPE_CHARACTERISTIC;
68 this.type = TYPE_DESCRIPTOR;
93 entry.type = TYPE_INCLUDED_SERVICE;
H A DHandleMap.java37 int type = TYPE_UNDEFINED; field in class:HandleMap.Entry
49 this.type = TYPE_SERVICE;
59 this.type = TYPE_SERVICE;
67 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle) { argument
69 this.type = type;
76 Entry(int serverIf, int type, int handle, UUID uuid, int serviceHandle, int charHandle) { argument
78 this.type = type;
117 if (entry.type !
[all...]
/packages/apps/Launcher2/src/com/android/launcher2/
H A DDeferredHandler.java81 public void post(Runnable runnable, int type) { argument
83 mQueue.add(new Pair<Runnable, Integer>(runnable, type));
94 public void postIdle(final Runnable runnable, int type) { argument
95 post(new IdleRunnable(runnable), type);
103 public void cancelAllRunnablesOfType(int type) { argument
109 if (p.second == type) {
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DMimeType.java50 * Returns whether or not an attachment of the specified type is installable (e.g. an apk).
52 public static boolean isInstallable(String type) { argument
53 return ANDROID_ARCHIVE.equals(type);
57 * Returns whether or not an attachment of the specified type is viewable.
61 // content type is not known. Changing the provider to return null,
66 LogUtils.d(LOG_TAG, "Attachment with null content type. '%s", contentUri);
96 "mime-type: %s, uri: %s, normalized mime-type: %s normalized uri: %s",
120 * Returns the mime type of the attachment based on its name and
121 * original mime type
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DContactDisplayUtils.java44 * Checks if the given data type is a custom type.
46 * @param type Phone data type.
47 * @return {@literal true} if the type is custom. {@literal false} if not.
49 public static boolean isCustomPhoneType(Integer type) { argument
50 return type == Phone.TYPE_CUSTOM || type == Phone.TYPE_ASSISTANT;
54 * Gets a display label for a given phone type.
56 * @param type Th
64 getLabelForCallOrSms(Integer type, CharSequence customLabel, int interactionType, Context context) argument
92 getPhoneLabelResourceId(Integer type) argument
147 getSmsLabelResourceId(Integer type) argument
[all...]
H A DLocalizedNameResolver.java41 * Retrieves localized names per account type. This allows customizing texts like
50 * Returns the name for All Contacts for the specified account type.
60 * Finds "All Contacts"-Name for the specified account type.
66 if (accountType.equals(auth.type)) {
90 int type;
91 while ((type = parser.next()) != XmlPullParser.START_TAG
92 && type != XmlPullParser.END_DOCUMENT) {
96 if (type != XmlPullParser.START_TAG) {
101 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
102 && type !
[all...]
H A DContactLoaderUtils.java50 final String type = resolver.getType(uri);
52 if (ContactsContract.Contacts.CONTENT_ITEM_TYPE.equals(type)) {
57 if (RawContacts.CONTENT_ITEM_TYPE.equals(type)) {
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
H A DMockAlarmManager.java35 public void expectAlarmTime(int type, long millis) { argument
36 this.expectedAlarmType = type;
45 Assert.assertEquals("Alarm type not expected.", expectedAlarmType, actualAlarmType);
/packages/apps/Settings/src/com/android/settings/notification/
H A DSettingPref.java47 public SettingPref(int type, String key, String setting, int def, int... values) { argument
48 mType = type;
123 private static Uri getUriFor(int type, String setting) { argument
124 switch(type) {
133 protected static boolean putInt(int type, ContentResolver cr, String setting, int value) { argument
134 switch(type) {
143 protected static int getInt(int type, ContentResolver cr, String setting, int def) { argument
144 switch(type) {
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
H A Dsuggested_word.h43 const int score, const int type, const int indexToPartialCommit,
46 mType(type), mIndexToPartialCommit(indexToPartialCommit),
42 SuggestedWord(const int *const codePoints, const int codePointCount, const int score, const int type, const int indexToPartialCommit, const int autoCommitFirstWordConfidence) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPhotoPriorityResolver.java41 * Maintains a cache of photo priority per account type. During contact aggregation
86 * Returns the photo priority for the specified account type. Maintains cache
103 * Finds photo priority for the specified account type.
109 if (accountType.equals(auth.type)) {
148 int type;
149 while ((type = parser.next()) != XmlPullParser.START_TAG
150 && type != XmlPullParser.END_DOCUMENT) {
154 if (type != XmlPullParser.START_TAG) {
159 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth)
160 && type !
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DFallbackSource.java85 protected EditType buildPhoneType(int type) { argument
86 return new EditType(type, Phone.getTypeLabelResource(type));
89 protected EditType buildEmailType(int type) { argument
90 return new EditType(type, Email.getTypeLabelResource(type));
93 protected EditType buildPostalType(int type) { argument
94 return new EditType(type, StructuredPostal.getTypeLabelResource(type));
97 protected EditType buildImType(int type) { argument
101 buildOrgType(int type) argument
498 getTypeLabelResource(Integer type) argument
500 isCustom(Integer type) argument
512 getTypeLabel(Resources res, Integer type, CharSequence label) argument
538 isCustom(Integer type) argument
543 getTypeLabelResource(Integer type) argument
573 isCustom(Integer type) argument
578 getTypeLabelResource(Integer type) argument
608 getTypeLabelResource(Integer type) argument
622 getTypeLabelResource(Integer type) argument
629 getTypeLabelResource(Integer type) argument
652 getTypeLabelResource(Integer type) argument
[all...]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
H A DValuesDeltaTests.java51 final int type = builder.build().getType();
52 assertEquals("Didn't produce insert action", TYPE_INSERT, type);
82 final int type = builder.build().getType();
83 assertEquals("Didn't produce update action", TYPE_UPDATE, type);
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DContactInfo.java37 public int type; field in class:ContactInfo
73 if (type != other.type) return false;
87 "type", type).add("label", label).add("number", number).add("formattedNumber",
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DActionImage.java43 public Job<Bitmap> requestImage(int type) { argument
44 return new BitmapJob(type);
55 protected BitmapJob(int type) { argument
56 mType = type;
H A DMediaItem.java28 // NOTE: These type numbers are stored in the image cache, so it should not
53 public abstract Job<Bitmap> requestImage(int type); argument
112 public static int getTargetSize(int type) { argument
113 switch (type) {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/
H A DEditorPlaceHolder.java34 public boolean contains(int type) { argument
35 if (mEditors.get(type) != null) {
41 public Editor showEditor(int type) { argument
42 Editor editor = mEditors.get(type);
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DSettingsUtil.java49 * @param type The type of sound.
54 Context context, Handler handler, int type, String key, int msg) {
57 if (type == RingtoneManager.TYPE_RINGTONE) {
60 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type);
74 ringtoneUri = RingtoneManager.getActualDefaultRingtoneUri(context, type);
53 updateRingtoneName( Context context, Handler handler, int type, String key, int msg) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DBaseAccountType.java84 // value is specified for a particular type, we use the default value from {@link DataKind}.
99 static final String TYPE = "type";
125 protected static EditType buildPhoneType(int type) { argument
126 return new EditType(type, Phone.getTypeLabelResource(type));
129 protected static EditType buildEmailType(int type) { argument
130 return new EditType(type, Email.getTypeLabelResource(type));
133 protected static EditType buildPostalType(int type) { argument
134 return new EditType(type, StructuredPosta
137 buildImType(int type) argument
141 buildEventType(int type, boolean yearOptional) argument
145 buildRelationType(int type) argument
502 getTypeLabelResource(Integer type) argument
504 isCustom(Integer type) argument
516 getTypeLabel(Resources res, Integer type, CharSequence label) argument
542 isCustom(Integer type) argument
547 getTypeLabelResource(Integer type) argument
554 isCustom(Integer type) argument
559 getTypeLabelResource(Integer type) argument
566 getTypeLabelResource(Integer type) argument
580 getTypeLabelResource(Integer type) argument
587 getTypeLabelResource(Integer type) argument
594 getTypeLabelResource(Integer type) argument
617 getTypeLabelResource(Integer type) argument
854 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1058 build(int type, boolean secondary) argument
1063 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1112 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1179 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1220 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1416 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
1463 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DEmlViewerActivity.java42 final String type = intent.getType();
46 MimeType.isEmlMimeType(type)) {
54 "Entered EmlViewerActivity with wrong intent action or type: %s, %s",
55 action, type);

Completed in 1514 milliseconds

1234567891011>>