summaryrefslogtreecommitdiff
path: root/tests/shared
diff options
context:
space:
mode:
author Mark Renouf <mrenouf@google.com> 2024-12-09 13:45:31 -0500
committer Mark Renouf <mrenouf@google.com> 2024-12-12 10:07:51 -0500
commitfb2d12fec30e3a6e2fce3de5b3e35eb432f6af59 (patch)
tree8d6848aa54b0daa3c98f96cc6f290acbd6838087 /tests/shared
parent4072e8974cbc43db09eb97a01ca05cbb0171acdc (diff)
Replace injection of 'FeatureFlags' with static flag references
Flag methods should be statically imported and called directly. This aligns usage with SystemUI best practices. For tests, flags are overridden using the @EnableFlags or @DisableFlags test method annotations. Bug: NONE simple cleanup Flag: NONE no functional change Test: NONE no functional change Change-Id: I7213ad2dc969d8c1e1eacd88e00ee702face7cda
Diffstat (limited to 'tests/shared')
-rw-r--r--tests/shared/src/com/android/intentresolver/inject/ChooserServiceFlagsKosmos.kt24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/shared/src/com/android/intentresolver/inject/ChooserServiceFlagsKosmos.kt b/tests/shared/src/com/android/intentresolver/inject/ChooserServiceFlagsKosmos.kt
deleted file mode 100644
index 51dad82a..00000000
--- a/tests/shared/src/com/android/intentresolver/inject/ChooserServiceFlagsKosmos.kt
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (C) 2024 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package com.android.intentresolver.inject
-
-import android.service.chooser.FeatureFlagsImpl
-import com.android.systemui.kosmos.Kosmos
-
-var Kosmos.chooserServiceFlags: ChooserServiceFlags by Kosmos.Fixture { chooserServiceFlagsImpl }
-val chooserServiceFlagsImpl: FeatureFlagsImpl
- get() = FeatureFlagsImpl()