Home
last modified time | relevance | path

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

12345678910>>...31

/frameworks/base/media/java/android/media/browse/
DMediaBrowserUtils.java32 return options2.getInt(MediaBrowser.EXTRA_PAGE, -1) == -1 in areSameOptions()
33 && options2.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
35 return options1.getInt(MediaBrowser.EXTRA_PAGE, -1) == -1 in areSameOptions()
36 && options1.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) == -1; in areSameOptions()
38 return options1.getInt(MediaBrowser.EXTRA_PAGE, -1) in areSameOptions()
39 == options2.getInt(MediaBrowser.EXTRA_PAGE, -1) in areSameOptions()
40 && options1.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1) in areSameOptions()
41 == options2.getInt(MediaBrowser.EXTRA_PAGE_SIZE, -1); in areSameOptions()
49 int page1 = options1 == null ? -1 : options1.getInt(MediaBrowser.EXTRA_PAGE, -1); in hasDuplicatedItems()
50 int page2 = options2 == null ? -1 : options2.getInt(MediaBrowser.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.java87 assertEquals(index, cursor.getInt(0)); in testSelect()
88 assertEquals(index, cursor.getInt(1)); in testSelect()
109 assertEquals(index, cursor.getInt(0)); in testSelectMultipleRows()
110 assertEquals(index, cursor.getInt(1)); in testSelectMultipleRows()
133 assertEquals(i, cursor.getInt(0)); in testCursorIterateForward()
134 assertEquals(i, cursor.getInt(1)); in testCursorIterateForward()
156 assertEquals(i, cursor.getInt(0)); in testCursorIterateBackwards()
157 assertEquals(i, cursor.getInt(1)); in testCursorIterateBackwards()
186 assertEquals(index, cursor.getInt(0)); in testInnerJoin()
187 assertEquals(index, cursor.getInt(1)); in testInnerJoin()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DBatterySaverUtilsTest.java78 Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_firstCall_needWarning()
80 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_firstCall_needWarning()
93 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_secondCall_needWarning()
94 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_secondCall_needWarning()
107 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_thridCall_needWarning()
108 assertEquals(2, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_thridCall_needWarning()
121 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_enable_firstCall_noWarning()
122 assertEquals(1, Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enable_firstCall_noWarning()
136 assertEquals(-1, Secure.getInt(mMockResolver, Secure.LOW_POWER_WARNING_ACKNOWLEDGED, -1)); in testSetPowerSaveMode_disable_firstCall_noWarning()
138 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_disable_firstCall_noWarning()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDeviceConfigFacade.java56 return DeviceConfig.getInt(NAMESPACE, "abnormal_connection_duration_ms", in getAbnormalConnectionDurationMs()
75 return DeviceConfig.getInt(NAMESPACE, "data_stall_duration_ms", in getDataStallDurationMs()
83 return DeviceConfig.getInt(NAMESPACE, "data_stall_tx_tput_thr_mbps", in getDataStallTxTputThrMbps()
91 return DeviceConfig.getInt(NAMESPACE, "data_stall_rx_tput_thr_mbps", in getDataStallRxTputThrMbps()
99 return DeviceConfig.getInt(NAMESPACE, "data_stall_tx_per_thr", in getDataStallTxPerThr()
107 return DeviceConfig.getInt(NAMESPACE, "data_stall_cca_level_thr", in getDataStallCcaLevelThr()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFileUtil.java94 int magicNumber = buffer.getInt(0); in analyzeStyle()
97 if (ttcIndex >= buffer.getInt(8 /* offset to number of fonts in TTC */)) { in analyzeStyle()
100 fontFileOffset = buffer.getInt( in analyzeStyle()
103 int sfntVersion = buffer.getInt(fontFileOffset); in analyzeStyle()
114 if (buffer.getInt(tableOffset) == OS2_TABLE_TAG) { in analyzeStyle()
115 os2TableOffset = buffer.getInt(tableOffset + 8 /* offset to the table */); in analyzeStyle()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java122 ).when(() -> SystemProperties.getInt(anyString(), anyInt())); in setUp()
162 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithExecutionForAllRescueLevels()
168 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithExecutionForAllRescueLevels()
174 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithExecutionForAllRescueLevels()
180 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithExecutionForAllRescueLevels()
189 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testPersistentAppCrashDetectionWithExecutionForAllRescueLevels()
195 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testPersistentAppCrashDetectionWithExecutionForAllRescueLevels()
201 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testPersistentAppCrashDetectionWithExecutionForAllRescueLevels()
207 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testPersistentAppCrashDetectionWithExecutionForAllRescueLevels()
220 SystemProperties.getInt(RescueParty.PROP_RESCUE_LEVEL, RescueParty.LEVEL_NONE)); in testBootLoopDetectionWithWrongInterval()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java100 startNth = parser.getInt("start_nth", AUTO_SAVER_SUGGESTION_START_NTH); in Parameters()
101 endNth = parser.getInt("end_nth", AUTO_SAVER_SUGGESTION_END_NTH); in Parameters()
134 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode()
141 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
142 && Secure.getInt(cr, in setPowerSaveMode()
167 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation()
215 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver()
228 final int currentMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded()
/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/database/sqlite/
DSQLiteGlobal.java80 return SystemProperties.getInt("debug.sqlite.pagesize", sDefaultPageSize); in getDefaultPageSize()
97 return SystemProperties.getInt("debug.sqlite.journalsizelimit", in getJournalSizeLimit()
134 int value = SystemProperties.getInt("debug.sqlite.wal.autocheckpoint", in getWALAutoCheckpoint()
144 int value = SystemProperties.getInt("debug.sqlite.wal.poolsize", in getWALConnectionPoolSize()
155 return SystemProperties.getInt("debug.sqlite.idle_connection_timeout", in getIdleConnectionTimeout()
172 return SystemProperties.getInt("debug.sqlite.wal.truncatesize", in getWALTruncateSize()
/frameworks/base/core/tests/coretests/src/android/util/
DStatsEventTest.java72 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields()
77 final int errorMask = buffer.getInt(); in testNoFields()
127 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testIntBooleanIntInt()
133 .that(buffer.getInt()).isEqualTo(field1); in testIntBooleanIntInt()
145 .that(buffer.getInt()).isEqualTo(field3); in testIntBooleanIntInt()
151 .that(buffer.getInt()).isEqualTo(field4); in testIntBooleanIntInt()
196 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testStringFloatByteArray()
260 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testAttributionChainLong()
270 .that(buffer.getInt()).isEqualTo(uids[i]); in testAttributionChainLong()
330 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testKeyValuePairs()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java630 int geoScope = cursor.getInt( in createFromCursor()
632 int serialNum = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERIAL_NUMBER)); in createFromCursor()
633 int category = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERVICE_CATEGORY)); in createFromCursor()
637 int format = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_FORMAT)); in createFromCursor()
638 int priority = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_PRIORITY)); in createFromCursor()
639 int slotIndex = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SLOT_INDEX)); in createFromCursor()
640 int subId = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SUBSCRIPTION_ID)); in createFromCursor()
653 lac = cursor.getInt(lacColumn); in createFromCursor()
661 cid = cursor.getInt(cidColumn); in createFromCursor()
671 int warningType = cursor.getInt(etwsWarningTypeColumn); in createFromCursor()
[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()
DMarshalQueryableRecommendedStreamConfiguration.java56 int width = buffer.getInt(); in unmarshal()
57 int height = buffer.getInt(); in unmarshal()
58 int format = buffer.getInt(); in unmarshal()
59 boolean input = buffer.getInt() != 0; in unmarshal()
60 int usecaseBitmap = 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.java87 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
88 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
108 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
109 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
111 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_PACKAGE_VERSION)).isEqualTo(3); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
113 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
135 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
136 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
138 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_PACKAGE_VERSION)).isEqualTo(3); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
141 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DGlobalSettingsHelper.java34 public static int getInt(Context context, String settingName, int subId, in getInt() method in GlobalSettingsHelper
37 return Settings.Global.getInt(context.getContentResolver(), settingName, defaultValue); in getInt()
46 return Settings.Global.getInt(context.getContentResolver(), settingName, in getBoolean()
56 return Settings.Global.getInt(context.getContentResolver(), settingName) == 1; in getBoolean()
68 needChange = Settings.Global.getInt(context.getContentResolver(), settingName) != value; in setInt()
DNitzStateMachine.java138 SystemProperties.getInt("ro.nitz_update_spacing", NITZ_UPDATE_SPACING_DEFAULT); in DeviceStateImpl()
140 SystemProperties.getInt("ro.nitz_update_diff", NITZ_UPDATE_DIFF_DEFAULT); in DeviceStateImpl()
145 return Settings.Global.getInt(mCr, Settings.Global.NITZ_UPDATE_SPACING, in getNitzUpdateSpacingMillis()
151 return Settings.Global.getInt(mCr, Settings.Global.NITZ_UPDATE_DIFF, mNitzUpdateDiff); in getNitzUpdateDiffMillis()
/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/base/core/java/android/util/
DEventLog.java94 return mBuffer.getInt(PROCESS_OFFSET); in getProcessId()
104 return mBuffer.getInt(UID_OFFSET); in getUid()
113 return mBuffer.getInt(THREAD_OFFSET); in getThreadId()
118 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l in getTimeNanos()
119 + mBuffer.getInt(NANOSECONDS_OFFSET); in getTimeNanos()
128 return mBuffer.getInt(offset); in getTag()
161 return mBuffer.getInt(); in decodeObject()
171 int length = mBuffer.getInt(); in decodeObject()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DSparseInputStream.java74 chunk.mChunkSize = buf.getInt(); in readChunk()
75 chunk.mTotalSize = buf.getInt(); in readChunk()
92 mIsSparse = (buf.getInt() == 0xed26ff3a); in SparseInputStream()
110 mBlockSize = buf.getInt(); in SparseInputStream()
114 mTotalBlocks = buf.getInt(); in SparseInputStream()
115 mTotalChunks = buf.getInt(); in SparseInputStream()

12345678910>>...31