Home
last modified time | relevance | path

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

12345678910>>...34

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DDeviceConfigFacade.java197 mAbnormalConnectionDurationMs = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
201 mDataStallDurationMs = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
203 mDataStallTxTputThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
205 mDataStallRxTputThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
207 mDataStallTxPerThr = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
209 mDataStallCcaLevelThr = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
217 mTxTputSufficientLowThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
219 mTxTputSufficientHighThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
221 mRxTputSufficientLowThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
223 mRxTputSufficientHighThrKbps = DeviceConfig.getInt(NAMESPACE, in updateDeviceConfigFlags()
[all …]
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DDeviceConfigFacadeTest.java81 when(DeviceConfig.getInt(anyString(), anyString(), anyInt())) in setUp()
218 when(DeviceConfig.getInt(anyString(), eq("abnormal_connection_duration_ms"), in testFieldUpdates()
220 when(DeviceConfig.getInt(anyString(), eq("data_stall_duration_ms"), in testFieldUpdates()
222 when(DeviceConfig.getInt(anyString(), eq("data_stall_tx_tput_thr_kbps"), in testFieldUpdates()
224 when(DeviceConfig.getInt(anyString(), eq("data_stall_rx_tput_thr_kbps"), in testFieldUpdates()
226 when(DeviceConfig.getInt(anyString(), eq("data_stall_tx_per_thr"), in testFieldUpdates()
228 when(DeviceConfig.getInt(anyString(), eq("data_stall_cca_level_thr"), in testFieldUpdates()
230 when(DeviceConfig.getInt(anyString(), eq("tput_sufficient_low_thr_kbps"), in testFieldUpdates()
232 when(DeviceConfig.getInt(anyString(), eq("tput_sufficient_high_thr_kbps"), in testFieldUpdates()
234 when(DeviceConfig.getInt(anyString(), eq("rx_tput_sufficient_low_thr_kbps"), in testFieldUpdates()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DVersionedPasswordMetrics.java73 final int version = buffer.getInt(); in deserialize()
74 PasswordMetrics metrics = new PasswordMetrics(buffer.getInt(), buffer.getInt(), in deserialize()
75 buffer.getInt(), buffer.getInt(), buffer.getInt(), buffer.getInt(), buffer.getInt(), in deserialize()
76 buffer.getInt(), buffer.getInt(), buffer.getInt()); in deserialize()
/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/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/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DBatterySaverUtils.java101 startNth = parser.getInt("start_nth", AUTO_SAVER_SUGGESTION_START_NTH); in Parameters()
102 endNth = parser.getInt("end_nth", AUTO_SAVER_SUGGESTION_END_NTH); in Parameters()
135 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode()
142 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
143 && Secure.getInt(cr, in setPowerSaveMode()
168 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation()
217 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver()
230 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/apex/statsd/framework/test/src/android/util/
DStatsEventTest.java73 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields()
78 final int errorMask = buffer.getInt(); in testNoFields()
120 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testOnlyAtomId()
167 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testIntBooleanIntInt()
173 .that(buffer.getInt()).isEqualTo(field1); in testIntBooleanIntInt()
185 .that(buffer.getInt()).isEqualTo(field3); in testIntBooleanIntInt()
191 .that(buffer.getInt()).isEqualTo(field4); in testIntBooleanIntInt()
236 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testStringFloatByteArray()
300 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testAttributionChainLong()
310 .that(buffer.getInt()).isEqualTo(uids[i]); in testAttributionChainLong()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSmsCbMessage.java631 int geoScope = cursor.getInt( in createFromCursor()
633 int serialNum = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERIAL_NUMBER)); in createFromCursor()
634 int category = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SERVICE_CATEGORY)); in createFromCursor()
638 int format = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_FORMAT)); in createFromCursor()
639 int priority = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.MESSAGE_PRIORITY)); in createFromCursor()
640 int slotIndex = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SLOT_INDEX)); in createFromCursor()
641 int subId = cursor.getInt(cursor.getColumnIndexOrThrow(CellBroadcasts.SUBSCRIPTION_ID)); in createFromCursor()
654 lac = cursor.getInt(lacColumn); in createFromCursor()
662 cid = cursor.getInt(cidColumn); in createFromCursor()
674 int warningType = cursor.getInt(etwsWarningTypeColumn); in createFromCursor()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
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()
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/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/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/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/wifi/java/android/net/wifi/aware/
DCharacteristics.java56 return mCharacteristics.getInt(KEY_MAX_SERVICE_NAME_LENGTH); in getMaxServiceNameLength()
71 return mCharacteristics.getInt(KEY_MAX_SERVICE_SPECIFIC_INFO_LENGTH); in getMaxServiceSpecificInfoLength()
83 return mCharacteristics.getInt(KEY_MAX_MATCH_FILTER_LENGTH); in getMaxMatchFilterLength()
112 return mCharacteristics.getInt(KEY_SUPPORTED_CIPHER_SUITES); in getSupportedCipherSuites()
/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>>...34