/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyValueListParserTest.java | 40 private KeyValueListParser mParser; field in KeyValueListParserTest 44 mParser = new KeyValueListParser(','); in setUp() 49 mParser.setString(null); in testParseIntArrayNullInput() 50 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayNullInput() 56 mParser.setString("test="); in testParseIntArrayEmptyInput() 57 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayEmptyInput() 63 mParser.setString("foo=bar,test=100:200,baz=123"); in testParseIntArrayNullKey() 64 int[] result = mParser.getIntArray(null, DEFAULT); in testParseIntArrayNullKey() 70 mParser.setString("foo=bar,test=100:200,baz=123"); in testParseIntArrayComplexInput() 71 int[] result = mParser.getIntArray("test", DEFAULT); in testParseIntArrayComplexInput() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeXmlBlockParser.java | 43 @NonNull private final XmlPullParser mParser; field in BridgeXmlBlockParser 67 mParser = parser; in BridgeXmlBlockParser() 82 return mParser; in getParser() 91 if (mParser instanceof ILayoutPullParser) { in getViewCookie() 92 return ((ILayoutPullParser)mParser).getViewCookie(); in getViewCookie() 137 mParser.setInput(in); in setInput() 143 mParser.setInput(inputStream, inputEncoding); in setInput() 165 return mParser.getNamespace(prefix); in getNamespace() 190 return mParser.getDepth(); in getDepth() 195 return mParser.getText(); in getText() [all …]
|
D | XmlPullParserResolver.java | 35 private final XmlPullParser mParser; field in XmlPullParserResolver 41 mParser = parser; in XmlPullParserResolver() 48 String result = mParser.getNamespace(namespacePrefix); in prefixToUri()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerConstants.java | 259 private final KeyValueListParser mParser = new KeyValueListParser(','); field in ActivityManagerConstants 389 mParser.setString(setting); in updateConstants() 395 BACKGROUND_SETTLE_TIME = mParser.getLong(KEY_BACKGROUND_SETTLE_TIME, in updateConstants() 397 FGSERVICE_MIN_SHOWN_TIME = mParser.getLong(KEY_FGSERVICE_MIN_SHOWN_TIME, in updateConstants() 399 FGSERVICE_MIN_REPORT_TIME = mParser.getLong(KEY_FGSERVICE_MIN_REPORT_TIME, in updateConstants() 401 FGSERVICE_SCREEN_ON_BEFORE_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_BEFORE_TIME, in updateConstants() 403 FGSERVICE_SCREEN_ON_AFTER_TIME = mParser.getLong(KEY_FGSERVICE_SCREEN_ON_AFTER_TIME, in updateConstants() 405 CONTENT_PROVIDER_RETAIN_TIME = mParser.getLong(KEY_CONTENT_PROVIDER_RETAIN_TIME, in updateConstants() 407 GC_TIMEOUT = mParser.getLong(KEY_GC_TIMEOUT, in updateConstants() 409 GC_MIN_INTERVAL = mParser.getLong(KEY_GC_MIN_INTERVAL, in updateConstants() [all …]
|
D | BroadcastConstants.java | 72 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BroadcastConstants 106 synchronized (mParser) { in updateConstants() 108 mParser.setString(Settings.Global.getString(mResolver, mSettingsKey)); in updateConstants() 115 TIMEOUT = mParser.getLong(KEY_TIMEOUT, TIMEOUT); in updateConstants() 116 SLOW_TIME = mParser.getLong(KEY_SLOW_TIME, SLOW_TIME); in updateConstants() 117 DEFERRAL = mParser.getLong(KEY_DEFERRAL, DEFERRAL); in updateConstants() 118 DEFERRAL_DECAY_FACTOR = mParser.getFloat(KEY_DEFERRAL_DECAY_FACTOR, in updateConstants() 120 DEFERRAL_FLOOR = mParser.getLong(KEY_DEFERRAL_FLOOR, DEFERRAL_FLOOR); in updateConstants() 121 ALLOW_BG_ACTIVITY_START_TIMEOUT = mParser.getLong(KEY_ALLOW_BG_ACTIVITY_START_TIMEOUT, in updateConstants() 130 synchronized (mParser) { in dump()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | AlwaysOnDisplayPolicy.java | 114 private final KeyValueListParser mParser; field in AlwaysOnDisplayPolicy 121 mParser = new KeyValueListParser(','); in AlwaysOnDisplayPolicy() 153 mParser.setString(value); in update() 158 proxScreenOffDelayMs = mParser.getLong(KEY_PROX_SCREEN_OFF_DELAY_MS, in update() 160 proxCooldownTriggerMs = mParser.getLong(KEY_PROX_COOLDOWN_TRIGGER_MS, in update() 162 proxCooldownPeriodMs = mParser.getLong(KEY_PROX_COOLDOWN_PERIOD_MS, in update() 164 wallpaperFadeOutDuration = mParser.getLong(KEY_WALLPAPER_FADE_OUT_MS, in update() 166 wallpaperVisibilityDuration = mParser.getLong(KEY_WALLPAPER_VISIBILITY_MS, in update() 168 screenBrightnessArray = mParser.getIntArray(KEY_SCREEN_BRIGHTNESS_ARRAY, in update() 171 dimmingScrimArray = mParser.getIntArray(KEY_DIMMING_SCRIM_ARRAY, in update()
|
/frameworks/base/core/java/android/util/ |
D | XmlPullAttributes.java | 31 mParser = parser; in XmlPullAttributes() 35 return mParser.getAttributeCount(); in getAttributeCount() 39 return mParser.getAttributeNamespace(index); in getAttributeNamespace() 43 return mParser.getAttributeName(index); in getAttributeName() 47 return mParser.getAttributeValue(index); in getAttributeValue() 51 return mParser.getAttributeValue(namespace, name); in getAttributeValue() 55 return mParser.getPositionDescription(); in getPositionDescription() 152 /*package*/ XmlPullParser mParser; field in XmlPullAttributes
|
D | KeyValueSettingObserver.java | 42 private final KeyValueListParser mParser = new KeyValueListParser(','); field in KeyValueSettingObserver 59 update(mParser); in start() 77 mParser.setString(setting); in setParserValue() 94 update(mParser); in onChange()
|
/frameworks/base/wifi/tests/src/android/net/wifi/hotspot2/omadm/ |
D | XMLParserTest.java | 37 XMLParser mParser; field in XMLParserTest 53 mParser = new XMLParser(); in setUp() 58 mParser.parse(null); in parseNullXML() 63 mParser.parse(new String()); in parseEmptyXML() 69 mParser.parse(malformedXmlTree); in parseMalformedXML() 81 XMLNode actualRoot = mParser.parse(xmlTree); in parseValidXMLTree()
|
/frameworks/base/media/java/android/media/ |
D | TtmlRenderer.java | 360 private XmlPullParser mParser; field in TtmlParser 377 mParser = null; in parse() 386 mParser = factory.newPullParser(); in loadParser() 388 mParser.setInput(in); in loadParser() 404 int eventType = mParser.getEventType(); in parseTtml() 408 if (!isSupportedTag(mParser.getName())) { in parseTtml() 409 Log.w(TAG, "Unsupported tag " + mParser.getName() + " is ignored."); in parseTtml() 420 String text = TtmlUtils.applyDefaultSpacePolicy(mParser.getText()); in parseTtml() 428 if (mParser.getName().equals(TtmlUtils.TAG_P)) { in parseTtml() 430 } else if (mParser.getName().equals(TtmlUtils.TAG_TT)) { in parseTtml() [all …]
|
/frameworks/av/media/extractors/flac/ |
D | FLACExtractor.cpp | 77 FLACParser *mParser; member in android::FLACSource 657 mParser(new FLACParser(mDataSource, outputFloat, 0, mTrackMetadata)), in FLACSource() 658 mInitCheck(mParser->initCheck()), in FLACSource() 670 delete mParser; in ~FLACSource() 678 mParser->allocateBuffers(mBufferGroup); in start() 689 mParser->releaseBuffers(); in stop() 718 sample = (seekTimeUs * mParser->getSampleRate()) / 1000000LL; in read() 719 if (sample >= mParser->getTotalSamples()) { in read() 720 sample = mParser->getTotalSamples(); in read() 723 buffer = mParser->readBuffer(sample); in read() [all …]
|
D | FLACExtractor.h | 46 FLACParser *mParser; variable
|
/frameworks/av/media/libstagefright/mpeg2ts/test/ |
D | Mpeg2tsUnitTest.cpp | 53 : mInputBuffer(nullptr), mSource(nullptr), mFpInput(nullptr), mParser(nullptr) {} in Mpeg2tsUnitTest() 87 mParser = new ATSParser(); in SetUp() 88 ASSERT_NE(mParser, nullptr) << "Unable to create ATS parser!"; in SetUp() 103 ATSParser *mParser; member in Mpeg2tsUnitTest 130 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in TEST_P() 135 if (mParser->hasSource(mediaType[i])) { in TEST_P() 159 if (mParser->hasSource(currentMediaType)) { in TEST_P() 186 sp<AnotherPacketSource> packetSource = mParser->getSource(currentMediaType); in TEST_P()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ParallelPackageParserTest.java | 41 private ParallelPackageParser mParser; field in ParallelPackageParserTest 45 mParser = new TestParallelPackageParser(); in setUp() 54 mParser.submit(file, 0); in test() 59 ParallelPackageParser.ParseResult result = mParser.take(); in test()
|
/frameworks/av/media/libstagefright/omx/1.0/ |
D | Omx.cpp | 45 mParser() { in Omx() 46 (void)mParser.parseXmlFilesInSearchDirs(); in Omx() 47 (void)mParser.parseXmlPath(mParser.defaultProfilingResultsXmlPath); in Omx() 119 const auto& codec = mParser.getCodecMap().find(name.c_str()); in allocateNode() 120 if (codec == mParser.getCodecMap().cend()) { in allocateNode()
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 134 private final KeyValueListParser mParser = new KeyValueListParser(','); field in BinderCallsStatsService.SettingsObserver 164 mParser.setString(Settings.Global.getString(mContext.getContentResolver(), in onChange() 169 mBinderCallsStats.setDetailedTracking(mParser.getBoolean( in onChange() 171 mBinderCallsStats.setSamplingInterval(mParser.getInt( in onChange() 174 mBinderCallsStats.setMaxBinderCallStats(mParser.getInt( in onChange() 178 mParser.getBoolean(SETTINGS_TRACK_SCREEN_INTERACTIVE_KEY, in onChange() 181 mParser.getBoolean(SETTINGS_TRACK_DIRECT_CALLING_UID_KEY, in onChange() 186 mParser.getBoolean(SETTINGS_ENABLED_KEY, BinderCallsStats.ENABLED_DEFAULT); in onChange()
|
D | DeviceIdleController.java | 1138 private final KeyValueListParser mParser = new KeyValueListParser(','); field in DeviceIdleController.Constants 1158 mParser.setString(Settings.Global.getString(mResolver, in updateConstants() 1166 LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT = mParser.getDurationMillis( in updateConstants() 1169 LIGHT_PRE_IDLE_TIMEOUT = mParser.getDurationMillis(KEY_LIGHT_PRE_IDLE_TIMEOUT, in updateConstants() 1171 LIGHT_IDLE_TIMEOUT = mParser.getDurationMillis(KEY_LIGHT_IDLE_TIMEOUT, in updateConstants() 1173 LIGHT_IDLE_FACTOR = mParser.getFloat(KEY_LIGHT_IDLE_FACTOR, in updateConstants() 1175 LIGHT_MAX_IDLE_TIMEOUT = mParser.getDurationMillis(KEY_LIGHT_MAX_IDLE_TIMEOUT, in updateConstants() 1177 LIGHT_IDLE_MAINTENANCE_MIN_BUDGET = mParser.getDurationMillis( in updateConstants() 1180 LIGHT_IDLE_MAINTENANCE_MAX_BUDGET = mParser.getDurationMillis( in updateConstants() 1183 MIN_LIGHT_MAINTENANCE_TIME = mParser.getDurationMillis( in updateConstants() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/report/ |
D | ReportCanvas.java | 27 private final UsbDescriptorParser mParser; field in ReportCanvas 35 mParser = parser; in ReportCanvas() 39 return mParser; in getParser()
|
/frameworks/av/media/extractors/mpeg2/ |
D | MPEG2TSExtractor.cpp | 237 mParser(new ATSParser), in MPEG2TSExtractor() 301 status_t err = mParser->setMediaCas(cas); in setMediaCas() 343 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::VIDEO); in init() 360 sp<AnotherPacketSource> impl = mParser->getSource(ATSParser::AUDIO); in init() 434 sp<AnotherPacketSource> impl = mParser->getSource(type); in init() 472 mParser->signalEOS(ERROR_END_OF_STREAM); in feedMore() 479 status_t err = mParser->feedTSPacket(packet, kTSPacketSize, &event); in feedMore() 535 int64_t timeAnchorUs = mParser->getFirstPTSTimeUs(); in estimateDurationsFromTimesUsAtEnd() 567 sp<AnotherPacketSource> src = mParser->getSource(type); in estimateDurationsFromTimesUsAtEnd() 595 sp<AnotherPacketSource> src = mParser->getSource(t); in estimateDurationsFromTimesUsAtEnd() [all …]
|
/frameworks/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTest.cpp | 78 MediaCodecsXmlParser mParser; member in XMLParseTest 287 mParser.parseXmlPath(inputFileName); in TEST_F() 288 for (const MediaCodecsXmlParser::Codec &mcodec : mParser.getCodecMap()) { in TEST_F() 333 mParser.parseXmlPath(inputFileName); in TEST_F() 335 for (auto &mRole : mParser.getRoleMap()) { in TEST_F() 372 mParser.parseXmlPath(inputFileName); in TEST_F() 373 const auto serviceAttributeMap = mParser.getServiceAttributeMap(); in TEST_F()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | AppStandbyController.java | 1886 private final KeyValueListParser mParser = new KeyValueListParser(','); field in AppStandbyController.SettingsObserver 1922 mParser.setString(mInjector.getAppIdleSettings()); in updateSettings() 1931 mAppIdleParoleIntervalMillis = mParser.getDurationMillis(KEY_PAROLE_INTERVAL, in updateSettings() 1935 mAppIdleParoleWindowMillis = mParser.getDurationMillis(KEY_PAROLE_WINDOW, in updateSettings() 1938 mAppIdleParoleDurationMillis = mParser.getDurationMillis(KEY_PAROLE_DURATION, in updateSettings() 1941 String screenThresholdsValue = mParser.getString(KEY_SCREEN_TIME_THRESHOLDS, null); in updateSettings() 1945 String elapsedThresholdsValue = mParser.getString(KEY_ELAPSED_TIME_THRESHOLDS, in updateSettings() 1951 mStrongUsageTimeoutMillis = mParser.getDurationMillis( in updateSettings() 1954 mNotificationSeenTimeoutMillis = mParser.getDurationMillis( in updateSettings() 1957 mSystemUpdateUsageTimeoutMillis = mParser.getDurationMillis( in updateSettings() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSnooze.java | 94 private KeyValueListParser mParser; field in NotificationSnooze 107 mParser = new KeyValueListParser(','); in NotificationSnooze() 118 mParser = parser; in setKeyValueListParser() 229 mParser.setString(config); in getDefaultSnoozeOptions() 234 final int defaultSnooze = mParser.getInt(KEY_DEFAULT_SNOOZE, in getDefaultSnoozeOptions() 236 final int[] snoozeTimes = mParser.getIntArray(KEY_OPTIONS, in getDefaultSnoozeOptions()
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | JobSchedulerService.java | 635 private final KeyValueListParser mParser = new KeyValueListParser(','); field in JobSchedulerService.Constants 639 mParser.setString(value); in updateConstantsLocked() 646 MIN_IDLE_COUNT = mParser.getInt(KEY_MIN_IDLE_COUNT, in updateConstantsLocked() 648 MIN_CHARGING_COUNT = mParser.getInt(KEY_MIN_CHARGING_COUNT, in updateConstantsLocked() 650 MIN_BATTERY_NOT_LOW_COUNT = mParser.getInt(KEY_MIN_BATTERY_NOT_LOW_COUNT, in updateConstantsLocked() 652 MIN_STORAGE_NOT_LOW_COUNT = mParser.getInt(KEY_MIN_STORAGE_NOT_LOW_COUNT, in updateConstantsLocked() 654 MIN_CONNECTIVITY_COUNT = mParser.getInt(KEY_MIN_CONNECTIVITY_COUNT, in updateConstantsLocked() 656 MIN_CONTENT_COUNT = mParser.getInt(KEY_MIN_CONTENT_COUNT, in updateConstantsLocked() 658 MIN_READY_JOBS_COUNT = mParser.getInt(KEY_MIN_READY_JOBS_COUNT, in updateConstantsLocked() 660 HEAVY_USE_FACTOR = mParser.getFloat(KEY_HEAVY_USE_FACTOR, in updateConstantsLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | QuotaController.java | 1997 private final KeyValueListParser mParser = new KeyValueListParser(','); field in QuotaController.QcConstants 2211 mParser.setString(constants); in onChange() 2217 ALLOWED_TIME_PER_PERIOD_MS = mParser.getDurationMillis( in onChange() 2219 IN_QUOTA_BUFFER_MS = mParser.getDurationMillis( in onChange() 2221 WINDOW_SIZE_ACTIVE_MS = mParser.getDurationMillis( in onChange() 2223 WINDOW_SIZE_WORKING_MS = mParser.getDurationMillis( in onChange() 2225 WINDOW_SIZE_FREQUENT_MS = mParser.getDurationMillis( in onChange() 2227 WINDOW_SIZE_RARE_MS = mParser.getDurationMillis( in onChange() 2229 MAX_EXECUTION_TIME_MS = mParser.getDurationMillis( in onChange() 2231 MAX_JOB_COUNT_ACTIVE = mParser.getInt( in onChange() [all …]
|
/frameworks/layoutlib/bridge/src/android/util/ |
D | BridgeXmlPullAttributes.java | 70 mParser, context.getLayoutlibCallback().getImplicitNamespaces()); in BridgeXmlPullAttributes() 101 String ns = mParser.getAttributeNamespace(index); in getAttributeNameResource() 270 mParser.getAttributeNamespace(index), getAttributeName(index), defaultValue); in getAttributeIntValue()
|