gpt4 book ai didi

com.eveningoutpost.dexdrip.xdrip.isRunningTest()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 19:04:40 26 4
gpt4 key购买 nike

本文整理了Java中com.eveningoutpost.dexdrip.xdrip.isRunningTest()方法的一些代码示例,展示了xdrip.isRunningTest()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。xdrip.isRunningTest()方法的具体详情如下:
包路径:com.eveningoutpost.dexdrip.xdrip
类名称:xdrip
方法名:isRunningTest

xdrip.isRunningTest介绍

暂无

代码示例

代码示例来源:origin: jamorham/xDrip-plus

public synchronized static void initCrashlytics(Context context) {
  if ((!fabricInited) && !isRunningTest()) {
    try {
      Crashlytics crashlyticsKit = new Crashlytics.Builder()
          .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
          .build();
      Fabric.with(context, crashlyticsKit);
    } catch (Exception e) {
      Log.e(TAG, e.toString());
    }
    fabricInited = true;
  }
}

代码示例来源:origin: NightscoutFoundation/xDrip

public synchronized static void initCrashlytics(Context context) {
  if ((!fabricInited) && !isRunningTest()) {
    try {
      Crashlytics crashlyticsKit = new Crashlytics.Builder()
          .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
          .build();
      Fabric.with(context, crashlyticsKit);
    } catch (Exception e) {
      Log.e(TAG, e.toString());
    }
    fabricInited = true;
  }
}

代码示例来源:origin: jamorham/xDrip-plus

public synchronized static void initCrashlytics(Context context) {
  if ((!fabricInited && isWear2OrAbove() && !isRunningTest())) {
    try {
      Crashlytics crashlyticsKit = new Crashlytics.Builder()
          .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
          .build();
      Fabric.with(context, crashlyticsKit);
    } catch (Exception e) {
      Log.e(TAG, e.toString());
    }
    fabricInited = true;
  }
}

代码示例来源:origin: NightscoutFoundation/xDrip

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_agreement);
  JoH.fixActionBar(this);
  prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  IUnderstand = prefs.getBoolean(prefmarker, false);
  agreeCheckBox = (CheckBox) findViewById(R.id.agreeCheckBox2);
  agreeCheckBox.setChecked(IUnderstand);
  saveButton = (Button) findViewById(R.id.saveButton2);
  addListenerOnButton();
  if (xdrip.isRunningTest()) {
    findViewById(R.id.scrollView6).setScrollBarFadeDuration(100); // avoid espresso lameness
  }
}

代码示例来源:origin: jamorham/xDrip-plus

@Override
protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_agreement);
  JoH.fixActionBar(this);
  prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
  IUnderstand = prefs.getBoolean(prefmarker, false);
  agreeCheckBox = (CheckBox) findViewById(R.id.agreeCheckBox2);
  agreeCheckBox.setChecked(IUnderstand);
  saveButton = (Button) findViewById(R.id.saveButton2);
  addListenerOnButton();
  if (xdrip.isRunningTest()) {
    findViewById(R.id.scrollView6).setScrollBarFadeDuration(100); // avoid espresso lameness
  }
}

代码示例来源:origin: jamorham/xDrip-plus

!Pref.getBooleanDefaultFalse("requested_ignore_battery_optimizations_new") && !xdrip.isRunningTest()) {
Log.d(TAG, "Requesting ignore battery optimization");

代码示例来源:origin: NightscoutFoundation/xDrip

!Pref.getBooleanDefaultFalse("requested_ignore_battery_optimizations_new") && !xdrip.isRunningTest()) {
Log.d(TAG, "Requesting ignore battery optimization");

代码示例来源:origin: jamorham/xDrip-plus

if (!isRunningTest()) {
  MissedReadingService.delayedLaunch();
  NFCReaderX.handleHomeScreenScanPreference(getApplicationContext());

代码示例来源:origin: NightscoutFoundation/xDrip

if (!isRunningTest()) {
  MissedReadingService.delayedLaunch();
  NFCReaderX.handleHomeScreenScanPreference(getApplicationContext());

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com