Home
last modified time | relevance | path

Searched refs:getAsInteger (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfo.java221 itemType = values.getAsInteger(LauncherSettings.Favorites.ITEM_TYPE); in readFromValues()
222 container = values.getAsInteger(LauncherSettings.Favorites.CONTAINER); in readFromValues()
223 screenId = values.getAsInteger(LauncherSettings.Favorites.SCREEN); in readFromValues()
224 cellX = values.getAsInteger(LauncherSettings.Favorites.CELLX); in readFromValues()
225 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); in readFromValues()
226 spanX = values.getAsInteger(LauncherSettings.Favorites.SPANX); in readFromValues()
227 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues()
228 rank = values.getAsInteger(LauncherSettings.Favorites.RANK); in readFromValues()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DActionBatch.java116 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
181 final int status = mWordListValues.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
227 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
262 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
401 oldValues.getAsInteger(MetadataDbHelper.PENDINGID_COLUMN), in execute()
402 oldValues.getAsInteger(MetadataDbHelper.TYPE_COLUMN), in execute()
403 oldValues.getAsInteger(MetadataDbHelper.STATUS_COLUMN), in execute()
454 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
525 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
564 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in execute()
DWordListMetadata.java84 final Integer type = values.getAsInteger(MetadataDbHelper.TYPE_COLUMN); in createFromContentValues()
90 final int retryCount = values.getAsInteger(MetadataDbHelper.RETRY_COUNT_COLUMN); in createFromContentValues()
93 final Integer version = values.getAsInteger(MetadataDbHelper.VERSION_COLUMN); in createFromContentValues()
94 final Integer formatVersion = values.getAsInteger(MetadataDbHelper.FORMATVERSION_COLUMN); in createFromContentValues()
95 final Integer flags = values.getAsInteger(MetadataDbHelper.FLAGS_COLUMN); in createFromContentValues()
DDictionaryProvider.java307 final int status = wordList.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in openAssetFile()
458 final int status = wordList.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in deleteDataFile()
459 final int version = wordList.getAsInteger(MetadataDbHelper.VERSION_COLUMN); in deleteDataFile()
DUpdateHandler.java530 final int wordListStatus = downloadRecord.mAttributes.getAsInteger( in handleDownloadedFile()
809 final int status = values.getAsInteger(MetadataDbHelper.STATUS_COLUMN); in compareMetadataForUpgrade()
861 installCandidate.getAsInteger(MetadataDbHelper.FILESIZE_COLUMN)); in showDictionaryAvailableNotification()
937 != installCandidate.getAsInteger(MetadataDbHelper.STATUS_COLUMN)) { in installIfNeverRequested()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java119 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert()
120 final Integer superPrimary = values.getAsInteger(Data.IS_SUPER_PRIMARY); in insert()
252 final boolean hasPrimary = values.getAsInteger(Data.IS_PRIMARY) != null; in handlePrimaryAndSuperPrimary()
253 final boolean hasSuperPrimary = values.getAsInteger(Data.IS_SUPER_PRIMARY) != null; in handlePrimaryAndSuperPrimary()
262 values.getAsInteger(Data.IS_PRIMARY) == 0; in handlePrimaryAndSuperPrimary()
264 values.getAsInteger(Data.IS_SUPER_PRIMARY) == 0; in handlePrimaryAndSuperPrimary()
290 values.getAsInteger(Data.IS_PRIMARY) != 0; in handlePrimaryAndSuperPrimary()
292 values.getAsInteger(Data.IS_SUPER_PRIMARY) != 0; in handlePrimaryAndSuperPrimary()
DDataRowHandlerForStructuredName.java54 Integer fullNameStyle = values.getAsInteger(StructuredName.FULL_NAME_STYLE); in insert()
82 Integer fullNameStyle = augmented.getAsInteger(StructuredName.FULL_NAME_STYLE); in update()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
126 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary()
134 && mContentValues.getAsInteger(key) != null; in hasKindTypeColumn()
139 return mContentValues.getAsInteger(key); in getKindTypeColumn()
149 return mContentValues.getAsInteger(Data.CARRIER_PRESENCE); in getCarrierPresence()
184 return mContentValues.getAsInteger(Entity.TIMES_USED); in getTimesUsed()
DImDataItem.java62 return getContentValues().getAsInteger(Im.PROTOCOL); in getProtocol()
74 Integer result = getContentValues().getAsInteger(Im.CHAT_CAPABILITY); in getChatCapability()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DConvertUtilsTest.java114 assertThat(values.getAsInteger(BatteryHistEntry.KEY_DRAIN_TYPE)).isEqualTo(expectedType); in testConvert_returnsExpectedContentValues()
115 assertThat(values.getAsInteger(BatteryHistEntry.KEY_CONSUMER_TYPE)) in testConvert_returnsExpectedContentValues()
117 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_LEVEL)).isEqualTo(12); in testConvert_returnsExpectedContentValues()
118 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_STATUS)) in testConvert_returnsExpectedContentValues()
120 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_HEALTH)) in testConvert_returnsExpectedContentValues()
142 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_LEVEL)).isEqualTo(12); in testConvert_nullBatteryEntry_returnsExpectedContentValues()
143 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_STATUS)) in testConvert_nullBatteryEntry_returnsExpectedContentValues()
145 assertThat(values.getAsInteger(BatteryHistEntry.KEY_BATTERY_HEALTH)) in testConvert_nullBatteryEntry_returnsExpectedContentValues()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
133 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary()
140 mContentValues.getAsInteger(key) != null; in hasKindTypeColumn()
145 return mContentValues.getAsInteger(key); in getKindTypeColumn()
155 final Integer value = mContentValues.getAsInteger(Data.CARRIER_PRESENCE); in getCarrierPresence()
DImDataItem.java66 return getContentValues().getAsInteger(Im.PROTOCOL); in getProtocol()
78 Integer result = getContentValues().getAsInteger(Im.CHAT_CAPABILITY); in getChatCapability()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactModifierTests.java947 assertEquals(Event.TYPE_BIRTHDAY, outputValues.getAsInteger(Event.TYPE).intValue()); in testMigrateEventCommon()
979 assertEquals(Event.TYPE_BIRTHDAY, outputValues.getAsInteger(Event.TYPE).intValue()); in testMigrateEventFromGoogleToExchange2()
1019 assertEquals(Email.TYPE_CUSTOM, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1024 assertEquals(Email.TYPE_HOME, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1028 assertEquals(Email.TYPE_WORK, outputValues.getAsInteger(Email.TYPE).intValue()); in testMigrateEmailFromGoogleToExchange()
1077 assertNotNull(kind.defaultValues.getAsInteger(Im.TYPE)); in testMigrateImFromGoogleToExchange()
1079 int defaultType = kind.defaultValues.getAsInteger(Im.TYPE); in testMigrateImFromGoogleToExchange()
1083 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
1084 assertEquals(Im.PROTOCOL_JABBER, outputValues.getAsInteger(Im.PROTOCOL).intValue()); in testMigrateImFromGoogleToExchange()
1088 assertEquals(defaultType, outputValues.getAsInteger(Im.TYPE).intValue()); in testMigrateImFromGoogleToExchange()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DValuesDelta.java125 public Integer getAsInteger(String key) { in getAsInteger() method in ValuesDelta
126 return getAsInteger(key, null); in getAsInteger()
129 public Integer getAsInteger(String key, Integer defaultValue) { in getAsInteger() method in ValuesDelta
131 return mAfter.getAsInteger(key); in getAsInteger()
133 return mBefore.getAsInteger(key); in getAsInteger()
577 return getAsInteger(ContactsContract.CommonDataKinds.Phone.TYPE); in getPhoneType()
593 return getAsInteger(ContactsContract.CommonDataKinds.Email.TYPE); in getEmailType()
DRawContactModifier.java238 final Integer rawValue = entry.getAsInteger(kind.typeColumn); in getCurrentType()
692 final Integer type = values.getAsInteger(Phone.TYPE); in parseValues()
797 Integer typeInteger = entry.getAsInteger(kind.typeColumn); in adjustType()
858 Integer typeInteger = entry.getAsInteger(typeColumn); in getEntryCountByType()
1102 final Integer oldType = values.getAsInteger(StructuredPostal.TYPE); in migratePostal()
1106 defaultType = newDataKind.defaultValues.getAsInteger(StructuredPostal.TYPE); in migratePostal()
1199 final Integer type = values.getAsInteger(Event.TYPE); in migrateEvent()
1281 defaultType = newDataKind.defaultValues.getAsInteger(COLUMN_FOR_TYPE); in migrateGenericWithTypeColumn()
1325 final Integer oldType = entry.getAsInteger(COLUMN_FOR_TYPE); in migrateGenericWithTypeColumn()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallLogManagerTest.java338 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionOutgoing()
363 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionIncoming()
389 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionMissed()
418 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionRejected()
521 assertTrue((insertedValues.getAsInteger(CallLog.Calls.FEATURES) in testLogCallVideoFeatures()
565 assertEquals(v.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionOutgoingWithMultiUserCapability()
610 assertEquals(v.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionIncomingWithMultiUserCapability()
641 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionOutgoingWithMultiUserCapabilityFromManagedProfile()
672 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionOutgoingFromManagedProfile()
702 assertEquals(insertedValues.getAsInteger(CallLog.Calls.TYPE), in testLogCallDirectionIngoingFromManagedProfile()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java188 Integer i = from.getAsInteger(key); in copyInteger()
218 if (values.getAsInteger(BluetoothShare.VISIBILITY) == null) { in insert()
221 Integer dir = values.getAsInteger(BluetoothShare.DIRECTION); in insert()
222 Integer con = values.getAsInteger(BluetoothShare.USER_CONFIRMATION); in insert()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java710 Integer dest = values.getAsInteger(Downloads.Impl.COLUMN_DESTINATION); in insert()
760 Integer vis = values.getAsInteger(Downloads.Impl.COLUMN_VISIBILITY); in insert()
780 if (values.getAsInteger(Downloads.Impl.COLUMN_DESTINATION) == in insert()
847 final Integer mediaScanned = values.getAsInteger(Downloads.Impl.COLUMN_MEDIA_SCANNED); in insert()
853 || filteredValues.getAsInteger(COLUMN_MEDIA_SCANNED) == MEDIA_NOT_SCANNED; in insert()
854 if (shouldBeVisibleToUser && filteredValues.getAsInteger(COLUMN_DESTINATION) in insert()
868 filteredValues.getAsInteger(Constants.UID))); in insert()
886 + filteredValues.getAsInteger(Constants.UID)); in insert()
889 filteredValues.getAsInteger(Downloads.Impl.COLUMN_OTHER_UID)); in insert()
1004 final Integer dest = values.getAsInteger(COLUMN_DESTINATION); in ensureDefaultColumns()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogConstraints.java65 Integer value = contentValuesToCheck.getAsInteger(columnName); in checkBooleanColumn()
82 Integer callType = contentValuesToCheck.getAsInteger(AnnotatedCallLog.CALL_TYPE); in checkCallTypeColumn()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java106 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Audio()
116 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Video()
127 (int) values.getAsInteger(FileColumns.MEDIA_TYPE)); in testForwardLock_Image()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DReceiveSmsMessageAction.java63 Integer subId = messageValues.getAsInteger(Sms.SUBSCRIPTION_ID); in executeAction()
129 final Integer pathPresent = messageValues.getAsInteger(Sms.REPLY_PATH_PRESENT); in executeAction()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java806 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
908 if (mSubId2Phone.get(modifiedValues.getAsInteger(Telephony.Sms.SUBSCRIPTION_ID)) in insert()
914 mMsgId = modifiedValues.getAsInteger(BaseColumns._ID); in insert()
1076 assertEquals(values.getAsInteger(Telephony.Threads.ARCHIVED).intValue(), 1); in update()
1117 return rows.get(nextRow).getAsInteger(projection[columnIndex]); in getInt()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1711 Integer allDayObj = values.getAsInteger(Events.ALL_DAY); in fixAllDayTime()
2092 boolean canceling = (values.getAsInteger(Events.STATUS) == Events.STATUS_CANCELED); in handleInsertException()
2374 && Events.STATUS_CANCELED == values.getAsInteger(Events.STATUS)) { in insertInTransactionInner()
2462 int status = values.getAsInteger(Events.SELF_ATTENDEE_STATUS); in insertInTransactionInner()
2480 Integer syncEvents = values.getAsInteger(Calendars.SYNC_EVENTS); in insertInTransactionInner()
2726 bob.append("\nall_day: ").append(values.getAsInteger(Events.ALL_DAY)); in dumpEventNoPII()
2738 bob.append("\nori_all_day: ").append(values.getAsInteger(Events.ORIGINAL_ALL_DAY)); in dumpEventNoPII()
3113 Integer relationObj = attendeeValues.getAsInteger(Attendees.ATTENDEE_RELATIONSHIP); in updateEventAttendeeStatus()
3122 Integer statusObj = attendeeValues.getAsInteger(Attendees.ATTENDEE_STATUS); in updateEventAttendeeStatus()
3277 Integer allDayInteger = values.getAsInteger(Events.ALL_DAY); in updateEventRawTimesLocked()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java569 Integer typeObj = initialValues.getAsInteger(Sms.TYPE); in insertInner()
640 Integer obj = initialValues.getAsInteger(Sms.TYPE); in insertInner()
650 obj = initialValues.getAsInteger(Sms.READ); // 0: Unread, 1: Read in insertInner()
709 if (values.getAsInteger(Sms.TYPE) == Sms.MESSAGE_TYPE_DRAFT) { in insertInner()
/packages/apps/TV/partner_support/src/com/google/android/tv/partner/support/
DLineup.java63 int type = contentValues.getAsInteger(EpgContract.Lineups.COLUMN_TYPE); in createLineup()

123