Home
last modified time | relevance | path

Searched refs:segments (Results 1 – 25 of 58) sorted by relevance

123

/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java86 String[] segments = split(); in toString() local
87 for (int i = 0; i < segments.length; i++) { in toString()
89 sb.append(segments[i]); in toString()
102 String[] segments = split(s); in fromString() local
104 for (int i = 0; i < segments.length; i++) { in fromString()
105 current = current.getChild(segments[i]); in fromString()
117 String[] segments = new String[n]; in split() local
120 segments[i--] = p.mSegment; in split()
122 return segments; in split()
132 ArrayList<String> segments = new ArrayList<String>(); in split() local
[all …]
DPathMatcher.java33 String[] segments = Path.split(pattern); in add() local
35 for (int i = 0; i < segments.length; i++) { in add()
36 current = current.addChild(segments[i]); in add()
42 String[] segments = path.split(); in match() local
45 for (int i = 0; i < segments.length; i++) { in match()
46 Node next = current.getChild(segments[i]); in match()
50 mVariables.add(segments[i]); in match()
DComboSource.java38 String[] segments = path.split(); in createMediaObject() local
39 if (segments.length < 2) { in createMediaObject()
47 dataManager.getMediaSetsFromString(segments[1])); in createMediaObject()
51 dataManager.getMediaSetsFromString(segments[2]), segments[1]); in createMediaObject()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DFilterUtils.java123 String[] segments = path.split(); in getAppliedFilters() local
125 for (int i = 0; i < segments.length; i++) { in getAppliedFilters()
126 if (segments[i].startsWith("{")) { in getAppliedFilters()
127 String[] sets = Path.splitSequence(segments[i]); in getAppliedFilters()
136 if (segments[0].equals("cluster")) { in getAppliedFilters()
138 if (segments.length == 4) { in getAppliedFilters()
142 int ctype = toClusterType(segments[2]); in getAppliedFilters()
232 String[] segments = Path.split(base); in removeOneClusterFromPath()
233 if (segments[0].equals("cluster")) { in removeOneClusterFromPath()
235 return Path.splitSequence(segments[1])[0]; in removeOneClusterFromPath()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Dle_credit_based_channel_data_controller.cc45 std::vector<std::unique_ptr<packet::RawBuilder>> segments; in OnSdu() local
47 packet::FragmentingInserter fragmenting_inserter(mps_ - 2, std::back_insert_iterator(segments)); in OnSdu()
51 builder = FirstLeInformationFrameBuilder::Create(remote_cid_, sdu_size, std::move(segments[0])); in OnSdu()
53 for (size_t i = 1; i < segments.size(); i++) { in OnSdu()
54 builder = BasicFrameBuilder::Create(remote_cid_, std::move(segments[i])); in OnSdu()
57 if (credits_ >= segments.size()) { in OnSdu()
58 scheduler_->OnPacketsReady(cid_, segments.size()); in OnSdu()
59 credits_ -= segments.size(); in OnSdu()
62 pending_frames_count_ += (segments.size() - credits_); in OnSdu()
65 pending_frames_count_ += segments.size(); in OnSdu()
Denhanced_retransmission_mode_channel_data_controller.cc817 std::vector<std::unique_ptr<packet::RawBuilder>> segments; in OnSdu() local
820 …t::FragmentingInserter fragmenting_inserter(size_each_packet, std::back_insert_iterator(segments)); in OnSdu()
823 if (segments.size() == 1) { in OnSdu()
824 pimpl_->data_request(SegmentationAndReassembly::UNSEGMENTED, std::move(segments[0])); in OnSdu()
827 pimpl_->data_request(SegmentationAndReassembly::START, std::move(segments[0]), sdu_size); in OnSdu()
828 for (size_t i = 1; i < segments.size() - 1; i++) { in OnSdu()
829 pimpl_->data_request(SegmentationAndReassembly::CONTINUATION, std::move(segments[i])); in OnSdu()
831 pimpl_->data_request(SegmentationAndReassembly::END, std::move(segments.back())); in OnSdu()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseSegmentInternal.java61 ArrayList<ExerciseSegmentInternal> segments = new ArrayList<>(size); in populateSegmentsFromParcel() local
63 segments.add(ExerciseSegmentInternal.readFromParcel(parcel)); in populateSegmentsFromParcel()
65 return segments; in populateSegmentsFromParcel()
75 static void writeSegmentsToParcel(List<ExerciseSegmentInternal> segments, Parcel parcel) { in writeSegmentsToParcel() argument
76 if (segments == null) { in writeSegmentsToParcel()
80 parcel.writeInt(segments.size()); in writeSegmentsToParcel()
81 segments.forEach((segment) -> segment.writeToParcel(parcel)); in writeSegmentsToParcel()
/packages/providers/MediaProvider/jni/
Dnode.cpp20 std::vector<std::string> segments; in GetPathSegments() local
30 segments.push_back(path.substr(segment_start, segment_end - segment_start)); in GetPathSegments()
35 segments.push_back(path.substr(segment_start)); in GetPathSegments()
37 return segments; in GetPathSegments()
82 std::vector<std::string> segments = GetPathSegments(root->GetName().size(), absolute_path); in LookupAbsolutePath() local
87 for (const std::string& segment : segments) { in LookupAbsolutePath()
/packages/services/Telephony/src/com/android/services/telephony/rcs/validator/
DRestrictedOutgoingSipRequestValidator.java44 String[] segments = SipMessageParsingUtils.splitStartLineAndVerify(startLine); in validate() local
45 if (segments == null) { in validate()
51 s -> segments[0].toLowerCase(Locale.ROOT).contains(s))) { in validate()
54 "restricted method: " + segments[0]); in validate()
DOutgoingTransportStateValidator.java162 String[] segments = SipMessageParsingUtils.splitStartLineAndVerify(m.getStartLine()); in verifyOpenMessage() local
163 if (segments == null) { in verifyOpenMessage()
170 .anyMatch(req -> req.equals(segments[0].trim().toLowerCase(Locale.ROOT))); in verifyOpenMessage()
/packages/providers/MediaProvider/src/com/android/providers/media/
DPickerUriResolver.java347 final List<String> segments = uri.getPathSegments(); in wrapProviderUri() local
348 if (segments.size() != 2) { in wrapProviderUri()
357 for (int i = 0; i < segments.size(); i++) { in wrapProviderUri()
358 builder.appendPath(segments.get(i)); in wrapProviderUri()
492 List<String> segments = uri.getPathSegments(); in unwrapProviderUri() local
493 if (segments.size() != 5) { in unwrapProviderUri()
498 final String userId = segments.get(1); in unwrapProviderUri()
499 final String host = segments.get(2); in unwrapProviderUri()
500 segments = segments.subList(3, segments.size()); in unwrapProviderUri()
504 for (int i = 0; i < segments.size(); i++) { in unwrapProviderUri()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DExerciseSessionFormatterTest.kt88 val segments = in <lambda>() constant
104 getRecord(type = EXERCISE_SESSION_TYPE_OTHER_WORKOUT, segments = segments, laps = laps) in <lambda>()
130 segments: List<ExerciseSegment> = emptyList() in getRecord()
136 .setSegments(segments) in getRecord()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.kt837 val segments: LinkedList<DNASegment> = LinkedList<DNASegment>() in createDNAStrands() constant
914 if (segments.size == 0) { in createDNAStrands()
915 addNewSegment(segments, event, strands, firstJulianDay, 0, minMinutes) in createDNAStrands()
920 val lastSegment: DNASegment = segments.getLast() in createDNAStrands()
937 var i: Int = segments.size in createDNAStrands()
939 while (--i >= 0 && endMinute < segments.get(i).startMinute) {} in createDNAStrands()
943 while (i >= 0 && startMinute <= segments.get(i) in createDNAStrands()
960 segments.add(i + 1, rhs) in createDNAStrands()
967 segments.get(i).toString() in createDNAStrands()
983 segments.add(i++, lhs) in createDNAStrands()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DUriUtils.java84 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri() local
87 return (segments.size() < 3) ? null : Uri.encode(segments.get(2)); in getLookupKeyFromUri()
/packages/apps/Contacts/src/com/android/contacts/util/
DUriUtils.java86 final List<String> segments = lookupUri.getPathSegments(); in getLookupKeyFromUri() local
89 return (segments.size() < 3) ? null : Uri.encode(segments.get(2)); in getLookupKeyFromUri()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DSyntheticPathUtils.java92 final List<String> segments = new ArrayList<>(); in extractSyntheticRelativePathSegements() local
97 return segments; in extractSyntheticRelativePathSegements()
105 segments.add(segment); in extractSyntheticRelativePathSegements()
108 return segments; in extractSyntheticRelativePathSegements()
DFileUtils.java143 public static File buildPath(File base, String... segments) { in buildPath() argument
145 for (String segment : segments) { in buildPath()
1502 final String[] segments = path.split("/");
1505 if (segments.length == 0) {
1508 for (int i = 0; i < segments.length; i++) {
1509 segments[i] = sanitizeDisplayName(segments[i]);
1511 return segments;
1812 public static File buildPrimaryVolumeFile(int userId, String... segments) {
1813 return buildPath(new File("/storage/emulated/" + userId), segments);
/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapEmailProvider.java198 List<String> segments = uri.getPathSegments(); in writeDataToPipe() local
199 long messageId = Long.parseLong(segments.get(2)); in writeDataToPipe()
201 if (segments.size() >= 4) { in writeDataToPipe()
202 String format = segments.get(3); in writeDataToPipe()
746 final List<String> segments = uri.getPathSegments(); in getAccountId() local
747 if (segments.size() < 1) { in getAccountId()
750 return segments.get(0); in getAccountId()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DExerciseSessionRecord.java97 @NonNull List<ExerciseSegment> segments, in ExerciseSessionRecord() argument
124 sortAndValidateTimeIntervalHolders(startTime, endTime, segments)); in ExerciseSessionRecord()
351 public Builder setSegments(@NonNull List<ExerciseSegment> segments) { in setSegments() argument
352 Objects.requireNonNull(segments); in setSegments()
354 mSegments.addAll(segments); in setSegments()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DMediaScratchFileProvider.java57 final List<String> segments = uri.getPathSegments(); in isMediaScratchSpaceUri() local
60 segments.size() == 1 && FileProvider.isValidFileId(segments.get(0))); in isMediaScratchSpaceUri()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DExerciseSegmentRecordHelper.java67 List<ExerciseSegmentInternal> segments) { in getSegmentsUpsertRequests() argument
68 List<UpsertTableRequest> requests = new ArrayList<>(segments.size()); in getSegmentsUpsertRequests()
69 segments.forEach( in getSegmentsUpsertRequests()
/packages/modules/Bluetooth/system/audio_bluetooth_hw/
Dutils.cc35 std::vector<std::string> segments = android::base::Split(params, ";"); in ParseAudioParams() local
37 for (const auto& segment : segments) { in ParseAudioParams()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeDrawingPoints.java152 final int segments = Math.min(mDrawingParams.mMaxInterpolationSegments, in interpolateStrokeAndReturnStartIndexOfLastSegment() local
157 for (int i = 1; i < segments; i++) { in interpolateStrokeAndReturnStartIndexOfLastSegment()
158 final float t = i / (float)segments; in interpolateStrokeAndReturnStartIndexOfLastSegment()
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/impl/
DGlidePhotoManagerImpl.java171 List<String> segments = Uri.parse(lookupUri).getPathSegments(); in getIdentifier() local
172 if (segments.size() < LOOKUP_URI_PATH_SEGMENTS) { in getIdentifier()
175 String lookupKey = segments.get(LOOKUP_URI_PATH_SEGMENTS); in getIdentifier()
/packages/modules/NeuralNetworks/tools/api/
DOperationTypes.t115 * of array segments and array indices to encode that dimension:
117 * the array segments. The array segments represent how to segment the indices array,
118 * each segment corresponds to one element in the previous dimension. Array segments are
127 * with array segments (listed above), so this input could be input (6, 6 + 2, …, 6 +

123