| | | |
Offset 22, 29 lines modified | Offset 22, 21 lines modified |
| |
22 | .field·static·final·LANG_ID_CONTEXT_SETTINGS:Ljava/lang/String;·=·"lang_id_context_settings" | 22 | .field·static·final·LANG_ID_CONTEXT_SETTINGS:Ljava/lang/String;·=·"lang_id_context_settings" |
| |
23 | .field·private·static·final·LANG_ID_CONTEXT_SETTINGS_DEFAULT:[F | 23 | .field·private·static·final·LANG_ID_CONTEXT_SETTINGS_DEFAULT:[F |
| |
24 | .field·static·final·LANG_ID_THRESHOLD_OVERRIDE:Ljava/lang/String;·=·"lang_id_threshold_override" | 24 | .field·static·final·LANG_ID_THRESHOLD_OVERRIDE:Ljava/lang/String;·=·"lang_id_threshold_override" |
| |
25 | .field·public·static·final·MANIFEST_DOWNLOAD_MAX_ATTEMPTS:Ljava/lang/String;·=·"manifest_download_max_attempts" | |
| |
26 | .field·public·static·final·MANIFEST_URL_TEMPLATE:Ljava/lang/String;·=·"manifest_url_%s_%s" | 25 | .field·public·static·final·MANIFEST_URL_TEMPLATE:Ljava/lang/String;·=·"manifest_url_%s_%s" |
| |
27 | .field·static·final·MODEL_DOWNLOAD_BACKOFF_DELAY_IN_MILLIS:Ljava/lang/String;·=·"model_download_backoff_delay_in_millis" | 26 | .field·static·final·MODEL_DOWNLOAD_BACKOFF_DELAY_IN_MILLIS:Ljava/lang/String;·=·"model_download_backoff_delay_in_millis" |
| |
28 | .field·private·static·final·MODEL_DOWNLOAD_BACKOFF_DELAY_IN_MILLIS_DEFAULT:J | |
| |
29 | .field·public·static·final·MODEL_DOWNLOAD_MANAGER_ENABLED:Ljava/lang/String;·=·"model_download_manager_enabled" | 27 | .field·public·static·final·MODEL_DOWNLOAD_MANAGER_ENABLED:Ljava/lang/String;·=·"model_download_manager_enabled" |
| |
30 | .field·static·final·MODEL_DOWNLOAD_WORKER_MAX_ATTEMPTS:Ljava/lang/String;·=·"model_download_worker_max_attempts" | 28 | .field·static·final·MODEL_DOWNLOAD_MAX_ATTEMPTS:Ljava/lang/String;·=·"model_download_max_attempts" |
| |
31 | .field·public·static·final·MODEL_URL_BLOCKLIST:Ljava/lang/String;·=·"model_url_blocklist" | |
| |
32 | .field·public·static·final·MODEL_URL_BLOCKLIST_SEPARATOR:Ljava/lang/String;·=·"," | |
| |
33 | .field·static·final·SUGGEST_SELECTION_MAX_RANGE_LENGTH:Ljava/lang/String;·=·"suggest_selection_max_range_length" | 29 | .field·static·final·SUGGEST_SELECTION_MAX_RANGE_LENGTH:Ljava/lang/String;·=·"suggest_selection_max_range_length" |
| |
34 | .field·static·final·TEMPLATE_INTENT_FACTORY_ENABLED:Ljava/lang/String;·=·"template_intent_factory_enabled" | 30 | .field·static·final·TEMPLATE_INTENT_FACTORY_ENABLED:Ljava/lang/String;·=·"template_intent_factory_enabled" |
| |
| |
35 | #·instance·fields | 31 | #·instance·fields |
Offset 108, 18 lines modified | Offset 100, 14 lines modified |
108 | ····.line·3 | 100 | ····.line·3 |
109 | ····sget-object·v0,·Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit; | 101 | ····sget-object·v0,·Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit; |
| |
110 | ····const-wide/16·v1,·0x1 | 102 | ····const-wide/16·v1,·0x1 |
| |
111 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/TimeUnit;->toMillis(J)J | 103 | ····invoke-virtual·{v0,·v1,·v2},·Ljava/util/concurrent/TimeUnit;->toMillis(J)J |
| |
112 | ····move-result-wide·v0 | |
| |
113 | ····sput-wide·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->MODEL_DOWNLOAD_BACKOFF_DELAY_IN_MILLIS_DEFAULT:J | |
| |
114 | ····const/4·v0,·0x3 | 104 | ····const/4·v0,·0x3 |
| |
115 | ····new-array·v0,·v0,·[F | 105 | ····new-array·v0,·v0,·[F |
| |
116 | ····.line·4 | 106 | ····.line·4 |
117 | ····fill-array-data·v0,·:array_0 | 107 | ····fill-array-data·v0,·:array_0 |
| |
Offset 130, 14 lines modified | Offset 118, 16 lines modified |
| |
130 | ····invoke-direct·{v0},·Lcom/android/textclassifier/common/TextClassifierSettings$1;-><init>()V | 118 | ····invoke-direct·{v0},·Lcom/android/textclassifier/common/TextClassifierSettings$1;-><init>()V |
| |
131 | ····sput-object·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->DEFAULT_DEVICE_CONFIG:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | 119 | ····sput-object·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->DEFAULT_DEVICE_CONFIG:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; |
| |
132 | ····return-void | 120 | ····return-void |
| |
| 121 | ····nop |
| |
133 | ····:array_0 | 122 | ····:array_0 |
134 | ····.array-data·4 | 123 | ····.array-data·4 |
135 | ········0x41a00000····#·20.0f | 124 | ········0x41a00000····#·20.0f |
136 | ········0x3f800000····#·1.0f | 125 | ········0x3f800000····#·1.0f |
137 | ········0x3ecccccd····#·0.4f | 126 | ········0x3ecccccd····#·0.4f |
138 | ····.end·array-data | 127 | ····.end·array-data |
139 | .end·method | 128 | .end·method |
Offset 199, 15 lines modified | Offset 189, 15 lines modified |
199 | ····:cond_0 | 189 | ····:cond_0 |
200 | ····return-object·p2 | 190 | ····return-object·p2 |
201 | .end·method | 191 | .end·method |
| |
| |
202 | #·virtual·methods | 192 | #·virtual·methods |
203 | .method·public·dump(Lcom/android/textclassifier/utils/IndentingPrintWriter;)V | 193 | .method·public·dump(Lcom/android/textclassifier/utils/IndentingPrintWriter;)V |
204 | ····.locals·9 | 194 | ····.locals·8 |
| |
205 | ····const-string·v0,·"TextClassifierSettings:" | 195 | ····const-string·v0,·"TextClassifierSettings:" |
| |
206 | ····.line·1 | 196 | ····.line·1 |
207 | ····invoke-virtual·{p1,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->println(Ljava/lang/String;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | 197 | ····invoke-virtual·{p1,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->println(Ljava/lang/String;)Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
208 | ····.line·2 | 198 | ····.line·2 |
Offset 335, 80 lines modified | Offset 325, 78 lines modified |
| |
335 | ····const/4·v5,·0x0 | 325 | ····const/4·v5,·0x0 |
| |
336 | ····invoke-interface·{v2,·v1,·v4,·v5},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | 326 | ····invoke-interface·{v2,·v1,·v4,·v5},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; |
| |
337 | ····move-result-object·v2 | 327 | ····move-result-object·v2 |
| |
338 | ····const/4·v5,·0x0 | |
| |
339 | ····if-eqz·v2,·:cond_2 | 328 | ····if-eqz·v2,·:cond_2 |
| |
340 | ····const-string·v6,·":" | 329 | ····const-string·v5,·":" |
| |
341 | ····.line·19 | 330 | ····.line·19 |
342 | ····invoke-static·{v6},·Lcom/google/common/base/Splitter;->onPattern(Ljava/lang/String;)Lcom/google/common/base/Splitter; | 331 | ····invoke-static·{v5},·Lcom/google/common/base/Splitter;->onPattern(Ljava/lang/String;)Lcom/google/common/base/Splitter; |
| |
343 | ····move-result-object·v6 | 332 | ····move-result-object·v5 |
| |
344 | ····invoke-virtual·{v6,·v2},·Lcom/google/common/base/Splitter;->splitToList(Ljava/lang/CharSequence;)Ljava/util/List; | 333 | ····invoke-virtual·{v5,·v2},·Lcom/google/common/base/Splitter;->splitToList(Ljava/lang/CharSequence;)Ljava/util/List; |
| |
345 | ····move-result-object·v2 | 334 | ····move-result-object·v2 |
| |
346 | ····.line·20 | 335 | ····.line·20 |
347 | ····invoke-interface·{v2},·Ljava/util/List;->size()I | 336 | ····invoke-interface·{v2},·Ljava/util/List;->size()I |
| |
348 | ····move-result·v6 | 337 | ····move-result·v5 |
| |
349 | ····array-length·v7,·v0 | 338 | ····array-length·v6,·v0 |
| |
350 | ····if-eq·v6,·v7,·:cond_0 | 339 | ····if-eq·v5,·v6,·:cond_0 |
| |
351 | ····goto·:goto_1 | 340 | ····goto·:goto_1 |
| |
352 | ····.line·21 | 341 | ····.line·21 |
353 | ····:cond_0 | 342 | ····:cond_0 |
354 | ····invoke-interface·{v2},·Ljava/util/List;->size()I | 343 | ····invoke-interface·{v2},·Ljava/util/List;->size()I |
| |
355 | ····move-result·v6 | 344 | ····move-result·v5 |
| |
356 | ····new-array·v6,·v6,·[F | 345 | ····new-array·v5,·v5,·[F |
| |
357 | ····move·v7,·v5 | 346 | ····const/4·v6,·0x0 |
| |
358 | ····.line·22 | 347 | ····.line·22 |
359 | ····:goto_0 | 348 | ····:goto_0 |
360 | ····invoke-interface·{v2},·Ljava/util/List;->size()I | 349 | ····invoke-interface·{v2},·Ljava/util/List;->size()I |
| |
361 | ····move-result·v8 | 350 | ····move-result·v7 |
| |
362 | ····if-ge·v7,·v8,·:cond_1 | 351 | ····if-ge·v6,·v7,·:cond_1 |
| |
363 | ····.line·23 | 352 | ····.line·23 |
364 | ····:try_start_0 | 353 | ····:try_start_0 |
365 | ····invoke-interface·{v2,·v7},·Ljava/util/List;->get(I)Ljava/lang/Object; | 354 | ····invoke-interface·{v2,·v6},·Ljava/util/List;->get(I)Ljava/lang/Object; |
| |
366 | ····move-result-object·v8 | 355 | ····move-result-object·v7 |
| |
367 | ····check-cast·v8,·Ljava/lang/String; | 356 | ····check-cast·v7,·Ljava/lang/String; |
| |
368 | ····invoke-static·{v8},·Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F | 357 | ····invoke-static·{v7},·Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F |
| |
369 | ····move-result·v8 | 358 | ····move-result·v7 |
| |
370 | ····aput·v8,·v6,·v7 | 359 | ····aput·v7,·v5,·v6 |
371 | ····:try_end_0 | 360 | ····:try_end_0 |
372 | ····.catch·Ljava/lang/NumberFormatException;·{:try_start_0·..·:try_end_0}·:catch_0 | 361 | ····.catch·Ljava/lang/NumberFormatException;·{:try_start_0·..·:try_end_0}·:catch_0 |
| |
373 | ····add-int/lit8·v7,·v7,·0x1 | 362 | ····add-int/lit8·v6,·v6,·0x1 |
| |
374 | ····goto·:goto_0 | 363 | ····goto·:goto_0 |
| |
375 | ····:cond_1 | 364 | ····:cond_1 |
376 | ····move-object·v0,·v6 | 365 | ····move-object·v0,·v5 |
| |
377 | ····.line·24 | 366 | ····.line·24 |
378 | ····:catch_0 | 367 | ····:catch_0 |
379 | ····:cond_2 | 368 | ····:cond_2 |
380 | ····:goto_1 | 369 | ····:goto_1 |
381 | ····invoke-static·{v0},·Ljava/util/Arrays;->toString([F)Ljava/lang/String; | 370 | ····invoke-static·{v0},·Ljava/util/Arrays;->toString([F)Ljava/lang/String; |
| |
Offset 539, 115 lines modified | Offset 527, 65 lines modified |
539 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | 527 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
540 | ····.line·39 | 528 | ····.line·39 |
541 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | 529 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; |
| |
542 | ····const/4·v2,·0x5 | 530 | ····const/4·v2,·0x5 |
| |
543 | ····const-string·v3,·"model_download_worker_max_attempts" | 531 | ····const-string·v3,·"model_download_max_attempts" |
| |
544 | ····invoke-interface·{v0,·v1,·v3,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | 532 | ····invoke-interface·{v0,·v1,·v3,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I |
| |
545 | ····move-result·v0 | 533 | ····move-result·v0 |
| |
546 | ····.line·40 | 534 | ····.line·40 |
547 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | 535 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
548 | ····move-result-object·v0 | 536 | ····move-result-object·v0 |
| |
549 | ····invoke-virtual·{p1,·v3,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | 537 | ····invoke-virtual·{p1,·v3,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
550 | ····.line·41 | 538 | ····.line·41 |
551 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
552 | ····const/4·v2,·0x3 | |
| |
553 | ····const-string·v3,·"manifest_download_max_attempts" | |
| |
554 | ····invoke-interface·{v0,·v1,·v3,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | |
| |
555 | ····move-result·v0 | |
| |
556 | ····.line·42 | |
557 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | |
| |
558 | ····move-result-object·v0 | |
| |
559 | ····invoke-virtual·{p1,·v3,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | |
| |
560 | ····.line·43 | |
561 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
562 | ····const-string·v2,·"manifest_download_requires_charging" | |
| |
563 | ····invoke-interface·{v0,·v1,·v2,·v5},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getBoolean(Ljava/lang/String;Ljava/lang/String;Z)Z | |
| |
564 | ····move-result·v0 | |
| |
565 | ····.line·44 | |
566 | ····invoke-static·{v0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; | |
| |
567 | ····move-result-object·v0 | |
| |
568 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | |
| |
569 | ····.line·45 | |
570 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
571 | ····const-string·v2,·"manifest_download_requires_device_idle" | |
| |
572 | ····invoke-interface·{v0,·v1,·v2,·v5},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getBoolean(Ljava/lang/String;Ljava/lang/String;Z)Z | |
| |
573 | ····move-result·v0 | |
| |
574 | ····.line·46 | |
575 | ····invoke-static·{v0},·Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean; | |
| |
576 | ····move-result-object·v0 | |
| |
577 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | |
| |
578 | ····.line·47 | |
579 | ····invoke-virtual·{p1},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->decreaseIndent()Lcom/android/textclassifier/utils/IndentingPrintWriter; | 539 | ····invoke-virtual·{p1},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->decreaseIndent()Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
580 | ····.line·48 | 540 | ····.line·42 |
581 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | 541 | ····iget-object·v0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; |
| |
582 | ····const-string·v2,·"textclassifier_api_log_sample_rate" | 542 | ····const-string·v2,·"textclassifier_api_log_sample_rate" |
| |
583 | ····const/16·v3,·0xa | 543 | ····const/16·v3,·0xa |
| |
584 | ····invoke-interface·{v0,·v1,·v2,·v3},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | 544 | ····invoke-interface·{v0,·v1,·v2,·v3},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I |
| |
585 | ····move-result·v0 | 545 | ····move-result·v0 |
| |
586 | ····.line·49 | 546 | ····.line·43 |
587 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | 547 | ····invoke-static·{v0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
588 | ····move-result-object·v0 | 548 | ····move-result-object·v0 |
| |
589 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | 549 | ····invoke-virtual·{p1,·v2,·v0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
590 | ····.line·50 | 550 | ····.line·44 |
591 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | 551 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; |
| |
592 | ····const-string·v0,·"session_id_to_context_cache_size" | 552 | ····const-string·v0,·"session_id_to_context_cache_size" |
| |
593 | ····invoke-interface·{p0,·v1,·v0,·v3},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | 553 | ····invoke-interface·{p0,·v1,·v0,·v3},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I |
| |
594 | ····move-result·p0 | 554 | ····move-result·p0 |
| |
595 | ····.line·51 | 555 | ····.line·45 |
596 | ····invoke-static·{p0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; | 556 | ····invoke-static·{p0},·Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
| |
597 | ····move-result-object·p0 | 557 | ····move-result-object·p0 |
| |
598 | ····invoke-virtual·{p1,·v0,·p0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; | 558 | ····invoke-virtual·{p1,·v0,·p0},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->printPair(Ljava/lang/String;Ljava/lang/Object;)Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
599 | ····.line·52 | 559 | ····.line·46 |
600 | ····invoke-virtual·{p1},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->decreaseIndent()Lcom/android/textclassifier/utils/IndentingPrintWriter; | 560 | ····invoke-virtual·{p1},·Lcom/android/textclassifier/utils/IndentingPrintWriter;->decreaseIndent()Lcom/android/textclassifier/utils/IndentingPrintWriter; |
| |
601 | ····return-void | 561 | ····return-void |
602 | .end·method | 562 | .end·method |
| |
603 | .method·public·getClassifyTextMaxRangeLength()I | 563 | .method·public·getClassifyTextMaxRangeLength()I |
604 | ····.locals·3 | 564 | ····.locals·3 |
Offset 781, 311 lines modified | Offset 719, 14 lines modified |
781 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getFloat(Ljava/lang/String;Ljava/lang/String;F)F | 719 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getFloat(Ljava/lang/String;Ljava/lang/String;F)F |
| |
782 | ····move-result·p0 | 720 | ····move-result·p0 |
| |
783 | ····return·p0 | 721 | ····return·p0 |
784 | .end·method | 722 | .end·method |
| |
785 | .method·public·getLanguageTagsForManifestURL(Ljava/lang/String;)Lcom/google/common/collect/ImmutableList; | |
786 | ····.locals·4 | |
| |
787 | ····const/4·v0,·0x2 | |
| |
788 | ····new-array·v0,·v0,·[Ljava/lang/Object; | |
| |
789 | ····const/4·v1,·0x0 | |
| |
790 | ····aput-object·p1,·v0,·v1 | |
| |
791 | ····const/4·p1,·0x1 | |
| |
792 | ····const-string·v2,·"" | |
| |
793 | ····aput-object·v2,·v0,·p1 | |
| |
794 | ····const-string·p1,·"manifest_url_%s_%s" | |
| |
795 | ····.line·1 | |
796 | ····invoke-static·{p1,·v0},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; | |
| |
797 | ····move-result-object·p1 | |
| |
798 | ····.line·2 | |
799 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
800 | ····new-array·v0,·v1,·[Ljava/lang/String; | |
| |
801 | ····const-string·v1,·"textclassifier" | |
| |
802 | ····invoke-interface·{p0,·v1,·v0},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getProperties(Ljava/lang/String;[Ljava/lang/String;)Landroid/provider/DeviceConfig$Properties; | |
| |
803 | ····move-result-object·p0 | |
| |
804 | ····.line·3 | |
805 | ····sget·v0,·Lcom/google/common/collect/ImmutableList;->$r8$clinit:I | |
| |
806 | ····.line·4 | |
807 | ····new-instance·v0,·Lcom/google/common/collect/ImmutableList$Builder; | |
| |
808 | ····invoke-direct·{v0},·Lcom/google/common/collect/ImmutableList$Builder;-><init>()V | |
| |
809 | ····.line·5 | |
810 | ····invoke-virtual·{p0},·Landroid/provider/DeviceConfig$Properties;->getKeyset()Ljava/util/Set; | |
| |
811 | ····move-result-object·v1 | |
| |
812 | ····invoke-interface·{v1},·Ljava/util/Set;->iterator()Ljava/util/Iterator; | |
| |
813 | ····move-result-object·v1 | |
| |
814 | ····:cond_0 | |
815 | ····:goto_0 | |
816 | ····invoke-interface·{v1},·Ljava/util/Iterator;->hasNext()Z | |
| |
817 | ····move-result·v2 | |
| |
818 | ····if-eqz·v2,·:cond_2 | |
| |
819 | ····invoke-interface·{v1},·Ljava/util/Iterator;->next()Ljava/lang/Object; | |
| |
820 | ····move-result-object·v2 | |
| |
821 | ····check-cast·v2,·Ljava/lang/String; | |
| |
822 | ····.line·6 | |
823 | ····invoke-virtual·{v2,·p1},·Ljava/lang/String;->startsWith(Ljava/lang/String;)Z | |
| |
824 | ····move-result·v3 | |
| |
825 | ····if-nez·v3,·:cond_1 | |
| |
826 | ····goto·:goto_0 | |
| |
827 | ····:cond_1 | |
828 | ····const/4·v3,·0x0 | |
| |
829 | ····.line·7 | |
830 | ····invoke-virtual·{p0,·v2,·v3},·Landroid/provider/DeviceConfig$Properties;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | |
| |
831 | ····move-result-object·v3 | |
| |
832 | ····.line·8 | |
833 | ····invoke-static·{v3},·Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | |
| |
834 | ····move-result·v3 | |
| |
835 | ····if-nez·v3,·:cond_0 | |
| |
836 | ····.line·9 | |
837 | ····invoke-virtual·{p1},·Ljava/lang/String;->length()I | |
| |
838 | ····move-result·v3 | |
| |
839 | ····invoke-virtual·{v2,·v3},·Ljava/lang/String;->substring(I)Ljava/lang/String; | |
| |
840 | ····move-result-object·v2 | |
| |
841 | ····invoke-virtual·{v0,·v2},·Lcom/google/common/collect/ImmutableList$Builder;->add(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList$Builder; | |
| |
842 | ····goto·:goto_0 | |
| |
843 | ····.line·10 | |
844 | ····:cond_2 | |
845 | ····invoke-virtual·{v0},·Lcom/google/common/collect/ImmutableList$Builder;->build()Lcom/google/common/collect/ImmutableList; | |
| |
846 | ····move-result-object·p0 | |
| |
847 | ····return-object·p0 | |
848 | .end·method | |
| |
849 | .method·public·getManifestDownloadMaxAttempts()I | |
850 | ····.locals·3 | |
| |
851 | ····.line·1 | |
852 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
853 | ····const-string·v0,·"textclassifier" | |
| |
854 | ····const-string·v1,·"manifest_download_max_attempts" | |
| |
855 | ····const/4·v2,·0x3 | |
| |
856 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | |
| |
857 | ····move-result·p0 | |
| |
858 | ····return·p0 | |
859 | .end·method | |
| |
860 | .method·public·getManifestDownloadRequiredNetworkType()Ljava/lang/String; | |
861 | ····.locals·3 | |
| |
862 | ····.line·1 | |
863 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
864 | ····const-string·v0,·"textclassifier" | |
| |
865 | ····const-string·v1,·"manifest_download_required_network_type" | |
| |
866 | ····const-string·v2,·"UNMETERED" | |
| |
867 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | |
| |
868 | ····move-result-object·p0 | |
| |
869 | ····return-object·p0 | |
870 | .end·method | |
| |
871 | .method·public·getManifestDownloadRequiresCharging()Z | |
872 | ····.locals·3 | |
| |
873 | ····.line·1 | |
874 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
875 | ····const-string·v0,·"textclassifier" | |
| |
876 | ····const-string·v1,·"manifest_download_requires_charging" | |
| |
877 | ····const/4·v2,·0x0 | |
| |
878 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getBoolean(Ljava/lang/String;Ljava/lang/String;Z)Z | |
| |
879 | ····move-result·p0 | |
| |
880 | ····return·p0 | |
881 | .end·method | |
| |
882 | .method·public·getManifestDownloadRequiresDeviceIdle()Z | |
883 | ····.locals·3 | |
| |
884 | ····.line·1 | |
885 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
886 | ····const-string·v0,·"textclassifier" | |
| |
887 | ····const-string·v1,·"manifest_download_requires_device_idle" | |
| |
888 | ····const/4·v2,·0x0 | |
| |
889 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getBoolean(Ljava/lang/String;Ljava/lang/String;Z)Z | |
| |
890 | ····move-result·p0 | |
| |
891 | ····return·p0 | |
892 | .end·method | |
| |
893 | .method·public·getManifestURL(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | |
894 | ····.locals·2 | |
| |
895 | ····const/4·v0,·0x2 | |
| |
896 | ····new-array·v0,·v0,·[Ljava/lang/Object; | |
| |
897 | ····const/4·v1,·0x0 | |
| |
898 | ····aput-object·p1,·v0,·v1 | |
| |
899 | ····const/4·p1,·0x1 | |
| |
900 | ····aput-object·p2,·v0,·p1 | |
| |
901 | ····const-string·p1,·"manifest_url_%s_%s" | |
| |
902 | ····.line·1 | |
903 | ····invoke-static·{p1,·v0},·Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; | |
| |
904 | ····move-result-object·p1 | |
| |
905 | ····.line·2 | |
906 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
907 | ····const-string·p2,·"textclassifier" | |
| |
908 | ····const-string·v0,·"" | |
| |
909 | ····invoke-interface·{p0,·p2,·p1,·v0},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | |
| |
910 | ····move-result-object·p0 | |
| |
911 | ····return-object·p0 | |
912 | .end·method | |
| |
913 | .method·public·getModelDownloadBackoffDelayInMillis()J | |
914 | ····.locals·4 | |
| |
915 | ····.line·1 | |
916 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
917 | ····sget-wide·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->MODEL_DOWNLOAD_BACKOFF_DELAY_IN_MILLIS_DEFAULT:J | |
| |
918 | ····const-string·v2,·"textclassifier" | |
| |
919 | ····const-string·v3,·"model_download_backoff_delay_in_millis" | |
| |
920 | ····invoke-interface·{p0,·v2,·v3,·v0,·v1},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getLong(Ljava/lang/String;Ljava/lang/String;J)J | |
| |
921 | ····move-result-wide·v0 | |
| |
922 | ····return-wide·v0 | |
923 | .end·method | |
| |
924 | .method·public·getModelDownloadWorkerMaxAttempts()I | |
925 | ····.locals·3 | |
| |
926 | ····.line·1 | |
927 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
928 | ····const-string·v0,·"textclassifier" | |
| |
929 | ····const-string·v1,·"model_download_worker_max_attempts" | |
| |
930 | ····const/4·v2,·0x5 | |
| |
931 | ····invoke-interface·{p0,·v0,·v1,·v2},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getInt(Ljava/lang/String;Ljava/lang/String;I)I | |
| |
932 | ····move-result·p0 | |
| |
933 | ····return·p0 | |
934 | .end·method | |
| |
935 | .method·public·getModelUrlBlocklist()Lcom/google/common/collect/ImmutableList; | |
936 | ····.locals·4 | |
| |
937 | ····const-string·v0,·"," | |
| |
938 | ····.line·1 | |
939 | ····invoke-static·{v0},·Lcom/google/common/base/Splitter;->on(Ljava/lang/String;)Lcom/google/common/base/Splitter; | |
| |
940 | ····move-result-object·v0 | |
| |
941 | ····iget-object·p0,·p0,·Lcom/android/textclassifier/common/TextClassifierSettings;->deviceConfig:Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig; | |
| |
942 | ····const-string·v1,·"textclassifier" | |
| |
943 | ····const-string·v2,·"model_url_blocklist" | |
| |
944 | ····const-string·v3,·"" | |
| |
945 | ····.line·2 | |
946 | ····invoke-interface·{p0,·v1,·v2,·v3},·Lcom/android/textclassifier/common/TextClassifierSettings$IDeviceConfig;->getString(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; | |
| |
947 | ····move-result-object·p0 | |
| |
948 | ····invoke-virtual·{v0,·p0},·Lcom/google/common/base/Splitter;->split(Ljava/lang/CharSequence;)Ljava/lang/Iterable; | |
| |
949 | ····move-result-object·p0 | |
| |
950 | ····.line·3 | |
951 | ····invoke-static·{p0},·Lcom/google/common/collect/ImmutableList;->copyOf(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList; | |
| |
952 | ····move-result-object·p0 | |
| |
953 | ····return-object·p0 | |
954 | .end·method | |
| |
955 | .method·public·getNotificationConversationActionTypes()Ljava/util/List; | 723 | .method·public·getNotificationConversationActionTypes()Ljava/util/List; |
956 | ····.locals·2 | 724 | ····.locals·2 |
| |
957 | ····.line·1 | 725 | ····.line·1 |
958 | ····sget-object·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->CONVERSATION_ACTIONS_TYPES_DEFAULT_VALUES:Lcom/google/common/collect/ImmutableList; | 726 | ····sget-object·v0,·Lcom/android/textclassifier/common/TextClassifierSettings;->CONVERSATION_ACTIONS_TYPES_DEFAULT_VALUES:Lcom/google/common/collect/ImmutableList; |
| |
959 | ····const-string·v1,·"notification_conversation_action_types_default" | 727 | ····const-string·v1,·"notification_conversation_action_types_default" |