/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_PlaylistsTest.java | 86 long realDateAdded = c.getLong(c.getColumnIndex(Playlists.DATE_ADDED)); 88 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED))); 89 assertTrue(c.getLong(c.getColumnIndex(Playlists._ID)) > 0); 104 assertEquals(realDateAdded, c.getLong(c.getColumnIndex(Playlists.DATE_ADDED))); 105 assertEquals(dateModified, c.getLong(c.getColumnIndex(Playlists.DATE_MODIFIED)));
|
MediaStore_Audio_MediaTest.java | 94 long id = c.getLong(c.getColumnIndex(Media._ID)); 98 assertTrue(c.getLong(c.getColumnIndex(Media.DATE_ADDED)) > 0); 99 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 108 long albumId = c.getLong(c.getColumnIndex(Media.ALBUM_ID)); 113 long artistId = c.getLong(c.getColumnIndex(Media.ARTIST_ID)); 116 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); 137 long id2 = c.getLong(c.getColumnIndex(Media._ID)); 141 assertEquals(Audio2.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 149 assertTrue(albumId != c.getLong(c.getColumnIndex(Media.ALBUM_ID))); 152 assertTrue(artistId != c.getLong(c.getColumnIndex(Media.ARTIST_ID))) [all...] |
/external/icu/icu4c/source/i18n/unicode/ |
fmtable.h | 241 * Selector indicating a 32-bit integer value. Use getLong to 319 int32_t getLong(void) const { return (int32_t)fValue.fInt64; } 330 * getNumber().getLong(status) is returned. If this object is 337 int32_t getLong(UErrorCode& status) const; 639 * Deprecated variant of getLong(UErrorCode&). 642 * @deprecated ICU 3.0 use getLong(UErrorCode&) instead 644 inline int32_t getLong(UErrorCode* status) const; 736 inline int32_t Formattable::getLong(UErrorCode* status) const { 737 return getLong(*status);
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
TestTextParser.java | 111 .getLong(DAY_OF_WEEK), 1L); 119 .getLong(DAY_OF_WEEK), 3L); 251 assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); 258 assertEquals(getFormatter(field, style).parseUnresolved(input, pos).getLong(field), (long) value); 266 assertEquals(formatter.parseUnresolved(input, pos).getLong(field), (long) expectedValue); 295 assertEquals(getFormatter(field, style).parseUnresolved(input.toUpperCase(Locale.ROOT), pos).getLong(field), (long) value); 316 assertEquals(getFormatter(field, style).parseUnresolved(input.toLowerCase(Locale.ROOT), pos).getLong(field), (long) value); 326 assertEquals(getFormatter(MONTH_OF_YEAR, TextStyle.FULL).parseUnresolved("January", pos).getLong(MONTH_OF_YEAR), 1L); 348 assertEquals(getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).parseUnresolved("January", pos).getLong(MONTH_OF_YEAR), 1L); 355 assertEquals(getFormatter(MONTH_OF_YEAR, TextStyle.SHORT).parseUnresolved("Janua", pos).getLong(MONTH_OF_YEAR), 1L) [all...] |
/external/icu/icu4c/source/test/intltest/ |
tfsmalls.cpp | 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { 169 it_errln("*** Formattable constructor or getType or getLong"); 178 fta.getLong(&status); 180 it_errln("*** FT getLong(UErrorCode* status) failed on real Long"); 182 it_logln("FT getLong(UErrorCode* status) tested."); 220 fta.getLong(&status); 222 it_errln("*** FT getLong(UErrorCode* status) should fail on non-Long"); 263 && (ft_arr[2].getType() == Formattable::kLong) && (ft_arr[2].getLong() == (int32_t)3) 323 if ((ft_arr[0].getType() == Formattable::kLong) && (ft_arr[0].getLong() == (int32_t)1)) { 333 if ((ft_dynarr[0].getType() == Formattable::kLong) && (ft_dynarr[0].getLong() == (int32_t)3 [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
MatrixCursorTest.java | 104 assertEquals(Long.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); 106 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 108 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 187 assertEquals(Short.MIN_VALUE, mMatrixCursor.getLong(COLUMN0_INDEX)); 188 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 189 assertEquals(Short.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 218 assertEquals(0, mMatrixCursor.getLong(COLUMN0_INDEX)); 219 assertEquals(0, mMatrixCursor.getLong(COLUMN1_INDEX)); 220 assertEquals(Long.MAX_VALUE, mMatrixCursor.getLong(COLUMN2_INDEX)); 248 assertEquals(-1, mMatrixCursor.getLong(COLUMN0_INDEX)) [all...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
SharedPrefUtil.java | 57 contactModifySyncTime = pref.getLong(CONTACT_CHANGED_PREF_KEY, time); 71 profileModifySyncTime = pref.getLong(CONTACT_PROFILE_CHANGED_PREF_KEY, time); 85 contactDeleteSyncTime = pref.getLong(CONTACT_DELETE_PREF_KEY, time);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
CursorWindowTest.java | 87 long int2 = window.getLong(0, 1); 92 assertEquals(1198032740000L, window.getLong(0, 3)); 96 assertEquals(1198032740000L, window.getLong(0, 3));
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/pps/ |
SubscriptionParameters.java | 54 mDataLimit = MOManager.getLong(node, TAG_DataLimit, Long.MAX_VALUE); 56 mTimeLimit = MOManager.getLong(node, TAG_TimeLimit, Long.MAX_VALUE) * 58 mUsageTimePeriod = MOManager.getLong(node, TAG_UsageTimePeriod, null);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
AlwaysOnDisplayPolicy.java | 151 proxScreenOffDelayMs = mParser.getLong(KEY_PROX_SCREEN_OFF_DELAY_MS, 153 proxCooldownTriggerMs = mParser.getLong(KEY_PROX_COOLDOWN_TRIGGER_MS, 155 proxCooldownPeriodMs = mParser.getLong(KEY_PROX_COOLDOWN_PERIOD_MS,
|
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
MediaItemStatus.java | 209 return mBundle.getLong(KEY_TIMESTAMP); 232 return mBundle.getLong(KEY_CONTENT_POSITION, -1); 242 return mBundle.getLong(KEY_CONTENT_DURATION, -1);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
MultiSelectEntryContactListAdapter.java | 148 return cursor.getLong(getContactColumnIdIndex()); 170 ? 0 : cursor.getLong(photoIdColumn); 190 final long contactId = cursor.getLong(mContactIdColumnIndex);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
LocalBluetoothPreferences.java | 57 return getSharedPreferences(context).getLong( 85 long lastDiscoverableEndTime = sharedPreferences.getLong( 110 long lastDeviceSelectedTime = sharedPreferences.getLong(
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/ |
AnomalyDetectionPolicy.java | 145 wakeLockThreshold = mParserWrapper.getLong(KEY_WAKELOCK_THRESHOLD, 147 wakeupAlarmThreshold = mParserWrapper.getLong(KEY_WAKEUP_ALARM_THRESHOLD, 10); 149 bluetoothScanThreshold = mParserWrapper.getLong(KEY_BLUETOOTH_SCAN_THRESHOLD,
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
ImportantNoticeUtilsTests.java | 59 public Long getLong(final String key) { 61 return mPref.getLong(key, 0); 87 mLastTime = getLong(KEY_TIMESTAMP_OF_CONTACTS_NOTICE);
|
/packages/services/Car/TrustAgent/src/com/android/car/trust/ |
CarUnlockService.java | 95 Log.d(TAG, "Unlock handle received, value: " + Utils.getLong(value)); 97 mCurrentHandle = Utils.getLong(value); 101 Log.d(TAG, "Unlock escrow token received, value: " + Utils.getLong(value));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
ContactAggregator2.java | 266 mimeTypeCondition.append(c.getLong((0))); 409 if (!connectedRawContactIds.contains(cursor.getLong(0))) { 472 long rawContactId = cursor.getLong(RawContactIdQuery.RAW_CONTACT_ID); 522 long rawContactId1 = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); 528 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID2); 529 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID2); 530 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID2); 534 rId = c.getLong(AggregateExceptionQuery.RAW_CONTACT_ID1); 535 contactId = c.getLong(AggregateExceptionQuery.CONTACT_ID1); 536 accountId = c.getLong(AggregateExceptionQuery.ACCOUNT_ID1) [all...] |
/art/test/555-UnsafeGetLong-regression/src/ |
Main.java | 45 lvar = unsafe.getLong(test, lvar);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
SettingsTest.java | 77 assertThat(Settings.System.getLong(contentResolver, "property", 10L), equalTo(10L)); 79 assertThat(Settings.System.getLong(contentResolver, "property"), equalTo(42L)); 80 assertThat(Settings.System.getLong(contentResolver, "property", 10L), equalTo(42L)); 92 Settings.System.getLong(contentResolver, "property");
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/android/content/ |
TestSharedPreferencesTest.java | 48 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 76 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 97 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(3l)); 119 assertThat(anotherSharedPreferences.getLong("long", 666l), equalTo(666l));
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
AbstractDateTimeTest.java | 218 // getLong(TemporalField) 224 sample.getLong(field); // no exception 234 sample.getLong(field); 246 sample.getLong(MockFieldNoValue.INSTANCE); 254 sample.getLong(null);
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
MockFieldValue.java | 98 public long getLong(TemporalField field) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
TrackInfo.java | 132 sb.append(Long.toString(metaData.getLong(MediaMetadata.METADATA_KEY_TRACK_NUMBER)) + " "); 134 sb.append(Long.toString(metaData.getLong(MediaMetadata.METADATA_KEY_NUM_TRACKS)) + " "); 136 sb.append(Long.toString(metaData.getLong(MediaMetadata.METADATA_KEY_DURATION)) + " "); 138 sb.append(Long.toString(metaData.getLong(MediaMetadata.METADATA_KEY_DURATION)) + " ");
|
/packages/apps/Contacts/src/com/android/contacts/database/ |
EmptyCursor.java | 62 public long getLong(int column) {
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
DataStatus.java | 66 final long newTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); 79 mTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); 157 private static long getLong(Cursor cursor, String columnName, long missingValue) { 159 return cursor.isNull(columnIndex) ? missingValue : cursor.getLong(columnIndex);
|