/packages/apps/Contacts/src/com/android/contacts/model/ |
D | Sources.java | 101 for (ContactsSource source : sources) { in Sources() 102 addSource(source); in Sources() 106 protected void addSource(ContactsSource source) { in addSource() argument 107 mSources.put(source.accountType, source); in addSource() 108 mKnownPackages.add(source.resPackageName); in addSource() 132 for (ContactsSource source : mSources.values()) { in invalidateCache() 133 if (TextUtils.equals(packageName, source.resPackageName)) { in invalidateCache() 135 source.invalidateCache(); in invalidateCache() 172 ContactsSource source; in queryAccounts() local 174 source = new GoogleSource(auth.packageName); in queryAccounts() [all …]
|
/packages/apps/GlobalSearch/src/com/android/globalsearch/ |
D | SuggestionSources.java | 101 SuggestionSource source = mSuggestionSources.get(componentName); in getSourceByComponentName() local 104 if (source == null) { in getSourceByComponentName() 107 source = mSelectedWebSearchSource; in getSourceByComponentName() 110 return source; in getSourceByComponentName() 130 public boolean isSourceDefaultEnabled(SuggestionSource source) { in isSourceDefaultEnabled() argument 131 return isTrustedSource(source); in isSourceDefaultEnabled() 148 public String getSourceEnabledPreference(SuggestionSource source) { in getSourceEnabledPreference() argument 149 return "enable_source_" + source.getComponentName().flattenToString(); in getSourceEnabledPreference() 251 SuggestionSource source = new SearchableSuggestionSource(mContext, searchable); in addExternalSources() local 252 if (isTrustedSource(source)) { in addExternalSources() [all …]
|
D | SuggestionResult.java | 50 public static SuggestionResult createErrorResult(SuggestionSource source) { in createErrorResult() argument 51 return new SuggestionResult(source, RESULT_ERROR); in createErrorResult() 54 public static SuggestionResult createCancelled(SuggestionSource source) { in createCancelled() argument 55 return new SuggestionResult(source, RESULT_CANCELED); in createCancelled() 58 private SuggestionResult(SuggestionSource source, int resultCode) { in SuggestionResult() argument 59 mSource = source; in SuggestionResult() 75 public SuggestionResult(SuggestionSource source, List<SuggestionData> suggestions, int count, in SuggestionResult() argument 77 mSource = source; in SuggestionResult() 88 public SuggestionResult(SuggestionSource source, List<SuggestionData> suggestions) { in SuggestionResult() argument 89 this(source, suggestions, suggestions.size(), suggestions.size()); in SuggestionResult() [all …]
|
D | SessionManager.java | 208 final SuggestionSource source = enabledSources.get(i); in orderSources() local 209 linkMap.put(source.getComponentName(), source); in orderSources() local 230 final SuggestionSource source = linkMap.remove(ranked); in orderSources() local 231 if (DBG) Log.d(TAG, "Adding promoted ranked source: (" + ranked + ") " + source); in orderSources() 232 sources.add(source, true); in orderSources() 238 SuggestionSource source = sourceIterator.next(); in orderSources() local 239 if (!allRanked.contains(source.getComponentName())) { in orderSources() 240 if (DBG) Log.d(TAG, "Adding unranked source: " + source); in orderSources() 244 sources.add(source, sourceLookup.isTrustedSource(source)); in orderSources() 252 final SuggestionSource source = linkMap.get(ranked); in orderSources() local [all …]
|
D | SourceSuggestionBacker.java | 292 for (SuggestionSource source : mSources) { in snapshotSuggestionsInternal() 293 final boolean promoted = mPromotedSources.contains(source.getComponentName()); in snapshotSuggestionsInternal() 294 final boolean reported = mReportedResults.containsKey(source.getComponentName()); in snapshotSuggestionsInternal() 296 mReportedBeforeDeadline.contains(source.getComponentName()); in snapshotSuggestionsInternal() 301 mPendingSources.contains(source.getComponentName()) ? in snapshotSuggestionsInternal() 305 source.getComponentName(), promoted, source.getLabel(), in snapshotSuggestionsInternal() 306 source.getIcon(), responseStatus, 0, 0)); in snapshotSuggestionsInternal() 311 mReportedResults.get(source.getComponentName()); in snapshotSuggestionsInternal() 312 int numDisplayed = sourceToNumDisplayed.containsKey(source.getComponentName()) in snapshotSuggestionsInternal() 313 ? sourceToNumDisplayed.get(source.getComponentName()) : 0; in snapshotSuggestionsInternal() [all …]
|
D | SuggestionBacker.java | 65 public void onSourceQueryStart(ComponentName source) { in onSourceQueryStart() argument 66 if (reportSourceStarted(source)) { in onSourceQueryStart() 91 ComponentName source, String shortcutId, SuggestionData suggestionData) { in onRefreshShortcut() argument 92 if (refreshShortcut(source, shortcutId, suggestionData)) { in onRefreshShortcut() 124 protected abstract boolean reportSourceStarted(ComponentName source); in reportSourceStarted() argument 132 public abstract boolean hasSourceStarted(ComponentName source); in hasSourceStarted() argument 152 ComponentName source, String shortcutId, SuggestionData shortcut); in refreshShortcut() argument
|
D | SuggestionSession.java | 473 final SuggestionSource source = sources.get(i); in removeCached() local 474 if (queryCacheResults.getResult(source.getComponentName()) == null) { in removeCached() 475 unCached.add(source); in removeCached() 564 String query, ComponentName source) { in hasReportedZeroResultsForPrefix() argument 569 if (zeros != null && zeros.contains(source)) { in hasReportedZeroResultsForPrefix() 580 ComponentName source, String shortcutId, SuggestionData shortcut) { in reportRefreshedShortcut() argument 584 mRefreshedShortcuts.put(makeShortcutKey(source, shortcutId), icon2); in reportRefreshedShortcut() 593 ComponentName source, String shortcutId) { in hasShortcutBeenRefreshed() argument 594 return mRefreshedShortcuts.containsKey(makeShortcutKey(source, shortcutId)); in hasShortcutBeenRefreshed() 603 synchronized String getRefreshedShortcutIcon2(ComponentName source, String shortcutId) { in getRefreshedShortcutIcon2() argument [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/ |
D | EntityDeltaTests.java | 92 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesNone() local 96 final EntityDelta merged = EntityDelta.mergeAfter(dest, source); in testParcelChangesNone() 97 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesNone() 102 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesInsert() local 110 source.addEntry(ValuesDelta.fromAfter(phone)); in testParcelChangesInsert() 113 final EntityDelta merged = EntityDelta.mergeAfter(dest, source); in testParcelChangesInsert() 114 assertEquals("Unexpected change when merging", source, merged); in testParcelChangesInsert() 120 final EntityDelta source = EntityDelta.fromBefore(before); in testParcelChangesUpdate() local 123 final ValuesDelta child = source.getEntry(TEST_PHONE_ID); in testParcelChangesUpdate() 127 final EntityDelta merged = EntityDelta.mergeAfter(dest, source); in testParcelChangesUpdate() [all …]
|
D | EntityModifierTests.java | 123 final ContactsSource source = new MockContactsSource(); in getSource() local 124 source.ensureInflated(getContext(), ContactsSource.LEVEL_CONSTRAINTS); in getSource() 125 return source; in getSource() 173 final ContactsSource source = getSource(); in testValidTypes() local 174 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testValidTypes() 218 final ContactsSource source = getSource(); in testCanInsert() local 219 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testCanInsert() 247 final ContactsSource source = getSource(); in testBestValidType() local 248 final DataKind kindPhone = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE); in testBestValidType() 283 final ContactsSource source = getSource(); in testIsEmptyEmpty() local [all …]
|
/packages/apps/IM/plugin/com/android/im/plugin/ |
D | ImPluginInfo.java | 55 public ImPluginInfo(Parcel source) { in ImPluginInfo() argument 56 mProviderName = source.readString(); in ImPluginInfo() 57 mPackageName = source.readString(); in ImPluginInfo() 58 mClassName = source.readString(); in ImPluginInfo() 59 mSrcPath = source.readString(); in ImPluginInfo() 75 public ImPluginInfo createFromParcel(Parcel source) { 76 return new ImPluginInfo(source);
|
/packages/apps/IM/src/com/android/im/engine/ |
D | Invitation.java | 36 public Invitation(Parcel source) { in Invitation() argument 37 mId = source.readString(); in Invitation() 38 mGroupAddress = AddressParcelHelper.readFromParcel(source); in Invitation() 39 mSender = AddressParcelHelper.readFromParcel(source); in Invitation() 40 mReason = source.readString(); in Invitation() 71 public Invitation createFromParcel(Parcel source) { 72 return new Invitation(source);
|
D | Message.java | 47 public Message(Parcel source) { in Message() argument 48 mId = source.readString(); in Message() 49 mFrom = AddressParcelHelper.readFromParcel(source); in Message() 50 mTo = AddressParcelHelper.readFromParcel(source); in Message() 51 mBody = source.readString(); in Message() 52 long time = source.readLong(); in Message() 153 public Message createFromParcel(Parcel source) { 154 return new Message(source);
|
D | Contact.java | 35 public Contact(Parcel source) { in Contact() argument 36 mAddress = AddressParcelHelper.readFromParcel(source); in Contact() 37 mName = source.readString(); in Contact() 38 mPresence = new Presence(source); in Contact() 82 public Contact createFromParcel(Parcel source) { 83 return new Contact(source);
|
D | Presence.java | 77 public Presence(Parcel source) { in Presence() argument 78 mStatus = source.readInt(); in Presence() 79 mStatusText = source.readString(); in Presence() 80 mAvatarData = source.createByteArray(); in Presence() 81 mAvatarType = source.readString(); in Presence() 82 mClientType = source.readInt(); in Presence() 85 mExtendedInfo = source.readHashMap(null); in Presence() 175 public Presence createFromParcel(Parcel source) { 176 return new Presence(source);
|
D | ImErrorInfo.java | 75 public ImErrorInfo(Parcel source) { in ImErrorInfo() argument 76 mCode = source.readInt(); in ImErrorInfo() 77 mDescription = source.readString(); in ImErrorInfo() 113 public ImErrorInfo createFromParcel(Parcel source) { 114 return new ImErrorInfo(source);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DropTarget.java | 41 void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, in onDrop() argument 44 void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, in onDragEnter() argument 47 void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, in onDragOver() argument 50 void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, in onDragExit() argument 69 boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, in acceptDrop() argument 90 Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, in estimateDropLocation() argument
|
D | UserFolder.java | 33 public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, in acceptDrop() argument 42 public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, in estimateDropLocation() argument 47 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, in onDrop() argument 59 public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, in onDragEnter() argument 63 public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, in onDragOver() argument 67 public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, in onDragExit() argument
|
/packages/apps/Launcher/src/com/android/launcher/ |
D | DropTarget.java | 38 void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo); in onDrop() argument 40 void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo); in onDragEnter() argument 42 void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo); in onDragOver() argument 44 void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo); in onDragExit() argument 61 boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo); in acceptDrop() argument
|
D | UserFolder.java | 30 public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, in acceptDrop() argument 38 …public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, Object… in estimateDropLocation() argument 42 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo) { in onDrop() argument 49 …public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo… in onDragEnter() argument 52 …public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo)… in onDragOver() argument 55 …public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo)… in onDragExit() argument
|
D | LiveFolderIcon.java | 57 …public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragIn… in acceptDrop() argument 62 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo) { in onDrop() argument 66 …public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo… in onDragEnter() argument 70 …public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo)… in onDragOver() argument 74 …public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo)… in onDragExit() argument
|
D | FolderIcon.java | 64 public boolean acceptDrop(DragSource source, int x, int y, int xOffset, int yOffset, in acceptDrop() argument 73 …public Rect estimateDropLocation(DragSource source, int x, int y, int xOffset, int yOffset, Object… in estimateDropLocation() argument 77 public void onDrop(DragSource source, int x, int y, int xOffset, int yOffset, Object dragInfo) { in onDrop() argument 84 public void onDragEnter(DragSource source, int x, int y, int xOffset, int yOffset, in onDragEnter() argument 89 public void onDragOver(DragSource source, int x, int y, int xOffset, int yOffset, in onDragOver() argument 93 public void onDragExit(DragSource source, int x, int y, int xOffset, int yOffset, in onDragExit() argument
|
/packages/apps/GlobalSearch/tests/src/com/android/globalsearch/ |
D | SimpleSourceLookup.java | 36 for (SuggestionSource source : mSources) { in getSourceByComponentName() 37 if (componentName.equals(source.getComponentName())) { in getSourceByComponentName() 38 return source; in getSourceByComponentName() 48 public boolean isTrustedSource(SuggestionSource source) { in isTrustedSource() argument 49 final String packageName = source.getComponentName().getPackageName(); in isTrustedSource()
|
/packages/apps/Contacts/src/com/android/contacts/ui/widget/ |
D | ContactEditorView.java | 152 public void setState(EntityDelta state, ContactsSource source) { in setState() argument 158 if (state == null || source == null) return; in setState() 161 EntityModifier.ensureKindExists(state, source, StructuredName.CONTENT_ITEM_TYPE); in setState() 166 CharSequence accountType = source.getDisplayLabel(mContext); in setState() 175 mHeaderIcon.setImageDrawable(source.getDisplayIcon(mContext)); in setState() 180 EntityModifier.ensureKindExists(state, source, Photo.CONTENT_ITEM_TYPE); in setState() 181 mHasPhotoEditor = (source.getKindForMimetype(Photo.CONTENT_ITEM_TYPE) != null); in setState() 183 mPhoto.setEnabled(!source.readOnly); in setState() 184 mName.setEnabled(!source.readOnly); in setState() 186 boolean readOnly = source.readOnly; in setState() [all …]
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 149 Bitmap source, in transform() argument 154 int deltaX = source.getWidth() - targetWidth; in transform() 155 int deltaY = source.getHeight() - targetHeight; in transform() 172 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform() 173 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 181 c.drawBitmap(source, src, dst, null); in transform() 183 source.recycle(); in transform() 187 float bitmapWidthF = source.getWidth(); in transform() 188 float bitmapHeightF = source.getHeight(); in transform() 212 b1 = Bitmap.createBitmap(source, 0, 0, in transform() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 151 Bitmap source, in transform() argument 156 int deltaX = source.getWidth() - targetWidth; in transform() 157 int deltaY = source.getHeight() - targetHeight; in transform() 174 deltaXHalf + Math.min(targetWidth, source.getWidth()), in transform() 175 deltaYHalf + Math.min(targetHeight, source.getHeight())); in transform() 183 c.drawBitmap(source, src, dst, null); in transform() 185 source.recycle(); in transform() 189 float bitmapWidthF = source.getWidth(); in transform() 190 float bitmapHeightF = source.getHeight(); in transform() 214 b1 = Bitmap.createBitmap(source, 0, 0, in transform() [all …]
|