Home
last modified time | relevance | path

Searched refs:getInt (Results 1 – 25 of 876) sorted by relevance

12345678910>>...36

/frameworks/base/media/java/android/media/browse/
DMediaBrowserUtils.java29 return options2.getInt(MediaBrowser.EXTRA_PAGE, -1) == -1 in areSameOptions()
30 && options2.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
32 return options1.getInt(MediaBrowser.EXTRA_PAGE, -1) == -1 in areSameOptions()
33 && options1.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
35 return options1.getInt(MediaBrowser.EXTRA_PAGE, -1) in areSameOptions()
36 == options2.getInt(MediaBrowser.EXTRA_PAGE, -1) in areSameOptions()
37 && options1.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) in areSameOptions()
38 == options2.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1); in areSameOptions()
43 int page1 = options1 == null ? -1 : options1.getInt(MediaBrowser.EXTRA_PAGE, -1); in hasDuplicatedItems()
44 int page2 = options2 == null ? -1 : options2.getInt(MediaBrowser.EXTRA_PAGE, -1); in hasDuplicatedItems()
[all …]
/frameworks/support/media/src/main/java/androidx/media/
DMediaBrowserCompatUtils.java35 return options2.getInt(MediaBrowserCompat.EXTRA_PAGE, -1) == -1 in areSameOptions()
36 && options2.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
38 return options1.getInt(MediaBrowserCompat.EXTRA_PAGE, -1) == -1 in areSameOptions()
39 && options1.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
41 return options1.getInt(MediaBrowserCompat.EXTRA_PAGE, -1) in areSameOptions()
42 == options2.getInt(MediaBrowserCompat.EXTRA_PAGE, -1) in areSameOptions()
43 && options1.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1) in areSameOptions()
44 == options2.getInt(MediaBrowserCompat.EXTRA_PAGE_SIZE, -1); in areSameOptions()
49 int page1 = options1 == null ? -1 : options1.getInt(MediaBrowserCompat.EXTRA_PAGE, -1); in hasDuplicatedItems()
50 int page2 = options2 == null ? -1 :options2.getInt(MediaBrowserCompat.EXTRA_PAGE, -1); in hasDuplicatedItems()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDatabaseTest.java70 private static int getInt(Cursor cursor, String columnName) { in getInt() method in MtpDatabaseTest
71 return cursor.getInt(cursor.getColumnIndex(columnName)); in getInt()
96 assertEquals(2, getInt(cursor, COLUMN_DOCUMENT_ID)); in testPutSingleStorageDocuments()
97 assertEquals(0, getInt(cursor, COLUMN_DEVICE_ID)); in testPutSingleStorageDocuments()
98 assertEquals(1, getInt(cursor, COLUMN_STORAGE_ID)); in testPutSingleStorageDocuments()
105 assertEquals(R.drawable.ic_root_mtp, getInt(cursor, COLUMN_ICON)); in testPutSingleStorageDocuments()
106 assertEquals(Document.FLAG_DIR_SUPPORTS_CREATE, getInt(cursor, COLUMN_FLAGS)); in testPutSingleStorageDocuments()
107 assertEquals(1000, getInt(cursor, COLUMN_SIZE)); in testPutSingleStorageDocuments()
110 getInt(cursor, COLUMN_DOCUMENT_TYPE)); in testPutSingleStorageDocuments()
129 assertEquals(1, getInt(cursor, Root.COLUMN_ROOT_ID)); in testPutSingleStorageDocuments()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/database/
DTableHelper.java72 cursor.getInt(cursorIndexOfA);
136 cursor.getInt(cursorIndexOfA);
137 cursor.getInt(cursorIndexOfB);
138 cursor.getInt(cursorIndexOfC);
139 cursor.getInt(cursorIndexOfD);
140 cursor.getInt(cursorIndexOfE);
141 cursor.getInt(cursorIndexOfF);
142 cursor.getInt(cursorIndexOfG);
143 cursor.getInt(cursorIndexOfH);
144 cursor.getInt(cursorIndexOfI);
[all …]
DSQLiteDatabasePerfTest.java86 assertEquals(index, cursor.getInt(0)); in testSelect()
87 assertEquals(index, cursor.getInt(1)); in testSelect()
108 assertEquals(index, cursor.getInt(0)); in testSelectMultipleRows()
109 assertEquals(index, cursor.getInt(1)); in testSelectMultipleRows()
132 assertEquals(i, cursor.getInt(0)); in testCursorIterateForward()
133 assertEquals(i, cursor.getInt(1)); in testCursorIterateForward()
155 assertEquals(i, cursor.getInt(0)); in testCursorIterateBackwards()
156 assertEquals(i, cursor.getInt(1)); in testCursorIterateBackwards()
185 assertEquals(index, cursor.getInt(0)); in testInnerJoin()
186 assertEquals(index, cursor.getInt(1)); in testInnerJoin()
/frameworks/support/content/src/androidTest/java/androidx/contentpager/content/
DContentPagerTest.java101 extras.getInt(ContentPager.CURSOR_DISPOSITION, -1)); in testRelaysProviderPagedResults()
105 extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testRelaysProviderPagedResults()
114 extras.getInt(ContentPager.Stats.EXTRA_PROVIDER_PAGED)); in testRelaysProviderPagedResults()
117 extras.getInt(ContentPager.Stats.EXTRA_RESOLVED_QUERIES)); in testRelaysProviderPagedResults()
120 extras.getInt(ContentPager.Stats.EXTRA_TOTAL_QUERIES)); in testRelaysProviderPagedResults()
151 extras.getInt(ContentPager.CURSOR_DISPOSITION, -1)); in testLimitsPagedResultsToWindowSize()
155 extras.getInt(ContentResolver.EXTRA_TOTAL_COUNT)); in testLimitsPagedResultsToWindowSize()
158 assertEquals(limit, extras.getInt(ContentPager.EXTRA_REQUESTED_LIMIT)); in testLimitsPagedResultsToWindowSize()
160 assertEquals(7, extras.getInt(ContentPager.EXTRA_SUGGESTED_LIMIT)); in testLimitsPagedResultsToWindowSize()
169 extras.getInt(ContentPager.Stats.EXTRA_PROVIDER_PAGED)); in testLimitsPagedResultsToWindowSize()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java80 Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_firstCall_needWarning()
82 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_firstCall_needWarning()
95 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_secondCall_needWarning()
96 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_secondCall_needWarning()
109 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_thridCall_needWarning()
110 assertEquals(2, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_thridCall_needWarning()
123 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_firstCall_noWarning()
124 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_firstCall_noWarning()
138 assertEquals(-1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_disable_firstCall_noWarning()
140 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_disable_firstCall_noWarning()
[all …]
/frameworks/opt/telephony/src/java/android/telephony/
DCellBroadcastMessage.java130 int geoScope = cursor.getInt( in createFromCursor()
132 int serialNum = cursor.getInt( in createFromCursor()
134 int category = cursor.getInt( in createFromCursor()
140 int format = cursor.getInt( in createFromCursor()
142 int priority = cursor.getInt( in createFromCursor()
156 lac = cursor.getInt(lacColumn); in createFromCursor()
164 cid = cursor.getInt(cidColumn); in createFromCursor()
175 int warningType = cursor.getInt(etwsWarningTypeColumn); in createFromCursor()
185 int messageClass = cursor.getInt(cmasMessageClassColumn); in createFromCursor()
191 cmasCategory = cursor.getInt(cmasCategoryColumn); in createFromCursor()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java77 startNth = parser.getInt("start_nth", AUTO_SAVER_SUGGESTION_START_NTH); in Parameters()
78 endNth = parser.getInt("end_nth", AUTO_SAVER_SUGGESTION_END_NTH); in Parameters()
108 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode()
115 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
116 && Secure.getInt(cr, in setPowerSaveMode()
128 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation()
174 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver()
/frameworks/base/core/java/android/ddm/
DDdmHandleProfiling.java105 int bufferSize = in.getInt(); in handleMPRS()
106 int flags = in.getInt(); in handleMPRS()
107 int len = in.getInt(); in handleMPRS()
147 int bufferSize = in.getInt(); in handleMPSS()
148 int flags = in.getInt(); in handleMPSS()
200 int bufferSize = in.getInt(); in handleSPSS()
201 int flags = in.getInt(); in handleSPSS()
202 int interval = in.getInt(); in handleSPSS()
DDdmHandleViewDebug.java118 int op = in.getInt(); in handleChunk()
185 int viewRootNameLength = in.getInt(); in getRootView()
198 viewLength = in.getInt(); in getTargetView()
217 boolean skipChildren = in.getInt() > 0; in dumpHierarchy()
218 boolean includeProperties = in.getInt() > 0; in dumpHierarchy()
219 boolean v2 = in.hasRemaining() && in.getInt() > 0; in dumpHierarchy()
320 int l = in.getInt(); in invokeViewMethod()
329 int nArgs = in.getInt(); in invokeViewMethod()
355 args[i] = in.getInt(); in invokeViewMethod()
401 int l = in.getInt(); in setLayoutParameter()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableHighSpeedVideoConfiguration.java57 int width = buffer.getInt(); in unmarshal()
58 int height = buffer.getInt(); in unmarshal()
59 int fpsMin = buffer.getInt(); in unmarshal()
60 int fpsMax = buffer.getInt(); in unmarshal()
61 int batchSizeMax = buffer.getInt(); in unmarshal()
DMarshalQueryableMeteringRectangle.java58 int xMin = buffer.getInt(); in unmarshal()
59 int yMin = buffer.getInt(); in unmarshal()
60 int xMax = buffer.getInt(); in unmarshal()
61 int yMax = buffer.getInt(); in unmarshal()
62 int weight = buffer.getInt(); in unmarshal()
DMarshalQueryableStreamConfiguration.java54 int format = buffer.getInt(); in unmarshal()
55 int width = buffer.getInt(); in unmarshal()
56 int height = buffer.getInt(); in unmarshal()
57 boolean input = buffer.getInt() != 0; in unmarshal()
DMarshalQueryableRect.java50 int left = buffer.getInt(); in unmarshal()
51 int top = buffer.getInt(); in unmarshal()
52 int width = buffer.getInt(); in unmarshal()
53 int height = buffer.getInt(); in unmarshal()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DBackupManagerMonitorUtilsTest.java86 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
87 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
107 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
108 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
110 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_PACKAGE_VERSION)).isEqualTo(3); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
112 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
134 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
135 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
137 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_PACKAGE_VERSION)).isEqualTo(3); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
140 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteGlobal.java70 return SystemProperties.getInt("debug.sqlite.pagesize", sDefaultPageSize); in getDefaultPageSize()
97 return SystemProperties.getInt("debug.sqlite.journalsizelimit", in getJournalSizeLimit()
124 int value = SystemProperties.getInt("debug.sqlite.wal.autocheckpoint", in getWALAutoCheckpoint()
134 int value = SystemProperties.getInt("debug.sqlite.wal.poolsize", in getWALConnectionPoolSize()
145 return SystemProperties.getInt("debug.sqlite.idle_connection_timeout", in getIdleConnectionTimeout()
/frameworks/base/services/net/java/android/net/netlink/
DStructNdaCacheInfo.java47 struct.ndm_used = byteBuffer.getInt(); in parse()
48 struct.ndm_confirmed = byteBuffer.getInt(); in parse()
49 struct.ndm_updated = byteBuffer.getInt(); in parse()
50 struct.ndm_refcnt = byteBuffer.getInt(); in parse()
/frameworks/multidex/library/test/src/androidx/multidex/
DZipEntryReader.java52 int sig = in.getInt(); in readEntry()
69 long crc = ((long) in.getInt()) & 0xffffffffL; in readEntry()
70 long compressedSize = ((long) in.getInt()) & 0xffffffffL; in readEntry()
71 long size = ((long) in.getInt()) & 0xffffffffL; in readEntry()
79 long localHeaderRelOffset = ((long) in.getInt()) & 0xffffffffL; in readEntry()
/frameworks/support/room/compiler/src/test/data/daoWriter/output/
DComplexDao.java58 _item.id = _cursor.getInt(_cursorIndexOfId); in fullNames()
83 _result.uid = _cursor.getInt(_cursorIndexOfUid); in getById()
88 _result.age = _cursor.getInt(_cursorIndexOfAge); in getById()
124 _result.uid = _cursor.getInt(_cursorIndexOfUid); in findByName()
129 _result.age = _cursor.getInt(_cursorIndexOfAge); in findByName()
165 _item_1.uid = _cursor.getInt(_cursorIndexOfUid); in loadAllByIds()
170 _item_1.age = _cursor.getInt(_cursorIndexOfAge); in loadAllByIds()
190 _result = _cursor.getInt(0); in getAge()
222 _item_1 = _cursor.getInt(0); in getAllAges()
260 _item_1 = _cursor.getInt(0); in getAllAgesAsList()
[all …]
/frameworks/base/core/java/android/util/
DEventLog.java92 return mBuffer.getInt(PROCESS_OFFSET); in getProcessId()
102 return mBuffer.getInt(UID_OFFSET); in getUid()
111 return mBuffer.getInt(THREAD_OFFSET); in getThreadId()
116 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l in getTimeNanos()
117 + mBuffer.getInt(NANOSECONDS_OFFSET); in getTimeNanos()
126 return mBuffer.getInt(offset); in getTag()
159 return mBuffer.getInt(); in decodeObject()
169 int length = mBuffer.getInt(); in decodeObject()
/frameworks/base/telephony/java/android/telephony/cdma/
DCdmaCellLocation.java69 this.mBaseStationId = bundle.getInt("baseStationId", mBaseStationId); in CdmaCellLocation()
70 this.mBaseStationLatitude = bundle.getInt("baseStationLatitude", mBaseStationLatitude); in CdmaCellLocation()
71 this.mBaseStationLongitude = bundle.getInt("baseStationLongitude", mBaseStationLongitude); in CdmaCellLocation()
72 this.mSystemId = bundle.getInt("systemId", mSystemId); in CdmaCellLocation()
73 this.mNetworkId = bundle.getInt("networkId", mNetworkId); in CdmaCellLocation()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DMediaRouteDescriptor.java153 return mBundle.getInt(KEY_CONNECTION_STATE, in getConnectionState()
210 return mBundle.getInt(KEY_PLAYBACK_TYPE, MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE); in getPlaybackType()
217 return mBundle.getInt(KEY_PLAYBACK_STREAM, -1); in getPlaybackStream()
228 return mBundle.getInt(KEY_DEVICE_TYPE); in getDeviceType()
235 return mBundle.getInt(KEY_VOLUME); in getVolume()
242 return mBundle.getInt(KEY_VOLUME_MAX); in getVolumeMax()
253 return mBundle.getInt(KEY_VOLUME_HANDLING, in getVolumeHandling()
261 return mBundle.getInt( in getPresentationDisplayId()
280 return mBundle.getInt(KEY_MIN_CLIENT_VERSION, in getMinClientVersion()
290 return mBundle.getInt(KEY_MAX_CLIENT_VERSION, Integer.MAX_VALUE); in getMaxClientVersion()
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DMediaRouteDescriptor.java157 return mBundle.getInt(KEY_CONNECTION_STATE, in getConnectionState()
214 return mBundle.getInt(KEY_PLAYBACK_TYPE, MediaRouter.RouteInfo.PLAYBACK_TYPE_REMOTE); in getPlaybackType()
221 return mBundle.getInt(KEY_PLAYBACK_STREAM, -1); in getPlaybackStream()
232 return mBundle.getInt(KEY_DEVICE_TYPE); in getDeviceType()
239 return mBundle.getInt(KEY_VOLUME); in getVolume()
246 return mBundle.getInt(KEY_VOLUME_MAX); in getVolumeMax()
257 return mBundle.getInt(KEY_VOLUME_HANDLING, in getVolumeHandling()
265 return mBundle.getInt( in getPresentationDisplayId()
284 return mBundle.getInt(KEY_MIN_CLIENT_VERSION, in getMinClientVersion()
294 return mBundle.getInt(KEY_MAX_CLIENT_VERSION, Integer.MAX_VALUE); in getMaxClientVersion()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiSettingsStore.java199 return Settings.Global.getInt(mContext.getContentResolver(), in getWifiSavedState()
210 return Settings.Global.getInt(cr, Settings.Global.WIFI_ON); in getPersistedWifiState()
218 return Settings.Global.getInt(mContext.getContentResolver(), in getPersistedAirplaneModeOn()
223 return Settings.Global.getInt(mContext.getContentResolver(), in getPersistedScanAlwaysAvailable()
234 return Settings.Secure.getInt(context.getContentResolver(), in getLocationModeSetting()

12345678910>>...36