Files
app_Settings/tests/robotests/src/com/android/settings/panel/FakeSettingsPanelActivity.java
Mill Chen f6895743cf Deprecate Settings panels and its infrastructure
Bug: 328525899
Test: robotest
Change-Id: I30bc423e31e9202e70c509459f4397c296c8423f
2024-05-06 22:47:07 +00:00

35 lines
1.1 KiB
Java

/*
* Copyright (C) 2018 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.settings.panel;
import android.content.ComponentName;
import android.content.Intent;
@Deprecated(forRemoval = true)
public class FakeSettingsPanelActivity extends SettingsPanelActivity {
@Override
public ComponentName getCallingActivity() {
return new ComponentName("fake-package", "fake-class");
}
@Override
public Intent getIntent() {
final Intent intent = new Intent(FakePanelContent.FAKE_ACTION);
return intent;
}
}