Searched refs:primary (Results 1 - 13 of 13) sorted by relevance

/packages/wallpapers/HoloSpiral/src/com/android/wallpaper/holospiral/
H A DHoloSpiralRS.java225 Float4 primary = convertColor(primaryColor);
236 color.x = primary.x + ((secondary.x - primary.x) * r);
237 color.y = primary.y + ((secondary.y - primary.y) * r);
238 color.z = primary.z + ((secondary.z - primary.z) * r);
239 color.w = primary.w + ((secondary.w - primary.w) * r);
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntitySet.java276 ValuesDelta primary = null;
285 } else if (primary == null && entry.isPrimary()) {
286 primary = entry;
292 // When no direct super primary, return something
293 if (primary != null) {
294 return primary;
H A DEntityDelta.java160 // When no direct primary, return something
173 * Returns the super-primary entry for the given mime type
174 * @param forceSelection if true, will try to return some value even if a super-primary
175 * doesn't exist (may be a primary, or just a random item
182 ValuesDelta primary = null;
187 primary = entry;
195 // When no direct super primary, return something
196 if (primary != null) {
197 return primary;
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartGridView.java105 final Drawable primary = mPrimary;
112 primary.setBounds((int) x, 0, right, height);
113 primary.draw(canvas);
/packages/apps/Contacts/src/com/android/contacts/model/
H A DEntityDeltaList.java314 ValuesDelta primary = null;
323 } else if (primary == null && entry.isPrimary()) {
324 primary = entry;
330 // When no direct super primary, return something
331 if (primary != null) {
332 return primary;
H A DEntityDelta.java168 // When no direct primary, return something
181 * Returns the super-primary entry for the given mime type
182 * @param forceSelection if true, will try to return some value even if a super-primary
183 * doesn't exist (may be a primary, or just a random item
190 ValuesDelta primary = null;
195 primary = entry;
203 // When no direct super primary, return something
204 if (primary != null) {
205 return primary;
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DRawContactReadOnlyEditorView.java170 ValuesDelta primary;
178 primary = state.getPrimaryEntry(Photo.CONTENT_ITEM_TYPE);
179 getPhotoEditor().setValues(kind, primary, state, !type.areContactsWritable(), vig);
190 primary = state.getPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
191 mName.setText(primary != null ? primary.getAsString(StructuredName.DISPLAY_NAME) :
H A DRawContactEditorView.java239 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
242 primary, state, false, vig);
245 primary, state, false, vig);
248 final ValuesDelta primary = state.getPrimaryEntry(mimeType);
249 getPhotoEditor().setValues(kind, primary, state, false, vig);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandler.java93 throw new AssertionError("Some of ContactsContract.CommonDataKinds class primary"
112 final Integer primary = values.getAsInteger(Data.IS_PRIMARY);
114 if ((primary != null && primary != 0) || (superPrimary != null && superPrimary != 0)) {
119 // configured super primary
127 // if there is already another data item configured as super-primary,
183 * Ensures that all super-primary and primary flags of this raw_contact are
230 // Set both super primary and primary
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DTrustedCredentialsSettings.java289 // if we have a O, use O as primary subject, secondary prefer CN over OU
290 // if we don't have an O, use CN as primary, empty secondary
291 // if we don't have O or CN, use DName as primary, empty secondary
312 int primary = this.mSubjectPrimary.compareToIgnoreCase(o.mSubjectPrimary);
313 if (primary != 0) {
314 return primary;
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DRecordUtils.java123 text = (TextView) item.findViewById(R.id.primary);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseContactsProvider2Test.java280 protected Uri insertOrganization(long rawContactId, ContentValues values, boolean primary) { argument
284 if (primary) {
296 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary) { argument
297 return insertPhoneNumber(rawContactId, phoneNumber, primary, Phone.TYPE_HOME);
300 protected Uri insertPhoneNumber(long rawContactId, String phoneNumber, boolean primary, argument
307 if (primary) {
319 protected Uri insertEmail(long rawContactId, String email, boolean primary) { argument
320 return insertEmail(rawContactId, email, primary, Email.TYPE_HOME, null);
323 protected Uri insertEmail(long rawContactId, String email, boolean primary, int type, argument
331 if (primary) {
[all...]
H A DLegacyContactsProviderTest.java154 // Non-primary
166 // Remove the original primary organization
198 // Non-primary
215 // Remove the primary phone number
269 // Non-primary
287 // Remove the primary email
527 String auxData, boolean primary) {
540 values.put(ContactMethods.ISPRIMARY, primary ? 1 : 0);
526 assertContactMethodInsert(int kind, int type, String label, String data, String auxData, boolean primary) argument

Completed in 215 milliseconds