/external/icing/icing/file/ |
D | file-backed-proto.h | 99 mutable absl_ports::shared_mutex mutex_; 120 absl_ports::unique_lock l(&mutex_); in Read() 130 return absl_ports::NotFoundError( in Read() 131 absl_ports::StrCat("Missing file: ", file_path_)); in Read() 135 return absl_ports::InternalError(absl_ports::StrCat( in Read() 141 return absl_ports::InternalError( in Read() 142 absl_ports::StrCat("Unable to open file for read: ", file_path_)); in Read() 151 return absl_ports::InternalError( in Read() 152 absl_ports::StrCat("Unable to read header of: ", file_path_)); in Read() 156 return absl_ports::InternalError( in Read() [all …]
|
D | portable-file-backed-proto-log.h | 599 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in Create() 607 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in Create() 618 return absl_ports::InternalError( in Create() 619 absl_ports::StrCat("Bad file size '", file_path, "'")); in Create() 637 return absl_ports::InternalError( in InitializeNewFile() 638 absl_ports::StrCat("Failed to initialize file size: ", file_path)); in InitializeNewFile() 648 return absl_ports::InternalError( in InitializeNewFile() 649 absl_ports::StrCat("Failed to write header for file: ", file_path)); in InitializeNewFile() 669 return absl_ports::InternalError( in InitializeExistingFile() 670 absl_ports::StrCat("File header too short for: ", file_path)); in InitializeExistingFile() [all …]
|
D | file-backed-proto-log.h | 468 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in Create() 476 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in Create() 487 return absl_ports::InternalError( in Create() 488 absl_ports::StrCat("Bad file size '", file_path, "'")); in Create() 510 return absl_ports::InternalError( in InitializeNewFile() 511 absl_ports::StrCat("Failed to write header for file: ", file_path)); in InitializeNewFile() 530 return absl_ports::InternalError( in InitializeExistingFile() 531 absl_ports::StrCat("File header too short for: ", file_path)); in InitializeExistingFile() 537 return absl_ports::InternalError( in InitializeExistingFile() 538 absl_ports::StrCat("Failed to read header for file: ", file_path)); in InitializeExistingFile() [all …]
|
D | file-backed-vector.h | 344 return absl_ports::UnimplementedError( in Create() 351 return absl_ports::InternalError( in Create() 352 absl_ports::StrCat("Failed to open ", file_path)); in Create() 357 return absl_ports::InternalError( in Create() 358 absl_ports::StrCat("Bad file size for file ", file_path)); in Create() 386 return absl_ports::InternalError("Failed to write header"); in InitializeNewFile() 408 return absl_ports::InternalError( in InitializeExistingFile() 409 absl_ports::StrCat("File header too short for ", file_path)); in InitializeExistingFile() 415 return absl_ports::InternalError( in InitializeExistingFile() 416 absl_ports::StrCat("Failed to read header of ", file_path)); in InitializeExistingFile() [all …]
|
D | memory-mapped-file.cc | 112 return absl_ports::UnknownError(IcingStringUtil::StringPrintf( in Remap() 117 return absl_ports::InternalError(absl_ports::StrCat( in Remap() 126 return absl_ports::InternalError(absl_ports::StrCat( in Remap() 139 return absl_ports::FailedPreconditionError(absl_ports::StrCat( in PersistToDisk() 150 return absl_ports::InternalError( in PersistToDisk() 151 absl_ports::StrCat("Unable to sync file using msync(): ", file_path_)); in PersistToDisk() 160 return absl_ports::InternalError( in PersistToDisk() 161 absl_ports::StrCat("Unable to sync file using PWrite(): ", file_path_)); in PersistToDisk() 181 return absl_ports::InternalError(absl_ports::StrCat( in OptimizeFor()
|
D | file-backed-bitmap.cc | 45 return absl_ports::UnimplementedError( in Create() 105 return absl_ports::InternalError(IcingStringUtil::StringPrintf( in Initialize() 116 return absl_ports::InternalError(IcingStringUtil::StringPrintf( in Initialize() 142 return absl_ports::InternalError(absl_ports::StrCat( in Initialize() 147 return absl_ports::InternalError(absl_ports::StrCat( in Initialize() 160 return absl_ports::InternalError(IcingStringUtil::StringPrintf( in UpgradeToCurrentVersion() 170 return absl_ports::InternalError("Trying to access invalid memory"); in SetWord() 186 return absl_ports::InternalError("Trying to access invalid memory"); in GetWord() 231 return absl_ports::OutOfRangeError(IcingStringUtil::StringPrintf( in Get() 252 return absl_ports::ResourceExhaustedError(IcingStringUtil::StringPrintf( in GrowTo() [all …]
|
/external/icing/icing/util/ |
D | document-validator.cc | 37 return absl_ports::InvalidArgumentError("Field 'namespace' is empty."); in Validate() 42 return absl_ports::InvalidArgumentError("Field 'uri' is empty."); in Validate() 46 return absl_ports::InvalidArgumentError( in Validate() 47 absl_ports::StrCat("Field 'schema' is empty for key: (", in Validate() 52 return absl_ports::InvalidArgumentError("Field 'score' is negative."); in Validate() 56 return absl_ports::InvalidArgumentError( in Validate() 61 return absl_ports::InvalidArgumentError("Field 'ttl_ms' is negative."); in Validate() 83 return absl_ports::InvalidArgumentError(absl_ports::StrCat( in Validate() 90 return absl_ports::AlreadyExistsError(absl_ports::StrCat( in Validate() 98 return absl_ports::NotFoundError(absl_ports::StrCat( in Validate() [all …]
|
/external/icing/icing/testing/ |
D | common-matchers.h | 83 std::string actual_term_frequencies = absl_ports::StrCat( 84 "[", absl_ports::StrJoin(actual_tfs, ",", absl_ports::NumberFormatter()), 86 std::string expected_term_frequencies = absl_ports::StrCat( 88 absl_ports::StrJoin(expected_tfs, ",", absl_ports::NumberFormatter()), 139 std::string actual_old_schema_type_ids_changed = absl_ports::StrCat( 141 absl_ports::StrJoin(actual.old_schema_type_ids_changed, ",", 142 absl_ports::NumberFormatter()), 145 std::string expected_old_schema_type_ids_changed = absl_ports::StrCat( 147 absl_ports::StrJoin(expected.old_schema_type_ids_changed, ",", 148 absl_ports::NumberFormatter()), [all …]
|
/external/icing/icing/schema/ |
D | schema-util.cc | 45 ICING_VLOG(1) << absl_ports::StrCat( in IsCardinalityCompatible() 62 ICING_VLOG(1) << absl_ports::StrCat( in IsDataTypeCompatible() 75 ICING_VLOG(1) << absl_ports::StrCat("Schema type ", in IsSchemaTypeCompatible() 127 return absl_ports::InvalidArgumentError( in ExpandTranstiveDependencies() 128 absl_ports::StrCat("Infinite loop detected in type configs. '", type, in ExpandTranstiveDependencies() 216 return absl_ports::AlreadyExistsError(absl_ports::StrCat( in BuildTransitiveDependencyGraph() 228 return absl_ports::InvalidArgumentError( in BuildTransitiveDependencyGraph() 229 absl_ports::StrCat("Infinite loop detected in type configs. '", in BuildTransitiveDependencyGraph() 246 return absl_ports::InvalidArgumentError(absl_ports::StrCat( in BuildTransitiveDependencyGraph() 247 "Undefined 'schema_type's: ", absl_ports::StrJoin(unknown_types, ","))); in BuildTransitiveDependencyGraph() [all …]
|
D | section-manager.cc | 57 return absl_ports::StrCat(path, kPropertySeparator, next_property_name); in ConcatenatePath() 80 return absl_ports::NotFoundError(absl_ports::StrCat( in AssignSections() 113 return absl_ports::OutOfRangeError(IcingStringUtil::StringPrintf( in AssignSections() 209 return absl_ports::NotFoundError(absl_ports::StrCat( in GetStringSectionContent() 220 return absl_ports::NotFoundError(absl_ports::StrCat( in GetStringSectionContent() 241 return absl_ports::NotFoundError( in GetStringSectionContent() 242 absl_ports::StrCat("Section path ", section_path, in GetStringSectionContent() 252 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in GetStringSectionContent() 259 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in GetStringSectionContent() 272 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in GetSectionMetadata() [all …]
|
D | schema-store.cc | 57 return absl_ports::StrCat(base_dir, "/", kSchemaStoreHeaderFilename); in MakeHeaderFilename() 61 return absl_ports::StrCat(base_dir, "/", kSchemaFilename); in MakeSchemaFilename() 65 return absl_ports::StrCat(base_dir, "/", kSchemaTypeMapperFilename); in MakeSchemaTypeMapperFilename() 135 if (absl_ports::IsNotFound(schema_proto_or.status())) { in Initialize() 171 return absl_ports::InternalError("SchemaStore header doesn't exist"); in InitializeDerivedFiles() 177 return absl_ports::InternalError( in InitializeDerivedFiles() 178 absl_ports::StrCat("Couldn't read: ", MakeHeaderFilename(base_dir_))); in InitializeDerivedFiles() 182 return absl_ports::InternalError(absl_ports::StrCat( in InitializeDerivedFiles() 194 return absl_ports::InternalError( in InitializeDerivedFiles() 262 return absl_ports::InternalError(absl_ports::StrCat( in UpdateHeader() [all …]
|
/external/icing/icing/store/ |
D | key-mapper.h | 164 absl_ports::StrCat(base_dir, "/", kKeyMapperDir); in Create() 166 return absl_ports::InternalError(absl_ports::StrCat( in Create() 177 std::string key_mapper_dir = absl_ports::StrCat(base_dir, "/", kKeyMapperDir); in Delete() 179 return absl_ports::InternalError(absl_ports::StrCat( in Delete() 187 : file_prefix_(absl_ports::StrCat(key_mapper_dir, "/", kKeyMapperPrefix)), in KeyMapper() 206 return absl_ports::InternalError( in Initialize() 207 absl_ports::StrCat("Failed to create KeyMapper file: ", file_prefix_)); in Initialize() 210 return absl_ports::InternalError( in Initialize() 211 absl_ports::StrCat("Failed to init KeyMapper file: ", file_prefix_)); in Initialize() 223 return absl_ports::InternalError(absl_ports::StrCat( in GetOrPut() [all …]
|
D | usage-store.cc | 26 return absl_ports::StrCat(base_dir, "/usage-scores"); in MakeUsageScoreCacheFilename() 35 return absl_ports::InternalError(absl_ports::StrCat( in Create() 46 if (absl_ports::IsFailedPrecondition(usage_score_cache_or.status())) { in Create() 73 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in AddUsageReport() 87 } else if (!absl_ports::IsOutOfRange(usage_scores_or.status())) { in AddUsageReport() 145 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in DeleteUsageScores() 161 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in GetUsageScores() 166 if (absl_ports::IsOutOfRange(usage_scores_or.status())) { in GetUsageScores() 180 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in SetUsageScores() 190 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in CloneUsageScores() [all …]
|
D | document-store.cc | 92 return absl_ports::StrCat(base_dir, "/", kDocumentStoreHeaderFilename); in MakeHeaderFilename() 96 return absl_ports::StrCat(base_dir, "/", kDocumentIdMapperFilename); in MakeDocumentIdMapperFilename() 100 return absl_ports::StrCat(base_dir, "/", kScoreCacheFilename); in MakeScoreCacheFilename() 104 return absl_ports::StrCat(base_dir, "/", kCorpusScoreCache); in MakeCorpusScoreCache() 108 return absl_ports::StrCat(base_dir, "/", kFilterCacheFilename); in MakeFilterCacheFilename() 112 return absl_ports::StrCat(base_dir, "/", kNamespaceMapperFilename); in MakeNamespaceMapperFilename() 116 return absl_ports::StrCat(base_dir, "/", kUsageStoreDirectoryName); in MakeUsageStoreDirectoryName() 120 return absl_ports::StrCat(base_dir, "/", kCorpusIdMapperFilename); in MakeCorpusMapperFilename() 133 tc3farmhash::Fingerprint64(absl_ports::StrCat(name_space, uri)); in MakeFingerprint() 318 return absl_ports::InternalError("DocumentStore header doesn't exist"); in InitializeExistingDerivedFiles() [all …]
|
D | document-log-creator.cc | 48 return absl_ports::StrCat(kDocumentLogFilename, "_v1"); in DocumentLogFilenameV1() 52 return absl_ports::StrCat(base_dir, "/", DocumentLogFilenameV0()); in MakeDocumentLogFilenameV0() 56 return absl_ports::StrCat(base_dir, "/", DocumentLogFilenameV1()); in MakeDocumentLogFilenameV1() 124 return absl_ports::Annotate( in MigrateFromV0ToV1() 141 return absl_ports::Annotate( in MigrateFromV0ToV1() 162 if (absl_ports::IsNotFound(document_wrapper_or.status())) { in MigrateFromV0ToV1() 175 return absl_ports::Annotate( in MigrateFromV0ToV1() 189 return absl_ports::Annotate( in MigrateFromV0ToV1()
|
/external/icing/icing/tokenization/icu/ |
D | icu-language-segmenter.cc | 57 return absl_ports::InternalError("Unable to create a term iterator"); in Create() 108 return absl_ports::AbortedError( in CalculateTermStart() 117 return absl_ports::AbortedError( in CalculateTermEndExclusive() 138 return absl_ports::AbortedError( in ResetToTermStartingAfterUtf32() 143 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 156 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 165 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 169 return absl_ports::AbortedError( in ResetToTermStartingAfterUtf32() 178 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in ResetToTermEndingBeforeUtf32() 190 return absl_ports::AbortedError( in ResetToTermEndingBeforeUtf32() [all …]
|
/external/icing/icing/ |
D | icing-search-engine.cc | 88 return absl_ports::InvalidArgumentError( in ValidateOptions() 97 return absl_ports::InvalidArgumentError( in ValidateResultSpec() 104 return absl_ports::InvalidArgumentError( in ValidateResultSpec() 109 return absl_ports::InvalidArgumentError( in ValidateResultSpec() 122 return absl_ports::InvalidArgumentError( in ValidateSearchSpec() 123 absl_ports::StrCat("SearchSpecProto.query is longer than the maximum " in ValidateSearchSpec() 144 return absl_ports::StrCat(base_dir, "/", kDocumentSubfolderName); in MakeDocumentDirectoryPath() 150 return absl_ports::StrCat(base_dir, "/", kDocumentSubfolderName, in MakeDocumentTemporaryDirectoryPath() 158 return absl_ports::StrCat(base_dir, "/", kIndexSubfolderName); in MakeIndexDirectoryPath() 165 return absl_ports::StrCat(base_dir, "/", kSchemaSubfolderName); in MakeSchemaDirectoryPath() [all …]
|
/external/icing/icing/index/lite/ |
D | lite-index.cc | 117 return absl_ports::InternalError("Failed to initialize lexicon trie"); in Initialize() 123 status = absl_ports::InternalError("Failed to open hit buffer file"); in Initialize() 129 status = absl_ports::InternalError("Failed to query hit buffer file size"); in Initialize() 135 status = absl_ports::InternalError(IcingStringUtil::StringPrintf( in Initialize() 146 absl_ports::InternalError("Failed to refresh lexicon during clear"); in Initialize() 154 status = absl_ports::InternalError("Failed to truncate hit buffer file"); in Initialize() 168 status = absl_ports::InternalError("Failed to initialize new hit buffer"); in Initialize() 182 status = absl_ports::InternalError( in Initialize() 189 status = absl_ports::InternalError("Lite index header magic mismatch"); in Initialize() 194 status = absl_ports::DataLossError( in Initialize() [all …]
|
/external/icing/icing/index/main/ |
D | posting-list-used.cc | 44 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in CreateFromPreexistingPostingListUsedRegion() 68 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in MoveFrom() 74 return absl_ports::FailedPreconditionError( in MoveFrom() 78 return absl_ports::InvalidArgumentError( in MoveFrom() 89 return absl_ports::AbortedError( in MoveFrom() 150 return absl_ports::InvalidArgumentError( in PrependHitToAlmostFull() 213 return absl_ports::FailedPreconditionError( in PrependHitToNotFull() 219 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in PrependHitToNotFull() 297 return absl_ports::InvalidArgumentError("Cannot prepend an invalid hit!"); in PrependHit() 300 return absl_ports::FailedPreconditionError( in PrependHit() [all …]
|
D | main-index.cc | 102 return absl_ports::InternalError("Unable to create main index directory."); in Init() 118 return absl_ports::InternalError("Failed to initialize lexicon trie"); in Init() 127 return absl_ports::AbortedError( in GetElementsSize() 158 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in GetAccessorForExactTerm() 181 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in GetAccessorForPrefixTerm() 303 return absl_ports::InternalError("Could not insert branching prefix"); in AddBackfillBranchPoints() 312 return absl_ports::InternalError("Setting prefix prop failed"); in AddBackfillBranchPoints() 331 return absl_ports::InternalError(absl_ports::StrCat( in AddTerms() 339 return absl_ports::InternalError(absl_ports::StrCat( in AddTerms() 390 return absl_ports::InternalError( in AddBranchPoints() [all …]
|
/external/icing/icing/index/iterator/ |
D | doc-hit-info-iterator-or.cc | 96 return absl_ports::ResourceExhaustedError( in Advance() 134 return absl_ports::StrCat("(", left_->ToString(), " OR ", right_->ToString(), in ToString() 145 return absl_ports::InvalidArgumentError( in Advance() 154 return absl_ports::ResourceExhaustedError( in Advance() 184 return absl_ports::ResourceExhaustedError( in Advance() 227 absl_ports::StrAppend(&ret, iterators_.at(i)->ToString()); in ToString() 230 absl_ports::StrAppend(&ret, " OR "); in ToString() 234 absl_ports::StrAppend(&ret, ")"); in ToString()
|
/external/icing/icing/tokenization/reverse_jni/ |
D | reverse-jni-language-segmenter.cc | 146 return absl_ports::AbortedError( in ResetToTermStartingAfterUtf32() 153 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 167 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 176 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in ResetToTermStartingAfterUtf32() 196 return absl_ports::InvalidArgumentError(IcingStringUtil::StringPrintf( in ResetToTermEndingBeforeUtf32() 217 return absl_ports::AbortedError( in ResetToTermEndingBeforeUtf32() 232 return absl_ports::NotFoundError(IcingStringUtil::StringPrintf( in ResetToTermEndingBeforeUtf32() 257 return absl_ports::NotFoundError( in ResetToStartUtf32()
|
/external/icing/icing/result/ |
D | result-state-manager.cc | 35 return absl_ports::InvalidArgumentError("ResultState has no results"); in RankAndPaginate() 58 absl_ports::unique_lock l(&mutex_); in RankAndPaginate() 85 absl_ports::unique_lock l(&mutex_); in GetNextPage() 89 return absl_ports::NotFoundError("next_page_token not found"); in GetNextPage() 100 return absl_ports::NotFoundError( in GetNextPage() 127 absl_ports::unique_lock l(&mutex_); in InvalidateResultState() 133 absl_ports::unique_lock l(&mutex_); in InvalidateAllResultStates()
|
/external/icing/icing/query/ |
D | query-processor.cc | 193 return absl_ports::InternalError( in ParseRawQuery() 203 return absl_ports::InternalError( in ParseRawQuery() 211 return absl_ports::InternalError( in ParseRawQuery() 219 return absl_ports::InternalError( in ParseRawQuery() 228 return absl_ports::InternalError( in ParseRawQuery() 290 return absl_ports::InternalError(absl_ports::StrCat( in ParseRawQuery() 297 return absl_ports::InternalError( in ParseRawQuery() 376 return absl_ports::InternalError( in ParseRawQuery()
|
/external/icing/icing/tokenization/ |
D | language-segmenter.h | 68 return absl_ports::UnimplementedError(""); in CalculateTermStart() 78 return absl_ports::UnimplementedError(""); in CalculateTermEndExclusive() 106 return absl_ports::UnimplementedError(""); in ResetToTermStartingAfterUtf32() 134 return absl_ports::UnimplementedError(""); in ResetToTermEndingBeforeUtf32()
|