1<?xml version="1.0" encoding="UTF-8"?> 2<issues format="6" by="lint 8.4.0-alpha08" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha08"> 3 4 <issue 5 id="FlaggedApi" 6 message="Method `AppFunctionManager()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `AppSearchManager` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 7 errorLine1=" mAppFunctionManager = new AppFunctionManager(context, service);" 8 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 9 <location 10 file="packages/modules/AppSearch/framework/java/android/app/appsearch/AppSearchManager.java" 11 line="136" 12 column="31"/> 13 </issue> 14 15 <issue 16 id="FlaggedApi" 17 message="Method `getDescription()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `appendAppSearchSchemaString` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 18 errorLine1=" builder.append("description: \"").append(getDescription()).append("\",\n");" 19 errorLine2=" ~~~~~~~~~~~~~~~~"> 20 <location 21 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 22 line="114" 23 column="50"/> 24 </issue> 25 26 <issue 27 id="FlaggedApi" 28 message="Method `getDescription()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `equals` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 29 errorLine1=" if (!getDescription().equals(otherSchema.getDescription())) {" 30 errorLine2=" ~~~~~~~~~~~~~~~~"> 31 <location 32 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 33 line="195" 34 column="14"/> 35 </issue> 36 37 <issue 38 id="FlaggedApi" 39 message="Method `getDescription()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `equals` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 40 errorLine1=" if (!getDescription().equals(otherSchema.getDescription())) {" 41 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 42 <location 43 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 44 line="195" 45 column="38"/> 46 </issue> 47 48 <issue 49 id="FlaggedApi" 50 message="Method `getParentTypes()` is a flagged API and should be inside an `if (Flags.enableGetParentTypesAndIndexableNestedProperties())` check (or annotate the surrounding method `equals` with `@FlaggedApi(Flags.FLAG_ENABLE_GET_PARENT_TYPES_AND_INDEXABLE_NESTED_PROPERTIES) to transfer requirement to caller`)" 51 errorLine1=" if (!getParentTypes().equals(otherSchema.getParentTypes())) {" 52 errorLine2=" ~~~~~~~~~~~~~~~~"> 53 <location 54 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 55 line="198" 56 column="14"/> 57 </issue> 58 59 <issue 60 id="FlaggedApi" 61 message="Method `getParentTypes()` is a flagged API and should be inside an `if (Flags.enableGetParentTypesAndIndexableNestedProperties())` check (or annotate the surrounding method `equals` with `@FlaggedApi(Flags.FLAG_ENABLE_GET_PARENT_TYPES_AND_INDEXABLE_NESTED_PROPERTIES) to transfer requirement to caller`)" 62 errorLine1=" if (!getParentTypes().equals(otherSchema.getParentTypes())) {" 63 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 64 <location 65 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 66 line="198" 67 column="38"/> 68 </issue> 69 70 <issue 71 id="FlaggedApi" 72 message="Method `getDescription()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `hashCode` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 73 errorLine1=" return Objects.hash(getSchemaType(), getProperties(), getParentTypes(), getDescription());" 74 errorLine2=" ~~~~~~~~~~~~~~~~"> 75 <location 76 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 77 line="206" 78 column="81"/> 79 </issue> 80 81 <issue 82 id="FlaggedApi" 83 message="Method `getParentTypes()` is a flagged API and should be inside an `if (Flags.enableGetParentTypesAndIndexableNestedProperties())` check (or annotate the surrounding method `hashCode` with `@FlaggedApi(Flags.FLAG_ENABLE_GET_PARENT_TYPES_AND_INDEXABLE_NESTED_PROPERTIES) to transfer requirement to caller`)" 84 errorLine1=" return Objects.hash(getSchemaType(), getProperties(), getParentTypes(), getDescription());" 85 errorLine2=" ~~~~~~~~~~~~~~~~"> 86 <location 87 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 88 line="206" 89 column="63"/> 90 </issue> 91 92 <issue 93 id="FlaggedApi" 94 message="Method `getDescription()` is a flagged API and should be inside an `if (Flags.enableAppFunctions())` check (or annotate the surrounding method `appendPropertyConfigString` with `@FlaggedApi(Flags.FLAG_ENABLE_APP_FUNCTIONS) to transfer requirement to caller`)" 95 errorLine1=" builder.append("description: \"").append(getDescription()).append("\",\n");" 96 errorLine2=" ~~~~~~~~~~~~~~~~"> 97 <location 98 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 99 line="479" 100 column="54"/> 101 </issue> 102 103 <issue 104 id="FlaggedApi" 105 message="Method `EmbeddingPropertyConfig()` is a flagged API and should be inside an `if (Flags.enableSchemaEmbeddingPropertyConfig())` check (or annotate the surrounding method `fromParcel` with `@FlaggedApi(Flags.FLAG_ENABLE_SCHEMA_EMBEDDING_PROPERTY_CONFIG) to transfer requirement to caller`)" 106 errorLine1=" return new EmbeddingPropertyConfig(propertyConfigParcel);" 107 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 108 <location 109 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 110 line="618" 111 column="28"/> 112 </issue> 113 114 <issue 115 id="FlaggedApi" 116 message="Method `getIndexableNestedProperties()` is a flagged API and should be inside an `if (Flags.enableGetParentTypesAndIndexableNestedProperties())` check (or annotate the surrounding method `appendDocumentPropertyConfigFields` with `@FlaggedApi(Flags.FLAG_ENABLE_GET_PARENT_TYPES_AND_INDEXABLE_NESTED_PROPERTIES) to transfer requirement to caller`)" 117 errorLine1=" .append(getIndexableNestedProperties())" 118 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 119 <location 120 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/AppSearchSchema.java" 121 line="1554" 122 column="29"/> 123 </issue> 124 125 <issue 126 id="FlaggedApi" 127 message="Method `getParentTypes()` is a flagged API and should be inside an `if (Flags.enableGetParentTypesAndIndexableNestedProperties())` check (or annotate the surrounding method `setSchema` with `@FlaggedApi(Flags.FLAG_ENABLE_GET_PARENT_TYPES_AND_INDEXABLE_NESTED_PROPERTIES) to transfer requirement to caller`)" 128 errorLine1=" if (!schemaList.get(i).getParentTypes().isEmpty()" 129 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 130 <location 131 file="packages/modules/AppSearch/framework/java/android/app/appsearch/AppSearchSession.java" 132 line="206" 133 column="18"/> 134 </issue> 135 136 <issue 137 id="FlaggedApi" 138 message="Method `getTakenActionGenericDocuments()` is a flagged API and should be inside an `if (Flags.enablePutDocumentsRequestAddTakenActions())` check (or annotate the surrounding method `put` with `@FlaggedApi(Flags.FLAG_ENABLE_PUT_DOCUMENTS_REQUEST_ADD_TAKEN_ACTIONS) to transfer requirement to caller`)" 139 errorLine1=" toGenericDocumentParcels(request.getTakenActionGenericDocuments()));" 140 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 141 <location 142 file="packages/modules/AppSearch/framework/java/android/app/appsearch/AppSearchSession.java" 143 line="355" 144 column="50"/> 145 </issue> 146 147 <issue 148 id="FlaggedApi" 149 message="Method `getAllowedPackages()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getSchemaTypesVisibleToPackages` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 150 errorLine1=" visibilityConfig.getVisibilityConfig().getAllowedPackages();" 151 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 152 <location 153 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 154 line="172" 155 column="25"/> 156 </issue> 157 158 <issue 159 id="FlaggedApi" 160 message="Method `getRequiredPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getRequiredPermissionsForSchemaTypeVisibility` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 161 errorLine1=" visibilityConfig.getVisibilityConfig().getRequiredPermissions();" 162 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 163 <location 164 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 165 line="220" 166 column="25"/> 167 </issue> 168 169 <issue 170 id="FlaggedApi" 171 message="Method `getPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getPubliclyVisibleSchemas` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 172 errorLine1=" visibilityConfig.getVisibilityConfig().getPubliclyVisibleTargetPackage();" 173 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 174 <location 175 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 176 line="247" 177 column="25"/> 178 </issue> 179 180 <issue 181 id="FlaggedApi" 182 message="Method `setNotDisplayedBySystem()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `addSchemaTypeNotDisplayedBySystem` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 183 errorLine1=" visibilityConfigBuilder.setNotDisplayedBySystem(true);" 184 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 185 <location 186 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 187 line="358" 188 column="13"/> 189 </issue> 190 191 <issue 192 id="FlaggedApi" 193 message="Method `addVisibleToPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setSchemaTypeVisibleToPackages` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 194 errorLine1=" visibilityConfigBuilder.addVisibleToPackage(packageIdentifier);" 195 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 196 <location 197 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 198 line="392" 199 column="17"/> 200 </issue> 201 202 <issue 203 id="FlaggedApi" 204 message="Method `addVisibleToPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setRequiredPermissionsForSchemaTypeVisibility` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 205 errorLine1=" visibilityConfigBuilder.addVisibleToPermissions(visibleToPermissions);" 206 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 207 <location 208 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 209 line="443" 210 column="17"/> 211 </issue> 212 213 <issue 214 id="FlaggedApi" 215 message="Method `setPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setPubliclyVisibleSchema` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 216 errorLine1=" visibilityConfigBuilder.setPubliclyVisibleTargetPackage(packageIdentifier);" 217 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 218 <location 219 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 220 line="468" 221 column="13"/> 222 </issue> 223 224 <issue 225 id="FlaggedApi" 226 message="Method `build()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `build` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 227 errorLine1=" visibilityConfigs.add(builder.build());" 228 errorLine2=" ~~~~~~~~~~~~~~~"> 229 <location 230 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 231 line="549" 232 column="43"/> 233 </issue> 234 235 <issue 236 id="FlaggedApi" 237 message="Method `Builder()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getOrCreateVisibilityConfigBuilder` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 238 errorLine1=" builder = new InternalVisibilityConfig.Builder(schemaType);" 239 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 240 <location 241 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 242 line="565" 243 column="27"/> 244 </issue> 245 246 <issue 247 id="FlaggedApi" 248 message="Method `getPubliclyVisibleSchemas()` is a flagged API and should be inside an `if (Flags.enableSetPubliclyVisibleSchema())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_PUBLICLY_VISIBLE_SCHEMA) to transfer requirement to caller`)" 249 errorLine1=" setSchemaRequest.getPubliclyVisibleSchemas();" 250 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 251 <location 252 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 253 line="60" 254 column="17"/> 255 </issue> 256 257 <issue 258 id="FlaggedApi" 259 message="Method `getSchemasVisibleToConfigs()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 260 errorLine1=" setSchemaRequest.getSchemasVisibleToConfigs();" 261 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 262 <location 263 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 264 line="62" 265 column="17"/> 266 </issue> 267 268 <issue 269 id="FlaggedApi" 270 message="Method `Builder()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 271 errorLine1=" new InternalVisibilityConfig.Builder(schemaType)" 272 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 273 <location 274 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 275 line="68" 276 column="21"/> 277 </issue> 278 279 <issue 280 id="FlaggedApi" 281 message="Method `setNotDisplayedBySystem()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 282 errorLine1=" new InternalVisibilityConfig.Builder(schemaType)" 283 errorLine2=" ^"> 284 <location 285 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 286 line="68" 287 column="21"/> 288 </issue> 289 290 <issue 291 id="FlaggedApi" 292 message="Method `addVisibleToPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 293 errorLine1=" builder.addVisibleToPackage(packageIdentifier);" 294 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 295 <location 296 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 297 line="75" 298 column="21"/> 299 </issue> 300 301 <issue 302 id="FlaggedApi" 303 message="Method `addVisibleToPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 304 errorLine1=" builder.addVisibleToPermissions(visibleToPermissions);" 305 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 306 <location 307 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 308 line="82" 309 column="21"/> 310 </issue> 311 312 <issue 313 id="FlaggedApi" 314 message="Method `setPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 315 errorLine1=" builder.setPubliclyVisibleTargetPackage(publiclyVisibleTargetPackage);" 316 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 317 <location 318 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 319 line="88" 320 column="17"/> 321 </issue> 322 323 <issue 324 id="FlaggedApi" 325 message="Method `addVisibleToConfig()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 326 errorLine1=" builder.addVisibleToConfig(schemaVisibilityConfig);" 327 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 328 <location 329 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 330 line="94" 331 column="21"/> 332 </issue> 333 334 <issue 335 id="FlaggedApi" 336 message="Method `build()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 337 errorLine1=" result.add(builder.build());" 338 errorLine2=" ~~~~~~~~~~~~~~~"> 339 <location 340 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 341 line="98" 342 column="24"/> 343 </issue> 344 345 <issue 346 id="FlaggedApi" 347 message="Method `getInformationalRankingSignals()` is a flagged API and should be inside an `if (Flags.enableInformationalRankingExpressions())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_INFORMATIONAL_RANKING_EXPRESSIONS) to transfer requirement to caller`)" 348 errorLine1=" new ArrayList<>(searchResult.getInformationalRankingSignals());" 349 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 350 <location 351 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchResult.java" 352 line="268" 353 column="37"/> 354 </issue> 355 356 <issue 357 id="FlaggedApi" 358 message="Field `EMBEDDING_SEARCH_METRIC_TYPE_COSINE` is a flagged API and should be inside an `if (Flags.enableSchemaEmbeddingPropertyConfig())` check (or annotate the surrounding method `?` with `@FlaggedApi(Flags.FLAG_ENABLE_SCHEMA_EMBEDDING_PROPERTY_CONFIG) to transfer requirement to caller`)" 359 errorLine1=" private int mDefaultEmbeddingSearchMetricType = EMBEDDING_SEARCH_METRIC_TYPE_COSINE;" 360 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 361 <location 362 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 363 line="757" 364 column="57"/> 365 </issue> 366 367 <issue 368 id="FlaggedApi" 369 message="Method `getFilterProperties()` is a flagged API and should be inside an `if (Flags.enableSearchSpecFilterProperties())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_FILTER_PROPERTIES) to transfer requirement to caller`)" 370 errorLine1=" searchSpec.getFilterProperties().entrySet()) {" 371 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 372 <location 373 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 374 line="781" 375 column="21"/> 376 </issue> 377 378 <issue 379 id="FlaggedApi" 380 message="Method `addFilterProperties()` is a flagged API and should be inside an `if (Flags.enableSearchSpecFilterProperties())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_FILTER_PROPERTIES) to transfer requirement to caller`)" 381 errorLine1=" addFilterProperties(entry.getKey(), entry.getValue());" 382 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 383 <location 384 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 385 line="782" 386 column="17"/> 387 </issue> 388 389 <issue 390 id="FlaggedApi" 391 message="Method `getSearchEmbeddings()` is a flagged API and should be inside an `if (Flags.enableSchemaEmbeddingPropertyConfig())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SCHEMA_EMBEDDING_PROPERTY_CONFIG) to transfer requirement to caller`)" 392 errorLine1=" mSearchEmbeddings = new ArrayList<>(searchSpec.getSearchEmbeddings());" 393 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 394 <location 395 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 396 line="793" 397 column="49"/> 398 </issue> 399 400 <issue 401 id="FlaggedApi" 402 message="Method `getDefaultEmbeddingSearchMetricType()` is a flagged API and should be inside an `if (Flags.enableSchemaEmbeddingPropertyConfig())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SCHEMA_EMBEDDING_PROPERTY_CONFIG) to transfer requirement to caller`)" 403 errorLine1=" mDefaultEmbeddingSearchMetricType = searchSpec.getDefaultEmbeddingSearchMetricType();" 404 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 405 <location 406 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 407 line="796" 408 column="49"/> 409 </issue> 410 411 <issue 412 id="FlaggedApi" 413 message="Method `getInformationalRankingExpressions()` is a flagged API and should be inside an `if (Flags.enableInformationalRankingExpressions())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_INFORMATIONAL_RANKING_EXPRESSIONS) to transfer requirement to caller`)" 414 errorLine1=" new ArrayList<>(searchSpec.getInformationalRankingExpressions());" 415 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 416 <location 417 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 418 line="807" 419 column="37"/> 420 </issue> 421 422 <issue 423 id="FlaggedApi" 424 message="Method `getSearchSourceLogTag()` is a flagged API and should be inside an `if (Flags.enableSearchSpecSetSearchSourceLogTag())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_SET_SEARCH_SOURCE_LOG_TAG) to transfer requirement to caller`)" 425 errorLine1=" mSearchSourceLogTag = searchSpec.getSearchSourceLogTag();" 426 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 427 <location 428 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 429 line="808" 430 column="35"/> 431 </issue> 432 433 <issue 434 id="FlaggedApi" 435 message="Method `getTakenActionGenericDocuments()` is a flagged API and should be inside an `if (Flags.enablePutDocumentsRequestAddTakenActions())` check (or annotate the surrounding method `put` with `@FlaggedApi(Flags.FLAG_ENABLE_PUT_DOCUMENTS_REQUEST_ADD_TAKEN_ACTIONS) to transfer requirement to caller`)" 436 errorLine1=" toGenericDocumentParcels(request.getTakenActionGenericDocuments()));" 437 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 438 <location 439 file="packages/modules/AppSearch/framework/java/android/app/appsearch/AppSearchSession.java" 440 line="335" 441 column="42"/> 442 </issue> 443 444 <issue 445 id="FlaggedApi" 446 message="Method `getAllowedPackages()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getSchemaTypesVisibleToPackages` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 447 errorLine1=" visibilityConfig.getVisibilityConfig().getAllowedPackages();" 448 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 449 <location 450 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 451 line="169" 452 column="25"/> 453 </issue> 454 455 <issue 456 id="FlaggedApi" 457 message="Method `getRequiredPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getRequiredPermissionsForSchemaTypeVisibility` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 458 errorLine1=" visibilityConfig.getVisibilityConfig().getRequiredPermissions();" 459 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 460 <location 461 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 462 line="217" 463 column="25"/> 464 </issue> 465 466 <issue 467 id="FlaggedApi" 468 message="Method `getPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getPubliclyVisibleSchemas` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 469 errorLine1=" visibilityConfig.getVisibilityConfig().getPubliclyVisibleTargetPackage();" 470 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 471 <location 472 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 473 line="244" 474 column="25"/> 475 </issue> 476 477 <issue 478 id="FlaggedApi" 479 message="Method `setNotDisplayedBySystem()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `addSchemaTypeNotDisplayedBySystem` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 480 errorLine1=" visibilityConfigBuilder.setNotDisplayedBySystem(true);" 481 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 482 <location 483 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 484 line="354" 485 column="13"/> 486 </issue> 487 488 <issue 489 id="FlaggedApi" 490 message="Method `addVisibleToPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setSchemaTypeVisibleToPackages` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 491 errorLine1=" visibilityConfigBuilder.addVisibleToPackage(packageIdentifier);" 492 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 493 <location 494 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 495 line="388" 496 column="17"/> 497 </issue> 498 499 <issue 500 id="FlaggedApi" 501 message="Method `addVisibleToPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setRequiredPermissionsForSchemaTypeVisibility` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 502 errorLine1=" visibilityConfigBuilder.addVisibleToPermissions(visibleToPermissions);" 503 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 504 <location 505 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 506 line="437" 507 column="17"/> 508 </issue> 509 510 <issue 511 id="FlaggedApi" 512 message="Method `setPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `setPubliclyVisibleSchema` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 513 errorLine1=" visibilityConfigBuilder.setPubliclyVisibleTargetPackage(packageIdentifier);" 514 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 515 <location 516 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 517 line="461" 518 column="13"/> 519 </issue> 520 521 <issue 522 id="FlaggedApi" 523 message="Method `build()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `build` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 524 errorLine1=" visibilityConfigs.add(builder.build());" 525 errorLine2=" ~~~~~~~~~~~~~~~"> 526 <location 527 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 528 line="541" 529 column="43"/> 530 </issue> 531 532 <issue 533 id="FlaggedApi" 534 message="Method `Builder()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `getOrCreateVisibilityConfigBuilder` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 535 errorLine1=" builder = new InternalVisibilityConfig.Builder(schemaType);" 536 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 537 <location 538 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/GetSchemaResponse.java" 539 line="553" 540 column="27"/> 541 </issue> 542 543 <issue 544 id="FlaggedApi" 545 message="Method `getPubliclyVisibleSchemas()` is a flagged API and should be inside an `if (Flags.enableSetPubliclyVisibleSchema())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_PUBLICLY_VISIBLE_SCHEMA) to transfer requirement to caller`)" 546 errorLine1=" setSchemaRequest.getPubliclyVisibleSchemas();" 547 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 548 <location 549 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 550 line="59" 551 column="17"/> 552 </issue> 553 554 <issue 555 id="FlaggedApi" 556 message="Method `getSchemasVisibleToConfigs()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 557 errorLine1=" setSchemaRequest.getSchemasVisibleToConfigs();" 558 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 559 <location 560 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 561 line="61" 562 column="17"/> 563 </issue> 564 565 <issue 566 id="FlaggedApi" 567 message="Method `Builder()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 568 errorLine1=" new InternalVisibilityConfig.Builder(schemaType)" 569 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 570 <location 571 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 572 line="67" 573 column="21"/> 574 </issue> 575 576 <issue 577 id="FlaggedApi" 578 message="Method `setNotDisplayedBySystem()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 579 errorLine1=" new InternalVisibilityConfig.Builder(schemaType)" 580 errorLine2=" ^"> 581 <location 582 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 583 line="67" 584 column="21"/> 585 </issue> 586 587 <issue 588 id="FlaggedApi" 589 message="Method `addVisibleToPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 590 errorLine1=" builder.addVisibleToPackage(packageIdentifier);" 591 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 592 <location 593 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 594 line="74" 595 column="21"/> 596 </issue> 597 598 <issue 599 id="FlaggedApi" 600 message="Method `addVisibleToPermissions()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 601 errorLine1=" builder.addVisibleToPermissions(visibleToPermissions);" 602 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 603 <location 604 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 605 line="81" 606 column="21"/> 607 </issue> 608 609 <issue 610 id="FlaggedApi" 611 message="Method `setPubliclyVisibleTargetPackage()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 612 errorLine1=" builder.setPubliclyVisibleTargetPackage(publiclyVisibleTargetPackage);" 613 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 614 <location 615 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 616 line="87" 617 column="17"/> 618 </issue> 619 620 <issue 621 id="FlaggedApi" 622 message="Method `addVisibleToConfig()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 623 errorLine1=" builder.addVisibleToConfig(schemaVisibilityConfig);" 624 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 625 <location 626 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 627 line="93" 628 column="21"/> 629 </issue> 630 631 <issue 632 id="FlaggedApi" 633 message="Method `build()` is a flagged API and should be inside an `if (Flags.enableSetSchemaVisibleToConfigs())` check (or annotate the surrounding method `toInternalVisibilityConfigs` with `@FlaggedApi(Flags.FLAG_ENABLE_SET_SCHEMA_VISIBLE_TO_CONFIGS) to transfer requirement to caller`)" 634 errorLine1=" result.add(builder.build());" 635 errorLine2=" ~~~~~~~~~~~~~~~"> 636 <location 637 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/InternalVisibilityConfig.java" 638 line="97" 639 column="24"/> 640 </issue> 641 642 <issue 643 id="FlaggedApi" 644 message="Method `getFilterProperties()` is a flagged API and should be inside an `if (Flags.enableSearchSpecFilterProperties())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_FILTER_PROPERTIES) to transfer requirement to caller`)" 645 errorLine1=" searchSpec.getFilterProperties().entrySet()) {" 646 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 647 <location 648 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 649 line="648" 650 column="21"/> 651 </issue> 652 653 <issue 654 id="FlaggedApi" 655 message="Method `addFilterProperties()` is a flagged API and should be inside an `if (Flags.enableSearchSpecFilterProperties())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_FILTER_PROPERTIES) to transfer requirement to caller`)" 656 errorLine1=" addFilterProperties(entry.getKey(), entry.getValue());" 657 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 658 <location 659 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 660 line="649" 661 column="17"/> 662 </issue> 663 664 <issue 665 id="FlaggedApi" 666 message="Method `getSearchSourceLogTag()` is a flagged API and should be inside an `if (Flags.enableSearchSpecSetSearchSourceLogTag())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_ENABLE_SEARCH_SPEC_SET_SEARCH_SOURCE_LOG_TAG) to transfer requirement to caller`)" 667 errorLine1=" mSearchSourceLogTag = searchSpec.getSearchSourceLogTag();" 668 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> 669 <location 670 file="packages/modules/AppSearch/framework/java/external/android/app/appsearch/SearchSpec.java" 671 line="671" 672 column="35"/> 673 </issue> 674 675</issues> 676