Java Code Examples for com.orhanobut.logger.Logger#v()
The following examples show how to use
com.orhanobut.logger.Logger#v() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EHService.java From Easer with GNU General Public License v3.0 | 6 votes |
private void reloadTriggers() { Logger.v(TAG + "reloadTriggers(): setting job"); jobCH.doAfter(binder -> { Logger.v(TAG + "triggers reloading"); binder.reload(); for (LogicGraph.LogicNode node : logicGraph.initialNodes()) { CountedLotus countedLotus = lotusMap.get(node.id); if (countedLotus != null && countedLotus.getCount() > 0) { mCancelTriggers(); break; } } mSetTriggers(); Logger.d(TAG + "triggers reloaded"); }); }
Example 2
Source File: EHService.java From Easer with GNU General Public License v3.0 | 6 votes |
@Override public void onCreate() { Logger.v(TAG + "onCreate()"); super.onCreate(); ServiceUtils.Companion.startNotification(this); ActivityLogService.Companion.notifyServiceStatus(this, SERVICE_NAME, true, null); bindService(new Intent(this, ConditionHolderService.class), connection, Context.BIND_AUTO_CREATE); bindService(new Intent(this, ProfileLoaderService.class), connection, Context.BIND_AUTO_CREATE); running = true; Intent intent = new Intent(ACTION_STATE_CHANGED); sendBroadcast(intent); IntentFilter filter = new IntentFilter(); filter.addAction(ACTION_RELOAD); LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, filter); coreSkillHelper.onCreate(); Logger.i(TAG + "created"); }
Example 3
Source File: AbstractSlot.java From Easer with GNU General Public License v3.0 | 6 votes |
/** * Change the satisfaction state of the current slot. * It will notify the corresponding {@link ryey.easer.core.Lotus} (by emitting {@link android.content.Intent} with {@link #notifyLotusData} as data) iif the satisfaction state is changed. * * This method sets the {@link #satisfied} variable. */ protected synchronized void changeSatisfiedState(boolean newSatisfiedState, Bundle dynamics) { if (satisfied != null) { if (persistent && satisfied && !newSatisfiedState) { Logger.v("prevent from resetting a persistent slot back to unsatisfied"); return; } if (!retriggerable && (satisfied == newSatisfiedState)) { Logger.v("satisfied state is already %s", newSatisfiedState); return; } } satisfied = newSatisfiedState; //FIXME: remove the explicit use of core package (Lotus) Intent notifyLotusIntent = satisfied ? Lotus.NotifyIntentPrototype.obtainPositiveIntent(notifyLotusData) : Lotus.NotifyIntentPrototype.obtainNegativeIntent(notifyLotusData); notifyLotusIntent.putExtra(Lotus.EXTRA_DYNAMICS_PROPERTIES, dynamics); context.sendBroadcast(notifyLotusIntent); Logger.d("finished changeSatisfiedState to %s", newSatisfiedState); }
Example 4
Source File: EHService.java From Easer with GNU General Public License v3.0 | 5 votes |
@Override public void onDestroy() { Logger.v(TAG + "onDestroy"); super.onDestroy(); ServiceUtils.Companion.stopNotification(this); ActivityLogService.Companion.notifyServiceStatus(this, SERVICE_NAME, false, null); mCancelTriggers(); LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver); coreSkillHelper.onDestroy(); unbindService(connection); running = false; Intent intent = new Intent(ACTION_STATE_CHANGED); sendBroadcast(intent); Logger.i(TAG + "destroyed"); }
Example 5
Source File: JLog.java From Elephant with Apache License 2.0 | 5 votes |
/** * 使用 Logger 工具 */ public static void logv(String tag, String message) { if (DEBUG) { Logger.init(tag); Logger.v(message); } }
Example 6
Source File: EHService.java From Easer with GNU General Public License v3.0 | 5 votes |
@Override public void onServiceDisconnected(ComponentName componentName) { Logger.v("%s onServiceDisconnected: %s", TAG, componentName); if (componentName.getClassName().equals(ConditionHolderService.class.getName())) { jobCH.onUnbind(); } else if (componentName.getClassName().equals(ProfileLoaderService.class.getName())) { jobLP.onUnbind(); } }
Example 7
Source File: EHService.java From Easer with GNU General Public License v3.0 | 5 votes |
@Override public void onServiceConnected(ComponentName componentName, IBinder iBinder) { Logger.v("%s onServiceConnected: %s", TAG, componentName); if (componentName.getClassName().equals(ConditionHolderService.class.getName())) { jobCH.onBind((ConditionHolderService.CHBinder) iBinder); jobCH.doAfter(() -> { mSetTriggers(); return null; }); } else if (componentName.getClassName().equals(ProfileLoaderService.class.getName())) { jobLP.onBind((ProfileLoaderService.PLSBinder) iBinder); } }
Example 8
Source File: WaitForNfcActivity.java From Easer with GNU General Public License v3.0 | 5 votes |
private void resolveIntent(Intent intent) { String action = intent.getAction(); if (NfcAdapter.ACTION_TAG_DISCOVERED.equals(action) || NfcAdapter.ACTION_TECH_DISCOVERED.equals(action) || NfcAdapter.ACTION_NDEF_DISCOVERED.equals(action)) { Logger.d("NFC Tag detected"); Tag tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG); byte[] tag_id = tag.getId(); Intent return_intent = new Intent(); return_intent.putExtra(EXTRA_ID, tag_id); setResult(RESULT_OK, return_intent); Logger.v("result handed. finishing self"); finish(); } }
Example 9
Source File: ProfileLoaderService.java From Easer with GNU General Public License v3.0 | 5 votes |
@Override public void onCreate() { Logger.v("ProfileLoaderService onCreate()"); LocalBroadcastManager.getInstance(this).registerReceiver(broadcastReceiver, intentFilter); helper = new SkillHelper.OperationHelper(this); helper.begin(); ServiceUtils.Companion.startNotification(this); }
Example 10
Source File: AbstractDataStorage.java From Easer with GNU General Public License v3.0 | 5 votes |
@NonNull public T get(@NonNull String name) throws RequiredDataNotFoundException { for (T_backend backend : storage_backend_list) { try { T data = backend.get(name); if (data != null) return data; else Logger.v("data not found on backend <%s>", backend.getClass().getSimpleName()); } catch (IllegalStorageDataException e) { e.printStackTrace(); } } throw new RequiredDataNotFoundException("data <%s> not found", name); }
Example 11
Source File: SettingsActivity.java From Easer with GNU General Public License v3.0 | 5 votes |
private static void export_data(Context context) { try { File sdCard = Environment.getExternalStorageDirectory(); File dest = new File(sdCard, exportFileName()); Logger.v("Export destination: %s", dest); Helper.export_data(context, dest); Toast.makeText(context, String.format(context.getString(R.string.template_export), dest.getName()), Toast.LENGTH_SHORT).show(); } catch (IOException e) { e.printStackTrace(); } }
Example 12
Source File: NotificationSlot.java From Easer with GNU General Public License v3.0 | 4 votes |
@Override protected void onNegativeNotified(Intent intent) { Logger.v("onNegativeNotified"); changeSatisfiedState(false, intent.getExtras()); }
Example 13
Source File: SelfNotifiableSkeletonTracker.java From Easer with GNU General Public License v3.0 | 4 votes |
protected void onNegativeNotified() { Logger.v("onNegativeNotified"); newSatisfiedState(false); }
Example 14
Source File: LogUtils.java From youqu_master with Apache License 2.0 | 4 votes |
public static void logv(String message, Object... args) { if (DEBUG_ENABLE) { Logger.v(message, args); } }
Example 15
Source File: NotificationSlot.java From Easer with GNU General Public License v3.0 | 4 votes |
@Override protected void onPositiveNotified(Intent intent) { Logger.v("onPositiveNotified"); changeSatisfiedState(true, intent.getExtras()); }
Example 16
Source File: SelfNotifiableSlot.java From Easer with GNU General Public License v3.0 | 4 votes |
protected void onNegativeNotified(Intent intent) { Logger.v("onNegativeNotified"); changeSatisfiedState(false); }
Example 17
Source File: SelfNotifiableSlot.java From Easer with GNU General Public License v3.0 | 4 votes |
protected void onPositiveNotified(Intent intent) { Logger.v("onPositiveNotified"); changeSatisfiedState(true); }
Example 18
Source File: Print.java From BaseUIFrame with MIT License | 4 votes |
public static void v(Object log, Throwable tr) { Logger.v(String.valueOf(log), tr); }
Example 19
Source File: L.java From Conquer with Apache License 2.0 | 4 votes |
public static void v(String msg) { if (isDebug) { // Log.v(TAG, "........................" + msg); Logger.v(msg); } }
Example 20
Source File: LogUtils.java From youqu_master with Apache License 2.0 | 4 votes |
public static void logw(String message, Object... args) { if (DEBUG_ENABLE) { Logger.v(message, args); } }