/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | UriSource.java | 51 String type = URLDecoder.decode(segment[2], CHARSET_UTF_8); 52 return new UriImage(mApplication, path, Uri.parse(uri), type); 62 String type = MimeTypeMap.getSingleton() 64 if (type != null) return type; 66 // Assume the type is image if the type cannot be resolved 68 String type = mApplication.getContentResolver().getType(uri); 69 if (type == null) type 74 findPathByUri(Uri uri, String type) argument [all...] |
H A D | ImageCacheService.java | 49 * Gets the cached image data for the given <code>path</code> and <code>type</code>. 57 public boolean getImageData(Path path, int type, BytesBuffer buffer) { argument 58 byte[] key = makeKey(path, type); 79 public void putImageData(Path path, int type, byte[] value) { argument 80 byte[] key = makeKey(path, type); 94 public void clearImageData(Path path, int type) { argument 95 byte[] key = makeKey(path, type); 106 private static byte[] makeKey(Path path, int type) { argument 107 return GalleryUtils.getBytes(path.toString() + "+" + type);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | InputLogicTests.java | 25 type(WORD_TO_TYPE); 26 assertEquals("type word", WORD_TO_TYPE, mTextView.getText().toString()); 32 type(WORD_TO_TYPE); 35 type(Keyboard.CODE_DELETE); 44 type(WORD_TO_TYPE); 51 type(Keyboard.CODE_DELETE); 59 type(WORD_TO_TYPE); 66 type(Keyboard.CODE_DELETE); 75 type(WORD_TO_TYPE); 82 type(Keyboar [all...] |
H A D | PunctuationTests.java | 36 type(WORD_TO_TYPE); 39 assertTrue("type word then type space should display punctuation strip", 43 assertEquals("type word then type space then punctuation from strip twice", 54 type(WORD_TO_TYPE); 64 type(WORD1_TO_TYPE); 68 type(WORD2_TO_TYPE); 69 assertEquals("pick word then pick punctuation twice then type", EXPECTED_RESULT, 77 type(WORD1_TO_TYP [all...] |
H A D | InputLogicTestsNonEnglish.java | 25 type(STRING_TO_TYPE); 35 type(WORD1_TO_TYPE); 37 type(WORD2_TO_TYPE); 47 type(WORD_TO_TYPE); 50 assertTrue("type word then type space should display punctuation strip", 54 assertEquals("type word then type space then punctuation from strip twice for French", 62 type(STRING_TO_TYPE); 71 type(STRING_TO_TYP [all...] |
H A D | BlueUnderlineTests.java | 30 type(STRING_TO_TYPE); 44 type(STRING_1_TO_TYPE); 47 type(STRING_2_TO_TYPE); 67 type(STRING_TO_TYPE); 70 type(Keyboard.CODE_SPACE); 73 type(Keyboard.CODE_DELETE); 76 type(Keyboard.CODE_DELETE); 92 type(STRING_TO_TYPE); 110 type(STRING_TO_TYPE);
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
H A D | AlarmManagerInterface.java | 9 public void set(int type, long triggerAtMillis, PendingIntent operation); argument
|
/packages/apps/Mms/src/org/w3c/dom/events/ |
H A D | EventTarget.java | 39 * @param type The event type for which the user is registering 45 * events of the specified type will be dispatched to the registered 51 public void addEventListener(String type, argument 64 * @param type Specifies the event type of the <code>EventListener</code> 75 public void removeEventListener(String type, argument 86 * @param evt Specifies the event type, behavior, and contextual 93 * UNSPECIFIED_EVENT_TYPE_ERR: Raised if the <code>Event</code>'s type 96 * <code>Event</code>'s type a [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/ |
H A D | ExternalAccountTypeTest.java | 71 * Initialize with an invalid package name and see if type type will *not* be initialized. 74 final ExternalAccountType type = new ExternalAccountType(getContext(), 76 assertFalse(type.isInitialized()); 85 final ExternalAccountType type = new ExternalAccountType(getContext(), 87 assertTrue(type.isInitialized()); 94 final ExternalAccountType type = new ExternalAccountType(getContext(), 97 assertTrue(type.isInitialized()); 100 assertNotNull(type.getKindForMimetype(StructuredName.CONTENT_ITEM_TYPE)); 101 assertNotNull(type [all...] |
/packages/apps/Camera/src/com/android/camera/ |
H A D | Mosaic.java | 71 * This strip type will use the default thin strips where the strips are 77 * This strip type will use wider strips for blending. The strip separation 143 * Set the type of blending. 145 * @param type the blending type defined in the class. {BLENDTYPE_FULL, 148 public native void setBlendingType(int type); argument 151 * Set the type of strips to use for blending. 152 * @param type the blending strip type to use {STRIPTYPE_THIN, 155 public native void setStripType(int type); argument [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | Mosaic.java | 71 * This strip type will use the default thin strips where the strips are 77 * This strip type will use wider strips for blending. The strip separation 143 * Set the type of blending. 145 * @param type the blending type defined in the class. {BLENDTYPE_FULL, 148 public native void setBlendingType(int type); argument 151 * Set the type of strips to use for blending. 152 * @param type the blending strip type to use {STRIPTYPE_THIN, 155 public native void setStripType(int type); argument [all...] |
/packages/apps/Mms/src/com/android/mms/layout/ |
H A D | HVGALayoutParameters.java | 37 public HVGALayoutParameters(Context context, int type) { argument 38 if ((type != HVGA_LANDSCAPE) && (type != HVGA_PORTRAIT)) { 40 "Bad layout type detected: " + type); 44 Log.v(TAG, "HVGALayoutParameters.<init>(" + type + ")."); 46 mType = type;
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/mocks/ |
H A D | MockAccountTypeManager.java | 45 for (AccountType type : mTypes) { 46 if (Objects.equal(accountTypeWithDataSet.accountType, type.accountType) 47 && Objects.equal(accountTypeWithDataSet.dataSet, type.dataSet)) { 48 return type; 73 for (AccountType type : mTypes) { 74 if (!writableOnly || type.areContactsWritable()) { 75 ret.add(type);
|
/packages/apps/Mms/src/com/android/mms/dom/events/ |
H A D | EventTargetImpl.java | 40 EventListenerEntry(String type, EventListener listener, boolean useCapture) argument 42 mType = type; 52 public void addEventListener(String type, EventListener listener, boolean useCapture) { argument 53 if ((type == null) || type.equals("") || (listener == null)) { 58 removeEventListener(type, listener, useCapture); 63 mListenerEntries.add(new EventListenerEntry(type, listener, useCapture)); 75 "Unspecified even type"); 115 public void removeEventListener(String type, EventListener listener, argument 124 && listenerEntry.mType.equals(type)) { [all...] |
/packages/apps/Browser/src/com/android/browser/ |
H A D | AccountsChangedReceiver.java | 60 String type = c.getString(1); 61 if (!contains(accounts, name, type)) { 62 delete(cr, name, type); 69 void delete(ContentResolver cr, String name, String type) { argument 77 cr.delete(uri, DELETE_SELECTION, new String[] { name, type }); 80 boolean contains(Account[] accounts, String name, String type) { argument 83 && TextUtils.equals(a.type, type)) {
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
H A D | AccountTypeManagerTest.java | 129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) { argument 130 return new AccountWithDataSet(name, type.accountType, type.dataSet); 138 for (AccountType type : types) { 139 result.put(type.getAccountTypeAndDataSet(), type); 166 for (AccountType type : expectedInvitableTypes) { 167 assertTrue("Result doesn't contain type=" + type.getAccountTypeAndDataSet(), 168 result.containsKey(type 177 MockAccountType(String type, String dataSet, String inviteContactActivityClassName) argument [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | AttachmentUtilitiesTests.java | 43 * | E | any/type | | any/type | 58 // .eml files always override mime type 68 // Non-generic, non-empty mime type; return it 69 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_PNG, "Mime/TyPe")); 70 assertEquals("mime/type", AttachmentUtilities.inferMimeType(FILE_ABC, "Mime/TyPe")); 71 assertEquals("mime/type", 73 assertEquals("mime/type", AttachmentUtilities.inferMimeType(null, "Mime/TyPe")); 74 assertEquals("mime/type", AttachmentUtilities.inferMimeType("", "Mime/TyPe")); 76 // Recognizable file extension; return known type [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | HanziToPinyin.java | 362 public Token(int type, String source, String target) { argument 363 this.type = type; 371 public int type; field in class:HanziToPinyin.Token 441 token.type = Token.LATIN; 447 token.type = Token.UNKNOWN; 451 token.type = Token.PINYIN; 456 token.type = Token.UNKNOWN; 460 token.type = Token.PINYIN; 466 token.type [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | DeferredHandler.java | 81 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/Mms/src/com/android/mms/util/ |
H A D | ImageCacheService.java | 57 public ImageData getImageData(String path, int type) { argument 58 byte[] key = makeKey(path, type); 76 public void putImageData(String path, int type, byte[] value) { argument 77 byte[] key = makeKey(path, type); 95 private static byte[] makeKey(String path, int type) { argument 96 return getBytes(path + "+" + type);
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | Use2GOnlyCheckBoxPreference.java | 56 Log.i(LOG_TAG, "set preferred network type="+networkType); 85 int type = ((int[])ar.result)[0]; 86 if (type != Phone.NT_MODE_GSM_ONLY) { 88 type = Phone.NT_MODE_WCDMA_PREF; 90 Log.i(LOG_TAG, "get preferred network type="+type); 91 setChecked(type == Phone.NT_MODE_GSM_ONLY); 93 android.provider.Settings.Global.PREFERRED_NETWORK_MODE, type); 96 Log.i(LOG_TAG, "get preferred network type, exception="+ar.exception); 108 Log.i(LOG_TAG, "set preferred network type, exceptio [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | AccountTypeManager.java | 92 Log.e(TAG, "No account type service in context: " + context); 129 * (1) making sure that the app that contributed the account type is not disabled 131 * (2) that there is at least one raw contact with that account type in the database 132 * (assuming that the user probably doesn't use that account type). 144 final AccountType type = getAccountType(accountType, dataSet); 145 return type == null ? null : type.getKindForMimetype(mimeType); 250 if (Objects.equal(a.name, b.name) && Objects.equal(a.type, b.type) 253 } else if (b.name == null || b.type [all...] |
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
H A D | BaseAccountType.java | 83 // value is specified for a particular type, we use the default value from {@link DataKind}. 98 static final String TYPE = "type"; 124 protected static EditType buildPhoneType(int type) { argument 125 return new EditType(type, Phone.getTypeLabelResource(type)); 128 protected static EditType buildEmailType(int type) { argument 129 return new EditType(type, Email.getTypeLabelResource(type)); 132 protected static EditType buildPostalType(int type) { argument 133 return new EditType(type, StructuredPosta 136 buildImType(int type) argument 140 buildEventType(int type, boolean yearOptional) argument 144 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 577 isCustom(Integer type) argument 582 getTypeLabelResource(Integer type) argument 612 getTypeLabelResource(Integer type) argument 626 getTypeLabelResource(Integer type) argument 633 getTypeLabelResource(Integer type) argument 640 getTypeLabelResource(Integer type) argument 663 getTypeLabelResource(Integer type) argument 884 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1091 build(int type, boolean secondary) argument 1096 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1146 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1213 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1255 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1454 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument 1502 buildEditTypeForTypeTag(AttributeSet attrs, String type) argument [all...] |
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
H A D | CertInstallerMain.java | 97 String type = intent.getType(); 98 if ((data != null) && (type != null)) { 119 installByType(type, payload); 126 private void installByType(String type, byte[] value) { argument 128 if ("application/x-pkcs12".equals(type)) { 130 } else if ("application/x-x509-ca-cert".equals(type) 131 || "application/x-x509-user-cert".equals(type)) { 134 throw new AssertionError("Unknown type: " + type);
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | LocalizedNameResolver.java | 40 * Retrieves localized names per account type. This allows customizing texts like 54 * Returns the name for All Contacts for the specified account type. 64 * Finds "All Contacts"-Name for the specified account type. 70 if (accountType.equals(auth.type)) { 105 int type; 106 while ((type = parser.next()) != XmlPullParser.START_TAG 107 && type != XmlPullParser.END_DOCUMENT) { 111 if (type != XmlPullParser.START_TAG) { 116 while (((type = parser.next()) != XmlPullParser.END_TAG || parser.getDepth() > depth) 117 && type ! [all...] |