/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowserUtils.java | 32 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/services/core/java/com/android/server/locksettings/ |
D | VersionedPasswordMetrics.java | 73 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/ |
D | TableHelper.java | 72 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 …]
|
D | SQLiteDatabasePerfTest.java | 87 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/apex/appsearch/service/java/com/android/server/appsearch/ |
D | AppSearchConfig.java | 230 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_DEFAULT, DEFAULT_SAMPLING_INTERVAL); in getCachedSamplingIntervalDefault() 242 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_BATCH_CALL_STATS, in getCachedSamplingIntervalForBatchCallStats() 255 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_PUT_DOCUMENT_STATS, in getCachedSamplingIntervalForPutDocumentStats() 268 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_INITIALIZE_STATS, in getCachedSamplingIntervalForInitializeStats() 281 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_SEARCH_STATS, in getCachedSamplingIntervalForSearchStats() 294 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_GLOBAL_SEARCH_STATS, in getCachedSamplingIntervalForGlobalSearchStats() 307 return mBundleLocked.getInt(KEY_SAMPLING_INTERVAL_FOR_OPTIMIZE_STATS, in getCachedSamplingIntervalForOptimizeStats() 316 return mBundleLocked.getInt(KEY_LIMIT_CONFIG_MAX_DOCUMENT_SIZE_BYTES, in getCachedLimitConfigMaxDocumentSizeBytes() 325 return mBundleLocked.getInt(KEY_LIMIT_CONFIG_MAX_DOCUMENT_COUNT, in getCachedLimitConfigMaxDocumentCount() 339 return mBundleLocked.getInt(KEY_BYTES_OPTIMIZE_THRESHOLD, in getCachedBytesOptimizeThreshold() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtilsTest.java | 78 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/core/tests/coretests/src/android/app/appsearch/external/app/ |
D | SearchSpecTest.java | 44 assertThat(bundle.getInt(SearchSpec.TERM_MATCH_TYPE_FIELD)) in testGetBundle() 52 assertThat(bundle.getInt(SearchSpec.SNIPPET_COUNT_FIELD)).isEqualTo(5); in testGetBundle() 53 assertThat(bundle.getInt(SearchSpec.SNIPPET_COUNT_PER_PROPERTY_FIELD)).isEqualTo(10); in testGetBundle() 54 assertThat(bundle.getInt(SearchSpec.MAX_SNIPPET_FIELD)).isEqualTo(15); in testGetBundle() 55 assertThat(bundle.getInt(SearchSpec.NUM_PER_PAGE_FIELD)).isEqualTo(42); in testGetBundle() 56 assertThat(bundle.getInt(SearchSpec.ORDER_FIELD)).isEqualTo(SearchSpec.ORDER_ASCENDING); in testGetBundle() 57 assertThat(bundle.getInt(SearchSpec.RANKING_STRATEGY_FIELD)) in testGetBundle()
|
/frameworks/base/core/java/android/os/incremental/ |
D | IncrementalMetrics.java | 51 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()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontFileUtil.java | 96 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()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | SipDelegateImsConfiguration.java | 459 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() 548 builder.setMaxUdpPayloadSizeBytes(getInt(KEY_SIP_CONFIG_MAX_PAYLOAD_SIZE_ON_UDP_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() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | BatterySaverUtils.java | 101 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/ |
D | DdmHandleProfiling.java | 107 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()
|
D | DdmHandleViewDebug.java | 118 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/ |
D | SQLiteGlobal.java | 80 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/java/android/hardware/camera2/marshal/impl/ |
D | MarshalQueryableHighSpeedVideoConfiguration.java | 57 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()
|
D | MarshalQueryableRecommendedStreamConfiguration.java | 56 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()
|
D | MarshalQueryableMeteringRectangle.java | 58 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()
|
D | MarshalQueryableStreamConfiguration.java | 54 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()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SmsCbMessage.java | 631 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | GlobalSettingsHelper.java | 34 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()
|
D | NitzStateMachine.java | 138 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/ |
D | BackupManagerMonitorUtilsTest.java | 87 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/ |
D | ZipEntryReader.java | 52 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/tests/coretests/src/android/colormodel/ |
D | CamTest.java | 116 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRedFromGamutMap() 124 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getGreenFromGamutMap() 132 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlueFromGamutMap() 140 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getWhiteFromGamutMap() 148 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getBlackFromGamutMap() 156 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getMidgrayFromGamutMap() 164 int color = Cam.getInt(cam.getHue(), cam.getChroma(), CamUtils.lstarFromInt(colorToTest)); in getRandomGreenFromGamutMap() 170 int color = Cam.getInt(309.0f, 40.0f, 70.0f); in gamutMapArbitraryHCL()
|
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/ |
D | SparseInputStream.java | 74 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()
|