[ConfigImapct] Add models of SharedPreferences methods

Summary:
This diff adds models of `SharedPreferences.get*` methods which are DB access.

https://developer.android.com/reference/android/content/SharedPreferences

Reviewed By: ezgicicek

Differential Revision: D28220827

fbshipit-source-id: 5a78b09be
master
Sungkeun Cho 4 years ago committed by Facebook GitHub Bot
parent cc8b6fb8c1
commit e5d52c3dc3

@ -513,6 +513,11 @@ module Dom = struct
let open ProcnameDispatcher.Call in let open ProcnameDispatcher.Call in
make_dispatcher make_dispatcher
[ +BuiltinDecl.(match_builtin __cast) <>--> KnownCheap [ +BuiltinDecl.(match_builtin __cast) <>--> KnownCheap
; +PatternMatch.Java.implements_android "content.SharedPreferences"
&:: "edit" &--> KnownExpensive
; +PatternMatch.Java.implements_android "content.SharedPreferences"
&::+ (fun _ method_name -> String.is_prefix method_name ~prefix:"get")
&--> KnownExpensive
; +PatternMatch.Java.implements_google "common.base.Preconditions" ; +PatternMatch.Java.implements_google "common.base.Preconditions"
&:: "checkArgument" $ any_arg $+ any_arg $+...$--> KnownExpensive &:: "checkArgument" $ any_arg $+ any_arg $+...$--> KnownExpensive
; +PatternMatch.Java.implements_google "common.base.Preconditions" ; +PatternMatch.Java.implements_google "common.base.Preconditions"

Loading…
Cancel
Save