/frameworks/av/media/libstagefright/xmlparser/test/ |
D | XMLParserTest.cpp | 45 vector<pair<string, string>> attributeMap; 62 vector<pair<string, string>> domain, vector<string> aliases, 66 string codecName, vector<pair<string, string>> domain); 73 vector<pair<string, string>> attrMap); 94 pair<string, string>("feature-feature1", "feature1Val"), in setUpDatabase() 95 pair<string, string>("feature-feature2", "0"), in setUpDatabase() 96 pair<string, string>("feature-feature3", "0"), in setUpDatabase() 101 {pair<string, string>("feature-feature1", "feature1Val")}, {}, ""); in setUpDatabase() 108 {pair<string, string>("variant1:::variant1Limit1-range", in setUpDatabase() 110 pair<string, string>("variant1:::variant1Limit2-range", in setUpDatabase() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | PathMeasure.cpp | 57 PathMeasurePair* pair; in create() local 59 pair = new PathMeasurePair(*path, forceClosed); in create() 61 pair = new PathMeasurePair; in create() 62 return reinterpret_cast<jlong>(pair); in create() 67 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in setPath() local 72 pair->fPath.reset(); in setPath() 74 pair->fPath = *path; in setPath() 76 pair->fMeasure.setPath(&pair->fPath, forceClosed); in setPath() 80 PathMeasurePair* pair = reinterpret_cast<PathMeasurePair*>(pairHandle); in getLength() local 81 return static_cast<jfloat>(SkScalarToFloat(pair->fMeasure.getLength())); in getLength() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/apppairs/ |
D | AppPairsController.java | 79 public boolean pair(int taskId1, int taskId2) { in pair() method in AppPairsController 85 return pair(task1, task2); in pair() 88 public boolean pair(ActivityManager.RunningTaskInfo task1, in pair() method in AppPairsController 97 final AppPair pair = mPairsPool.acquire(); in pairInner() local 98 if (!pair.pair(task1, task2)) { in pairInner() 99 mPairsPool.release(pair); in pairInner() 103 mActiveAppPairs.put(pair.getRootTaskId(), pair); in pairInner() local 104 return pair; in pairInner() 112 AppPair pair = mActiveAppPairs.get(taskId); in unpair() local 113 if (pair == null) { in unpair() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/apppairs/ |
D | AppPairTests.java | 85 final AppPair pair = mController.pairInner(task1, task2); in testContains() local 86 assertThat(pair.contains(task1.taskId)).isTrue(); in testContains() 87 assertThat(pair.contains(task2.taskId)).isTrue(); in testContains() 89 pair.unpair(); in testContains() 90 assertThat(pair.contains(task1.taskId)).isFalse(); in testContains() 91 assertThat(pair.contains(task2.taskId)).isFalse(); in testContains() 100 final AppPair pair = mController.pairInner(task1, task2); in testVanishUnpairs() local 101 assertThat(pair.contains(task1.taskId)).isTrue(); in testVanishUnpairs() 102 assertThat(pair.contains(task2.taskId)).isTrue(); in testVanishUnpairs() 104 pair.onTaskVanished(task1); in testVanishUnpairs() [all …]
|
D | AppPairsControllerTests.java | 78 final AppPair pair = mController.pairInner(task1, task2); in testPairUnpair() local 79 assertThat(pair.contains(task1.taskId)).isTrue(); in testPairUnpair() 80 assertThat(pair.contains(task2.taskId)).isTrue(); in testPairUnpair() 84 assertThat(pair.contains(task1.taskId)).isFalse(); in testPairUnpair() 85 assertThat(pair.contains(task2.taskId)).isFalse(); in testPairUnpair() 95 final AppPair pair = mController.pairInner(task1, task2); in testUnpair_DontReleaseToPool() local 96 assertThat(pair.contains(task1.taskId)).isTrue(); in testUnpair_DontReleaseToPool() 97 assertThat(pair.contains(task2.taskId)).isTrue(); in testUnpair_DontReleaseToPool() 100 assertThat(pair.contains(task1.taskId)).isFalse(); in testUnpair_DontReleaseToPool() 101 assertThat(pair.contains(task2.taskId)).isFalse(); in testUnpair_DontReleaseToPool()
|
/frameworks/base/tools/aapt2/util/ |
D | ImmutableMap.h | 33 typename std::vector<std::pair<TKey, TValue>>::const_iterator; 39 std::initializer_list<std::pair<TKey, TValue>> list) { in CreatePreSorted() 41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end())); in CreatePreSorted() 45 std::initializer_list<std::pair<TKey, TValue>> list) { in CreateAndSort() 46 std::vector<std::pair<TKey, TValue>> data(list.begin(), list.end()); in CreateAndSort() 54 auto cmp = [](const std::pair<TKey, TValue>& candidate, in find() 74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap() 77 std::vector<std::pair<TKey, TValue>> data_;
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicEncoderInfoManager.h | 46 std::size_t operator () (const std::pair<int32_t,int32_t> &p) const { in operator() 51 typedef std::unordered_map<std::pair<int32_t, int32_t>, 52 std::pair<int32_t, int32_t>, SizePairHash> FrameRateMaps; 60 std::pair<int32_t, int32_t>* minSize, std::pair<int32_t, int32_t>* maxSize, 68 std::pair<int32_t, int32_t> mMinSizeHeic, mMaxSizeHeic; 69 std::pair<int32_t, int32_t> mMinSizeHevc, mMaxSizeHevc;
|
/frameworks/compile/mclinker/lib/Object/ |
D | ObjectBuilder.cpp | 40 SectionMap::const_mapping pair = in CreateSection() local 43 std::string output_name = (pair.first == NULL) ? pName : pair.first->name(); in CreateSection() 57 SectionMap::mapping pair = m_Module.getScript().sectionMap().find( in MergeSection() local 60 if (pair.first != NULL && pair.first->isDiscard()) { in MergeSection() 66 (pair.first == NULL) ? pInputSection.name() : pair.first->name(); in MergeSection() 106 if (pair.first != NULL) { in MergeSection() 107 assert(pair.second != NULL); in MergeSection() 108 data = pair.second->getSection()->getSectionData(); in MergeSection() 111 if (pair.first->prolog().hasSubAlign()) { in MergeSection() 112 pInputSection.setAlign(pair.second->getSection()->align()); in MergeSection()
|
/frameworks/base/tools/aapt/tests/ |
D | FileFinder_test.cpp | 17 using std::pair; 33 Vector< pair<String8,time_t> > data; in main() 34 data.push( pair<String8,time_t>(String8("hello.png"),3) ); in main() 35 data.push( pair<String8,time_t>(String8("world.PNG"),3) ); in main() 36 data.push( pair<String8,time_t>(String8("foo.pNg"),3) ); in main() 38 data.push( pair<String8,time_t>(String8("hello.jpg"),3) ); in main() 39 data.push( pair<String8,time_t>(String8(".hidden.png"),3)); in main()
|
/frameworks/native/cmds/lshal/ |
D | DebugCommand.cpp | 60 auto pair = splitFirst(mInterfaceName, '/'); in main() local 63 … if (!FQName::parse(pair.first, &fqName) || fqName.isIdentifier() || !fqName.isFullyQualified()) { in main() 64 mLshal.err() << "Invalid fully-qualified name '" << pair.first << "'\n\n"; in main() 69 pair.first, pair.second.empty() ? "default" : pair.second, mOptions, in main()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | SipMessageParsingUtils.java | 150 String[] pair = param.split(PARAM_KEY_VALUE_SEPARATOR); in getParameterValue() local 151 if (pair.length < 2) { in getParameterValue() 155 if (pair.length > 2) { in getParameterValue() 157 "getParameterValue: unexpected parameter" + Arrays.toString(pair)); in getParameterValue() 160 pair[0] = pair[0].trim(); in getParameterValue() 161 pair[1] = pair[1].trim(); in getParameterValue() 162 if (parameterKey.equalsIgnoreCase(pair[0])) { in getParameterValue() 163 return pair[1]; in getParameterValue() 359 String[] pair = line.split(HEADER_KEY_VALUE_SEPARATOR, 2); in parseHeaders() local 360 if (pair.length < 2) { in parseHeaders() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | TileQueryHelper.java | 152 TilePair pair = new TilePair(); in TileCollector() local 153 pair.mTile = tile; in TileCollector() 154 mQSTileList.add(pair); in TileCollector() 168 for (TilePair pair: mQSTileList) { in startListening() 169 pair.mTile.addCallback(this); in startListening() 170 pair.mTile.setListening(this, true); in startListening() 172 pair.mTile.refreshState(); in startListening() 180 for (TilePair pair: mQSTileList) { in onStateChanged() 181 if (!pair.mReady && pair.mTile.isTileReady()) { in onStateChanged() 182 pair.mTile.removeCallback(this); in onStateChanged() [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | remote_method_tests.cpp | 175 const std::vector<std::pair<std::string, int>>&)); 177 std::pair<int, BufferWrapper<std::uint8_t*>>( 297 const std::vector<std::pair<std::string, int>>& file_specs) { in OpenFiles() 493 Message&, const std::vector<std::pair<std::string, int>>& file_specs) { in OnOpenFiles() 505 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> OnReadFile( in OnReadFile() 507 std::pair<int, BufferWrapper<std::vector<std::uint8_t>>> return_value; in OnReadFile() 793 (IsConvertible<std::pair<int, float>, std::pair<int, float>>::value)); in TEST() 795 (IsConvertible<std::pair<int, float>, std::pair<float, float>>::value)); in TEST() 797 (IsConvertible<std::pair<int, float>, std::pair<float, int>>::value)); in TEST() 800 EXPECT_TRUE((IsConvertible<std::pair<std::pair<int, float>, float>, in TEST() [all …]
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | BufferUtils.cpp | 73 std::pair<bool, uint64_t> BufferRecords::getBufferId( in getBufferId() 167 for (const auto& pair : bIdMap) { in verifyBufferIds() local 168 internalBufIds.push_back(pair.second); in verifyBufferIds() 183 std::vector<std::pair<int32_t, int32_t>>* out) { in getInflightBufferKeys() 187 for (auto& pair : mInflightBufferMap) { in getInflightBufferKeys() local 188 uint64_t key = pair.first; in getInflightBufferKeys() 220 const std::vector<std::pair<int32_t, int32_t>>& buffers) { in popInflightBuffers() 221 for (const auto& pair : buffers) { in popInflightBuffers() local 222 int32_t frameNumber = pair.first; in popInflightBuffers() 223 int32_t streamId = pair.second; in popInflightBuffers() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsMessageBodyTest.java | 384 LanguagePair pair = mCounters[i]; in fillData() local 395 if (pair.length > (SmsConstants.MAX_USER_DATA_SEPTETS - udhLength)) { in fillData() 401 int msgCount = (pair.length + septetsPerPart - 1) / septetsPerPart; in fillData() 402 numSeptetsWithHeader = udhLength * msgCount + pair.length; in fillData() 404 numSeptetsWithHeader = udhLength + pair.length; in fillData() 408 if (pair.missingChars7bit < minNumMissingChars || (pair.missingChars7bit == in fillData() 410 minNumSeptets = pair.length; in fillData() 412 minNumMissingChars = pair.missingChars7bit; in fillData() 413 langIndex = pair.langTableIndex; in fillData() 414 langShiftIndex = pair.langShiftTableIndex; in fillData() [all …]
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | JoystickInputMapper.cpp | 35 for (std::pair<const int32_t, Axis>& pair : mAxes) { in populateDeviceInfo() 36 const Axis& axis = pair.second; in populateDeviceInfo() 209 for (const std::pair<const int32_t, Axis>& pair : mAxes) { in haveAxis() local 210 const Axis& axis = pair.second; in haveAxis() 252 for (std::pair<const int32_t, Axis>& pair : mAxes) { in reset() 253 Axis& axis = pair.second; in reset() 325 for (std::pair<const int32_t, Axis>& pair : mAxes) { in sync() 326 const Axis& axis = pair.second; in sync() 365 for (std::pair<const int32_t, Axis>& pair : mAxes) { in filterAxes() 366 Axis& axis = pair.second; in filterAxes()
|
/frameworks/base/cmds/incidentd/src/ |
D | report_directory.cpp | 36 static bool stat_mtime_cmp(const std::pair<String8, struct stat>& a, in stat_mtime_cmp() 37 const std::pair<String8, struct stat>& b) { in stat_mtime_cmp() 46 std::vector<std::pair<String8, struct stat>> files; in clean_directory() 72 files.push_back(std::pair<String8, struct stat>(filename, st)); in clean_directory() 89 for (std::vector<std::pair<String8, struct stat>>::iterator it = files.begin(); in clean_directory()
|
/frameworks/av/media/libmediahelper/ |
D | AudioParameter.cpp | 72 char *pair = strtok_r(str, ";", &last); in AudioParameter() local 73 while (pair != NULL) { in AudioParameter() 74 if (strlen(pair) != 0) { in AudioParameter() 75 size_t eqIdx = strcspn(pair, "="); in AudioParameter() 76 String8 key = String8(pair, eqIdx); in AudioParameter() 78 if (eqIdx == strlen(pair)) { in AudioParameter() 81 value = String8(pair + eqIdx + 1); in AudioParameter() 91 pair = strtok_r(NULL, ";", &last); in AudioParameter()
|
/frameworks/base/core/java/android/app/usage/ |
D | CacheQuotaService.java | 79 final Pair<RemoteCallback, List<CacheQuotaHint>> pair = in computeCacheQuotaHints() local 81 Message msg = mHandler.obtainMessage(ServiceHandler.MSG_SEND_LIST, pair); in computeCacheQuotaHints() 98 final Pair<RemoteCallback, List<CacheQuotaHint>> pair = in handleMessage() local 100 List<CacheQuotaHint> processed = onComputeCacheQuotaHints(pair.second); in handleMessage() 104 final RemoteCallback callback = pair.first; in handleMessage()
|
/frameworks/base/tools/incident_report/ |
D | generic_message.cpp | 33 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt32() 42 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addInt64() 52 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addMessage() 62 mNodes.insert(pair<int32_t,Node>(fieldId, node)); in addString()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | CpuFrequencies.java | 58 for (String pair : cpuNumberAndFrequencies.split(CPU_DELIM)) { in parseString() 59 pair = pair.trim(); in parseString() 60 if (pair.length() == 0) { in parseString() 63 final String[] coreAndFreq = pair.split(FREQUENCY_DELIM, 2); in parseString()
|
/frameworks/base/telephony/java/android/telephony/ims/feature/ |
D | CapabilityChangeRequest.java | 207 for (CapabilityPair pair : mCapabilitiesToEnable) { in writeToParcel() 208 dest.writeInt(pair.getCapability()); in writeToParcel() 209 dest.writeInt(pair.getRadioTech()); in writeToParcel() 212 for (CapabilityPair pair : mCapabilitiesToDisable) { in writeToParcel() 213 dest.writeInt(pair.getCapability()); in writeToParcel() 214 dest.writeInt(pair.getRadioTech()); in writeToParcel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenRecordingMuxer.java | 78 for (Pair<MediaExtractor, Integer> pair: mExtractorIndexToMuxerIndex.keySet()) { in mux() 79 MediaExtractor extractor = pair.first; in mux() 80 extractor.selectTrack(pair.second); in mux() 81 int muxId = mExtractorIndexToMuxerIndex.get(pair); in mux() 82 Log.d(TAG, "track format: " + extractor.getTrackFormat(pair.second)); in mux()
|
/frameworks/av/media/libmediatranscoding/tests/ |
D | AdjustableMaxPriorityQueue_tests.cpp | 47 AdjustableMaxPriorityQueue<std::pair<float, char*>> heap; in TEST() 48 std::priority_queue<std::pair<float, char*>> pq; in TEST() 49 AdjustableMaxPriorityQueue<std::pair<float, char*>> remove_queue; in TEST() 57 heap.push(std::pair<float, char*>(value, nullptr)); in TEST() 58 pq.push(std::pair<float, char*>(value, nullptr)); in TEST() 59 remove_queue.push(std::pair<float, char*>(value, nullptr)); in TEST() 63 AdjustableMaxPriorityQueue<std::pair<float, char*>>::iterator it; in TEST() 94 AdjustableMaxPriorityQueue<std::pair<float, char*>>::iterator iterator = in TEST()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedKvRestoreTask.java | 134 for (KeyValuePairProto.KeyValuePair pair : decryptedChunkKvOutput.getPairs()) { in downloadDecryptAndWriteBackup() 135 backupDataOutput.writeEntityHeader(pair.key, pair.value.length); in downloadDecryptAndWriteBackup() 136 backupDataOutput.writeEntityData(pair.value, pair.value.length); in downloadDecryptAndWriteBackup()
|