Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
main.com.xml.guard.utils.DeclarationHelper.kt Maven / Gradle / Ivy
package com.xml.guard.utils
private val declarationBlackList by lazy {
hashSetOf(
// Activity
"onCreate",
"onStart",
"onResume",
"onPause",
"onStop",
"onDestroy",
"onRestart",
"onPostCreate",
"onPostResume",
"onNewIntent",
"onSaveInstanceState",
"onRestoreInstanceState",
"onActivityResult",
"onBackPressed",
"onTouchEvent",
"onKeyDown",
"onKeyUp",
"onDown",
"onFling",
"onWindowFocusChanged",
"onConfigurationChanged",
"onCreateOptionsMenu",
"onOptionsItemSelected",
"onPrepareOptionsMenu",
"onContextItemSelected",
"onAttachFragment",
"onDetachedFromWindow",
"onLowMemory",
"onTrimMemory",
"onNightModeChanged",
"setContentView",
"onKeyLongPress",
"onTrackballEvent",
"onGenericMotionEvent",
"onCreatePanelView",
"onCreatePanelMenu",
"onPreparePanel",
"onPanelClosed",
"onContentChanged",
"onVisibleBehindCanceled",
"onEnterAnimationComplete",
"onPictureInPictureModeChanged",
"onMultiWindowModeChanged",
"onCreateContextMenu",
"onActivityCreated",
"onActivityStarted",
"onActivityResumed",
"onActivityPaused",
"onActivityStopped",
"onActivitySaveInstanceState",
"onActivityDestroyed",
"handleOnBackPressed",
// Fragment
"onAttach",
"onCreateView",
"onViewCreated",
"onDestroyView",
"onDetach",
"onViewStateRestored",
"onHiddenChanged",
"onInflate",
// Service
"onStartCommand",
"onBind",
"onUnbind",
"onRebind",
"stopSelf",
"stopService",
"startForeground",
"stopForeground",
"onTaskRemoved",
// BroadcastReceiver
"onReceive",
"abortBroadcast",
"clearAbortBroadcast",
"getAbortBroadcast",
"isInitialStickyBroadcast",
"isOrderedBroadcast",
"setResult",
"getResultCode",
"getResultData",
"getResultExtras",
"setResultCode",
"setResultData",
"setResultExtras",
// ContentProvider
"query",
"insert",
"update",
"delete",
"getType",
// Context
"getSystemService",
"getApplicationContext",
"getContentResolver",
"getResources",
"getPackageManager",
"getAssets",
"getSharedPreferences",
"openFileInput",
"openFileOutput",
"getExternalFilesDir",
"registerReceiver",
"unregisterReceiver",
"startService",
"bindService",
"unbindService",
"startActivity",
"sendBroadcast",
"sendOrderedBroadcast",
"checkCallingOrSelfPermission",
"getClassLoader",
// Resources
"getText",
"getQuantityString",
"getTextArray",
"getInteger",
"getColor",
"getDrawable",
"getDimension",
"getDimensionPixelSize",
"getDimensionPixelOffset",
"getDisplayMetrics",
"getConfiguration",
"openRawResource",
"openRawResourceFd",
"getIdentifier",
"getResourceId",
"loadAnimation",
// Adapter
"onCreateViewHolder",
"onBindViewHolder",
"getItemCount",
"getItemViewType",
"notifyItemInserted",
"notifyItemRemoved",
"notifyItemChanged",
"setHasStableIds",
"getAdapterPosition",
"getBindingAdapterPosition",
"getLayoutPosition",
"getItemId",
"getPayload",
"setHasFixedSize",
"setOnItemClickListener",
"setOnItemLongClickListener",
"setOnItemSelectedListener",
"scrollToPosition",
"smoothScrollToPosition",
"onAttachedToRecyclerView",
"onDetachedFromRecyclerView",
"createFragment",
// View
"invalidate",
"requestLayout",
"measure",
"setLayoutParams",
"getWidth",
"getHeight",
"setOnClickListener",
"setOnLongClickListener",
"setOnTouchListener",
"dispatchTouchEvent",
"animate",
"startAnimation",
"clearAnimation",
"setVisibility",
"getVisibility",
"setEnabled",
"isEnabled",
"isFocused",
"setFocusable",
"setX",
"setY",
"getX",
"getY",
"setTranslationX",
"setTranslationY",
"setBackgroundColor",
"setBackgroundResource",
"setBackground",
"setAlpha",
"getAlpha",
"scrollTo",
"scrollBy",
"addOnLayoutChangeListener",
"removeOnLayoutChangeListener",
"draw",
"onDraw",
"onMeasure",
"addView",
// 事件交互
"onClick",
"onLongClick",
"onTouch",
"onFocusChange",
"onKey",
"onSizeChanged",
"onLayout",
"onScrollChanged",
"onDrag",
"onScrollStateChanged",
"onFling",
"onScroll",
"onSingleTapUp",
"onDoubleTap",
"onAnimationStart",
"onAnimationEnd",
"onAnimationCancel",
"onAnimationRepeat",
"onAnimationUpdate",
// Bundle
"putBoolean",
"putByte",
"putChar",
"putShort",
"putInt",
"putLong",
"putFloat",
"putDouble",
"putString",
"putBooleanArray",
"putByteArray",
"putCharArray",
"putShortArray",
"putIntArray",
"putLongArray",
"putFloatArray",
"putDoubleArray",
"putStringArray",
"putParcelable",
"putParcelableArray",
"putParcelableArrayList",
"putSerializable",
"putBundle",
"putSparseParcelableArray",
"getBoolean",
"getByte",
"getChar",
"getShort",
"getInt",
"getLong",
"getFloat",
"getDouble",
"getString",
"getBooleanArray",
"getByteArray",
"getCharArray",
"getShortArray",
"getIntArray",
"getLongArray",
"getFloatArray",
"getDoubleArray",
"getStringArray",
"getParcelable",
"getParcelableArray",
"getParcelableArrayList",
"getSerializable",
"getBundle",
"getSparseParcelableArray",
"containsKey",
"remove",
"clear",
"isEmpty",
"size",
"keySet",
"getStringSet",
"getAll",
// Parcelable
"createFromParcel",
"newArray",
"describeContents",
"writeToParcel",
"CREATOR",
// Handler
"handleMessage",
"sendMessage",
"sendMessageAtTime",
"sendMessageDelayed",
"post",
"postAtTime",
"postDelayed",
"removeMessages",
"removeCallbacks",
"removeCallbacksAndMessages",
"hasMessages",
"getLooper",
"sendMessageAtFrontOfQueue",
// TabLayout
"onConfigureTab",
"onTabSelected",
"onTabUnselected",
"onTabReselected",
// Account
"addAccount",
"confirmCredentials",
"editProperties",
"getAuthToken",
"getAuthTokenLabel",
"hasFeatures",
"updateCredentials",
"onPerformSync",
// Gson
"toJson",
"fromJson",
"gson",
"json",
"newJsonReader",
"newJsonWriter",
"fromJsonTree",
"toJsonTree",
"serializeNulls",
"setPrettyPrinting",
"registerTypeAdapter",
"create",
// TextChanged
"beforeTextChanged",
"onTextChanged",
"afterTextChanged",
// CountDownTimer
"onTick",
"onFinish",
// SSL
"checkClientTrusted",
"checkServerTrusted",
"getAcceptedIssuers",
// LifecycleOwner
"onStateChanged",
"removeObserver",
"getViewModelStore",
// InstallReferrer
"onInstallReferrerSetupFinished",
"onInstallReferrerServiceDisconnected",
// ViewPager2
"onPageScrolled",
"onPageSelected",
"onPageScrollStateChanged",
"setOrientation",
"registerOnPageChangeCallback",
"unregisterOnPageChangeCallback",
// DiffUtil
"areItemsTheSame",
"areContentsTheSame",
"getOldListSize",
"getNewListSize",
"areItemsTheSame",
"areContentsTheSame",
// defType
"id",
"layout",
"string",
"color",
"style",
"integer",
"dimen",
"animator",
"drawable",
"bool",
"plurals",
"fraction",
"array",
"styleable",
"anim",
"values",
// Date
"year",
"month",
"day",
"hour",
"minute",
"second",
// Other
"activity",
"fragment",
"context",
"android",
"androidx",
"java",
"javax",
"kotlin",
"view",
"text",
"intent",
"data",
"object",
"adapter",
"start",
"run",
"cache",
"check",
"load",
"show",
"referrer",
"database",
"contains",
"add",
"put",
"set",
"get",
"init",
"equals",
"next",
"iterator",
"entry",
"observer",
"dismiss",
"release",
"pause",
"stop",
"invoke",
"min",
"max",
"key",
"value",
"enqueue",
"decode",
"encode",
"format",
"length",
"append",
// Other2
"getInstance",
"doWork",
"getValue",
"toString",
"getKey",
"setValue",
"hasNext",
"hashCode",
"onCreateDialog",
"isConnected",
"getActiveNetworkInfo",
"setData",
"putAll",
"widthPixels",
"heightPixels",
)
}
fun String.inDeclarationBlackList() = this in declarationBlackList