Searched refs:source (Results 1 - 25 of 117) sorted by relevance

12345

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DOnSelectedListener.java20 public void onSelected(GLView source); argument
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DShortcutRefresher.java29 * @param source source of this shortcut.
34 void onShortcutRefreshed(Source source, String shortcutId, argument
49 boolean shouldRefresh(Source source, String shortcutId); argument
54 public void markShortcutRefreshed(Source source, String shortcutId); argument
H A DSourceShortcutRefresher.java29 * Refreshes shortcuts from their source.
50 Source source = shortcut.getSuggestionSource();
51 if (source == null) {
52 throw new NullPointerException("source");
55 if (shouldRefresh(source, shortcutId) && !isRefreshing(source, shortcutId)) {
60 markShortcutRefreshing(source, shortcutId);
63 source, shortcutId, extraData, listener);
71 public boolean shouldRefresh(Source source, String shortcutId) { argument
72 return source !
76 isRefreshing(Source source, String shortcutId) argument
81 markShortcutRefreshing(Source source, String shortcutId) argument
88 markShortcutRefreshed(Source source, String shortcutId) argument
101 makeKey(Source source, String shortcutId) argument
120 ShortcutRefreshTask(Source source, String shortcutId, String extraData, Listener listener) argument
[all...]
H A DCursorBackedSourceResult.java28 public CursorBackedSourceResult(Source source, String userQuery) { argument
29 this(source, userQuery, null);
32 public CursorBackedSourceResult(Source source, String userQuery, Cursor cursor) { argument
34 mSource = source;
H A DSearchableSources.java50 // The web search source to use.
57 * @param context Used for looking up source information etc.
127 SearchableSource source = createSearchableSource(searchable);
128 if (source != null) {
129 if (DBG) Log.d(TAG, "Created source " + source);
130 addSource(source);
135 protected void addSource(Source source) { argument
136 mSources.put(source.getName(), source);
[all...]
H A DShortcutPromoter.java23 * A promoter limits the maximum number of shortcuts per source
47 Source source = shortcuts.getSuggestionSource();
48 if (source != null && accept(shortcuts)) {
49 int prevCount = sourceShortcutCounts.add(source, 1);
50 int maxShortcuts = source.getMaxShortcuts(getConfig());
H A DMultiSourceCorpus.java51 for (Source source : sources) {
52 addSource(source);
57 protected void addSource(Source source) { argument
58 if (source != null) {
59 mSources.add(source);
70 * Creates a corpus result object for a set of source results.
143 for (Source source : sources) {
145 source, null, consumer, onlySource);
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_utilities_indexing.cpp34 /*This routine breaks number in source into values smaller and larger than
36 void db_LeanPartitionOnPivot(double pivot,double *dest,const double *source,long first,long last,long *first_equal,long *last_equal) argument
44 s_point=source+first;
45 s_top=source+last;
68 const double *source; local
73 source=s;
78 pivot=db_TripleMedian(source[first],source[last],source[(first+last)/2]);
79 db_LeanPartitionOnPivot(pivot,dest,source,firs
[all...]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockShortcutRefresher.java28 public void markShortcutRefreshed(Source source, String shortcutId) { argument
37 public boolean shouldRefresh(Source source, String shortcutId) { argument
H A DMockSources.java31 public void addSource(Source source) { argument
32 mSources.put(source.getName(), source);
H A DMockCorpora.java72 public Corpus getCorpusForSource(Source source) { argument
75 if (corpusSource.equals(source)) {
93 for (Source source : corpus.getSources()) {
94 if (source.getName().equals(name)) {
95 return source;
H A DMockCorpus.java45 public MockCorpus(Source source) { argument
46 this(source, true);
49 public MockCorpus(Source source, boolean defaultEnabled) { argument
50 mName = "corpus_" + source.getName();
51 mSource = source;
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/
H A DUtf8ByteLengthFilterTest.java48 CharSequence source;
55 // cut off the source CharSequence from beginning to fit the filter length.
56 source = "abc";
60 dest.insert(1, source);
64 dest.replace(5, 8, source);
68 dest.insert(2, source);
79 source = "\u60a8\u597d"; // 2 Chinese chars == 6 bytes in UTF-8
80 dest.replace(8, 10, source);
83 dest.replace(0, 1, source);
87 dest.replace(0, 4, source);
[all...]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DSources.java87 // Create fallback contacts source for on-phone contacts
113 for (ContactsSource source : sources) {
114 addSource(source);
118 protected void addSource(ContactsSource source) { argument
119 mSources.put(source.accountType, source);
120 mKnownPackages.add(source.resPackageName);
146 // Invalidate cache of existing source
149 // Unknown source, so reload from scratch
160 for (ContactsSource source
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DWordComposer.java58 public WordComposer(WordComposer source) { argument
59 init(source);
62 public void init(WordComposer source) { argument
63 mCodes = new ArrayList<int[]>(source.mCodes);
64 mTypedWord = new StringBuilder(source.mTypedWord);
65 mXCoordinates = source.mXCoordinates;
66 mYCoordinates = source.mYCoordinates;
67 mCapsCount = source.mCapsCount;
68 mIsFirstCharCapitalized = source.mIsFirstCharCapitalized;
69 mAutoCapitalized = source
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDataManager.java120 for (MediaSource source : mSourceMap.values()) {
121 source.resume();
140 void addSource(MediaSource source) { argument
141 mSourceMap.put(source.getPrefix(), source);
156 MediaSource source = mSourceMap.get(path.getPrefix());
157 if (source == null) {
158 Log.w(TAG, "cannot find media source for path: " + path);
162 MediaObject object = source.createMediaObject(path);
214 // For each group, ask the corresponding media source t
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactsRequest.java128 public ContactsRequest createFromParcel(Parcel source) {
131 request.mValid = source.readInt() != 0;
132 request.mActionCode = source.readInt();
133 request.mRedirectIntent = source.readParcelable(classLoader);
134 request.mTitle = source.readCharSequence();
135 request.mSearchMode = source.readInt() != 0;
136 request.mQueryString = source.readString();
137 request.mIncludeProfile = source.readInt() != 0;
138 request.mLegacyCompatibilityMode = source.readInt() != 0;
139 request.mDirectorySearchEnabled = source
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DEntityDeltaTests.java92 final EntityDelta source = EntityDelta.fromBefore(before);
96 final EntityDelta merged = EntityDelta.mergeAfter(dest, source);
97 assertEquals("Unexpected change when merging", source, merged);
102 final EntityDelta source = EntityDelta.fromBefore(before);
110 source.addEntry(ValuesDelta.fromAfter(phone));
113 final EntityDelta merged = EntityDelta.mergeAfter(dest, source);
114 assertEquals("Unexpected change when merging", source, merged);
120 final EntityDelta source = EntityDelta.fromBefore(before);
123 final ValuesDelta child = source.getEntry(TEST_PHONE_ID);
127 final EntityDelta merged = EntityDelta.mergeAfter(dest, source);
[all...]
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DUtf8ByteLengthFilter.java47 public CharSequence filter(CharSequence source, int start, int end, argument
50 // count UTF-8 bytes in source substring
52 char c = source.charAt(i);
72 char c = source.charAt(i);
75 return source.subSequence(start, i);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
H A DDefaultSuggestionView.java42 * sources, and suggestions under each source.
73 // override default icon (when no other available) with default source icon
75 protected String getFallbackIconId(Source source) {
76 return source.getSourceIconUri().toString();
79 protected Drawable getFallbackIcon(Source source) {
80 return source.getSourceIcon();
178 public void set(final Source source, final String sourceIconId) { argument
182 Uri iconUri = source.getIconUri(sourceIconId);
187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId);
190 handleNewDrawable(icon.getNow(), uniqueIconId, source);
216 handleNewDrawable(Drawable icon, String id, Source source) argument
237 getFallbackIconId(Source source) argument
241 getFallbackIcon(Source source) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/filters/
H A DFilterCreator.java36 public T createFromParcel(Parcel source) { argument
39 filter.readFromParcel(source);
/packages/apps/Tag/
H A DAndroid.mk8 # Only compile source java files in this apk.
/packages/apps/Calculator/src/com/android/calculator2/
H A DCalculatorEditable.java28 private CalculatorEditable(CharSequence source, Logic logic) { argument
29 super(source);
106 public Editable newEditable(CharSequence source) { argument
107 return new CalculatorEditable(source, mLogic);
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
H A DDoodle.java105 public Doodle createFromParcel(Parcel source) {
106 int color = source.readInt();
107 int size = source.readInt();
109 Doodle doodle = new Doodle(color, (PointF) source.readParcelable(null));
111 doodle.addControlPoint((PointF) source.readParcelable(null));
/packages/apps/Phone/src/com/android/phone/
H A DBitmapUtils.java90 * @param source input bitmap, whose width must be a power of 2
92 public static Bitmap gaussianBlur(Bitmap source) { argument
93 int width = source.getWidth();
94 int height = source.getHeight();
97 // Create a source and destination buffer for the image.
102 // Get the source pixels as 32-bit ARGB.
103 source.getPixels(in, 0, width, 0, 0, width, height);
117 source.recycle();

Completed in 598 milliseconds

12345