增加华瑞安测试
This commit is contained in:
@@ -17,6 +17,8 @@ android {
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.tt.ttutils"
|
||||
//https://github.com/flutter/flutter/issues/58758
|
||||
//There are no CERT files because If the mini sdk version is 23+, the AGP will ignore the V1 scheme signature.
|
||||
minSdkVersion 26
|
||||
targetSdkVersion 30
|
||||
// versionCode 1
|
||||
|
||||
@@ -57,16 +57,16 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/ImmerseTheme">
|
||||
<activity android:name=".activity.AoleyunTestActivity">
|
||||
<!-- <intent-filter>-->
|
||||
<!-- <action android:name="android.intent.action.MAIN" />-->
|
||||
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
|
||||
<!-- </intent-filter>-->
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity android:name=".activity.main.MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
<!-- <intent-filter>-->
|
||||
<!-- <action android:name="android.intent.action.MAIN" />-->
|
||||
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
|
||||
<!-- </intent-filter>-->
|
||||
</activity>
|
||||
<activity android:name=".activity.KotlinMainActivity">
|
||||
<!-- <intent-filter> -->
|
||||
|
||||
@@ -184,15 +184,18 @@ public class AoleyunTestActivity extends BaseActivity {
|
||||
|
||||
private void init() {
|
||||
bt_usb_charge.setOnClickListener(view -> {
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_charge").setPackage("com.android.settings");
|
||||
// Intent usbIntent = new Intent("aole_action_usb_usb_charge").setPackage("com.android.settings");
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_charge");
|
||||
sendBroadcast(usbIntent);
|
||||
});
|
||||
bt_usb_mtp.setOnClickListener(view -> {
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_mtp").setPackage("com.android.settings");
|
||||
// Intent usbIntent = new Intent("aole_action_usb_usb_mtp").setPackage("com.android.settings");
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_mtp");
|
||||
sendBroadcast(usbIntent);
|
||||
});
|
||||
bt_usb_midi.setOnClickListener(view -> {
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_midi").setPackage("com.android.settings");
|
||||
// Intent usbIntent = new Intent("aole_action_usb_usb_midi").setPackage("com.android.settings");
|
||||
Intent usbIntent = new Intent("aole_action_usb_usb_midi");
|
||||
sendBroadcast(usbIntent);
|
||||
});
|
||||
|
||||
@@ -302,12 +305,14 @@ public class AoleyunTestActivity extends BaseActivity {
|
||||
}
|
||||
});
|
||||
bt_input_on.setOnClickListener(view -> {
|
||||
Log.e(TAG, "init: "+getInputMethodId("com.baidu.input") );
|
||||
Intent intent = new Intent("setDefaultInputMethod");
|
||||
intent.putExtra("package", getInputMethodId("com.baidu.input"));
|
||||
intent.setPackage("com.android.settings");
|
||||
sendBroadcast(intent);
|
||||
});
|
||||
bt_input_off.setOnClickListener(view -> {
|
||||
Log.e(TAG, "init: "+getInputMethodId("com.sohu.inputmethod.sogou") );
|
||||
Intent intent = new Intent("setDefaultInputMethod");
|
||||
intent.putExtra("package", getInputMethodId("com.sohu.inputmethod.sogou"));
|
||||
intent.setPackage("com.android.settings");
|
||||
|
||||
@@ -461,14 +461,14 @@
|
||||
android:layout_weight="1"
|
||||
android:maxLines="1"
|
||||
android:singleLine="true"
|
||||
android:text="on" />
|
||||
android:text="baidu" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt_input_off"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="off" />
|
||||
android:text="sogou" />
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
@@ -499,14 +499,14 @@
|
||||
android:layout_weight="1"
|
||||
android:maxLines="1"
|
||||
android:singleLine="true"
|
||||
android:text="on" />
|
||||
android:text="夸克" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/bt_browser_off"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="off" />
|
||||
android:text="Chrome" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user