Home
last modified time | relevance | path

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

12345678910>>...37

/aosp14/frameworks/base/media/java/android/media/browse/
H A 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 …]
/aosp14/frameworks/base/services/core/java/com/android/server/locksettings/
H A 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()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/database/
H A 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 …]
H A DSQLiteDatabasePerfTest.java103 assertEquals(index, cursor.getInt(0)); in testSelect()
104 assertEquals(index, cursor.getInt(1)); in testSelect()
194 assertEquals(i, cursor.getInt(0));
195 assertEquals(i, cursor.getInt(1));
217 assertEquals(i, cursor.getInt(0));
218 assertEquals(i, cursor.getInt(1));
247 assertEquals(index, cursor.getInt(0));
446 cursor.getInt(0);
447 cursor.getInt(1);
465 cursor.getInt(0);
[all …]
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
H A DBatterySaverUtilsTest.java95 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enableWithWarning_firstCall_needConfirmationWarning()
118 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enableWithWarning_secondCall_expectUpdateIntent()
141 Secure.getInt(mMockResolver, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, -2)); in testSetPowerSaveMode_enableWithWarning_thirdCall_expectUpdateIntent()
205 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite()
210 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testEnsureAutoBatterysaver_setNewPositiveValue_doNotOverwrite()
220 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion()
226 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testSetAutoBatterySaverTriggerLevel_setSuppressSuggestion()
260 assertThat(Global.getInt(mMockResolver, Global.AUTOMATIC_POWER_SAVE_MODE, -1)) in testSetBatterySaverScheduleMode_setSchedule()
262 assertThat(Global.getInt(mMockResolver, Global.LOW_POWER_MODE_TRIGGER_LEVEL, -1)) in testSetBatterySaverScheduleMode_setSchedule()
267 assertThat(Global.getInt(mMockResolver, Global.AUTOMATIC_POWER_SAVE_MODE, -1)) in testSetBatterySaverScheduleMode_setSchedule()
[all …]
/aosp14/frameworks/base/core/java/android/os/incremental/
H A DIncrementalMetrics.java51 return mData.getInt(IIncrementalService.METRICS_STORAGE_HEALTH_STATUS_CODE, -1); in getStorageHealthStatusCode()
58 return mData.getInt(IIncrementalService.METRICS_DATA_LOADER_STATUS_CODE, -1); in getDataLoaderStatusCode()
79 return mData.getInt(IIncrementalService.METRICS_TOTAL_DELAYED_READS, -1); in getTotalDelayedReads()
86 return mData.getInt(IIncrementalService.METRICS_TOTAL_FAILED_READS, -1); in getTotalFailedReads()
100 return mData.getInt(IIncrementalService.METRICS_LAST_READ_ERROR_UID, -1); in getLastReadErrorUid()
114 return mData.getInt(IIncrementalService.METRICS_LAST_READ_ERROR_NUMBER, -1); in getLastReadErrorNumber()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
H A DBatterySaverUtils.java110 startNth = parser.getInt("start_nth", AUTO_SAVER_SUGGESTION_START_NTH); in Parameters()
111 endNth = parser.getInt("end_nth", AUTO_SAVER_SUGGESTION_END_NTH); in Parameters()
143 Secure.getInt(cr, Secure.LOW_POWER_MANUAL_ACTIVATION_COUNT, 0) + 1; in setPowerSaveMode()
150 && Global.getInt(cr, Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) == 0 in setPowerSaveMode()
151 && Secure.getInt(cr, in setPowerSaveMode()
177 if (Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation()
179 && Secure.getInt(context.getContentResolver(), in maybeShowBatterySaverConfirmation()
234 if (Global.getInt(context.getContentResolver(), Global.LOW_POWER_MODE_TRIGGER_LEVEL, 0) in ensureAutoBatterySaver()
247 final int currentMode = Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in revertScheduleToNoneIfNeeded()
264 final int mode = Settings.Global.getInt(resolver, Global.AUTOMATIC_POWER_SAVE_MODE, in getBatterySaverScheduleKey()
[all …]
/aosp14/frameworks/base/telephony/java/android/telephony/ims/
H A DSipDelegateImsConfiguration.java459 public @IntConfigKey int getInt(@NonNull String key, int defaultValue) { in getInt() method in SipDelegateImsConfiguration
463 return mBundle.getInt(key); in getInt()
541 getInt(KEY_SIP_CONFIG_UE_DEFAULT_PORT_INT, -1)), in toNewConfig()
543 getInt(KEY_SIP_CONFIG_SERVER_DEFAULT_PORT_INT, -1))); in toNewConfig()
574 getInt(KEY_SIP_CONFIG_UE_IPSEC_CLIENT_PORT_INT, -1), in toNewConfig()
575 getInt(KEY_SIP_CONFIG_UE_IPSEC_SERVER_PORT_INT, -1), in toNewConfig()
576 getInt(KEY_SIP_CONFIG_UE_IPSEC_OLD_CLIENT_PORT_INT, -1), in toNewConfig()
577 getInt(KEY_SIP_CONFIG_SERVER_IPSEC_CLIENT_PORT_INT, -1), in toNewConfig()
578 getInt(KEY_SIP_CONFIG_SERVER_IPSEC_SERVER_PORT_INT, -1), in toNewConfig()
579 getInt(KEY_SIP_CONFIG_SERVER_IPSEC_OLD_CLIENT_PORT_INT, -1), in toNewConfig()
[all …]
/aosp14/frameworks/base/graphics/java/android/graphics/fonts/
H A DFontFileUtil.java96 int magicNumber = buffer.getInt(0); in analyzeStyle()
99 if (ttcIndex >= buffer.getInt(8 /* offset to number of fonts in TTC */)) { in analyzeStyle()
102 fontFileOffset = buffer.getInt( in analyzeStyle()
105 int sfntVersion = buffer.getInt(fontFileOffset); in analyzeStyle()
116 if (buffer.getInt(tableOffset) == OS2_TABLE_TAG) { in analyzeStyle()
117 os2TableOffset = buffer.getInt(tableOffset + 8 /* offset to the table */); in analyzeStyle()
193 int magicNumber = copied.getInt(0); in isCollectionFont()
/aosp14/frameworks/base/core/java/android/ddm/
H A DDdmHandleProfiling.java107 int bufferSize = in.getInt(); in handleMPRS()
108 int flags = in.getInt(); in handleMPRS()
109 int len = in.getInt(); in handleMPRS()
149 int bufferSize = in.getInt(); in handleMPSS()
150 int flags = in.getInt(); in handleMPSS()
202 int bufferSize = in.getInt(); in handleSPSS()
203 int flags = in.getInt(); in handleSPSS()
204 int interval = in.getInt(); in handleSPSS()
H A DDdmHandleViewDebug.java123 int op = in.getInt(); in handleChunk()
191 int viewRootNameLength = in.getInt(); in getRootView()
204 viewLength = in.getInt(); in getTargetView()
223 boolean skipChildren = in.getInt() > 0; in dumpHierarchy()
224 boolean includeProperties = in.getInt() > 0; in dumpHierarchy()
356 int l = in.getInt(); in invokeViewMethod()
365 int nArgs = in.getInt(); in invokeViewMethod()
401 int l = in.getInt(); in setLayoutParameter()
403 int value = in.getInt(); in setLayoutParameter()
462 int arrayLength = in.getInt(); in deserializeMethodParameters()
[all …]
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A 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()
/aosp14/frameworks/base/telephony/java/android/telephony/
H A DSmsCbMessage.java631 int geoScope = cursor.getInt( in createFromCursor()
654 lac = cursor.getInt(lacColumn); in createFromCursor()
662 cid = cursor.getInt(cidColumn); in createFromCursor()
674 int warningType = cursor.getInt(etwsWarningTypeColumn); in createFromCursor()
684 int messageClass = cursor.getInt(cmasMessageClassColumn); in createFromCursor()
689 cmasCategory = cursor.getInt(cmasCategoryColumn); in createFromCursor()
697 responseType = cursor.getInt(cmasResponseTypeColumn); in createFromCursor()
705 severity = cursor.getInt(cmasSeverityColumn); in createFromCursor()
713 urgency = cursor.getInt(cmasUrgencyColumn); in createFromCursor()
721 certainty = cursor.getInt(cmasCertaintyColumn); in createFromCursor()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/colormodel/
H A DCamTest.java119 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap()
127 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap()
135 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap()
143 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap()
151 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap()
159 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap()
167 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRandomGreenFromGamutMap()
173 int color = Cam.getInt(309.0f, 40.0f, 70.0f); in gamutMapArbitraryHCL()
219 int reconstructedFromHct = Cam.getInt(hct.getHue(), hct.getChroma(), in testHctReflexivity()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
H A DBackupManagerMonitorEventSenderTest.java128 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
129 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)).isEqualTo(2); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly()
149 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
154 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly()
177 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)).isEqualTo(1); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
183 assertThat(eventBundle.getInt("key1")).isEqualTo(4); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong()
304 assertThat(eventBundle.getInt(EXTRA_LOG_OPERATION_TYPE)) in assertCorrectBundleSentToMonitor()
306 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_ID)) in assertCorrectBundleSentToMonitor()
308 assertThat(eventBundle.getInt(EXTRA_LOG_EVENT_CATEGORY)) in assertCorrectBundleSentToMonitor()
391 assertThat(result.getInt("key")).isEqualTo(1); in putMonitoringExtraInt_bundleExists_fillsBundleCorrectly()
[all …]
/aosp14/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
H A 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()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DReviewNotificationPermissionsReceiverTest.java87 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_remindMeLater_firstTime()
112 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_remindMeLater_laterTimes()
133 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_dismiss()
157 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_notificationCanceled_firstSwipe()
181 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_notificationCanceled_secondSwipe()
202 Settings.Global.getInt(mContext.getContentResolver(), in testReceive_notificationCanceled_fromDismiss()
/aosp14/frameworks/base/core/tests/coretests/src/android/database/
H A DRedactingCursorTest.java45 assertEquals(10, redacting.getInt(1)); in testMissing()
49 assertEquals(20, redacting.getInt(1)); in testMissing()
60 assertEquals(10, redacting.getInt(1)); in testSingle()
71 assertEquals(20, redacting.getInt(1)); in testSingle()
/aosp14/frameworks/base/telephony/java/android/telephony/cdma/
H A DCdmaCellLocation.java82 this.mBaseStationId = bundle.getInt("baseStationId", mBaseStationId); in CdmaCellLocation()
83 this.mBaseStationLatitude = bundle.getInt("baseStationLatitude", mBaseStationLatitude); in CdmaCellLocation()
84 this.mBaseStationLongitude = bundle.getInt("baseStationLongitude", mBaseStationLongitude); in CdmaCellLocation()
85 this.mSystemId = bundle.getInt("systemId", mSystemId); in CdmaCellLocation()
86 this.mNetworkId = bundle.getInt("networkId", mNetworkId); in CdmaCellLocation()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DSystemUpdateManagerService.java93 int status = infoBundle.getInt(KEY_STATUS, STATUS_UNKNOWN); in updateSystemUpdateInfo()
150 int version = loadedBundle.getInt(KEY_VERSION, -1); in loadSystemUpdateInfoLocked()
156 int lastUid = loadedBundle.getInt(KEY_UID, -1); in loadSystemUpdateInfoLocked()
162 int lastBootCount = loadedBundle.getInt(KEY_BOOT_COUNT, -1); in loadSystemUpdateInfoLocked()
174 int lastStatus = infoBundle.getInt(KEY_STATUS, STATUS_UNKNOWN); in loadSystemUpdateInfoLocked()
198 mLastStatus = infoBundle.getInt(KEY_STATUS); in saveSystemUpdateInfoLocked()
253 return Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.BOOT_COUNT, 0); in getBootCount()

12345678910>>...37