code
stringlengths
3
1.18M
language
stringclasses
1 value
/* * Copyright 2011 Google Inc. * * 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 i...
Java
/* * Copyright 2011 Google Inc. * * 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 i...
Java
/* * Copyright 2011 Google Inc. * * 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 i...
Java
/* * Copyright 2011 Google Inc. * * 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 i...
Java
package com.futonredemption.mylocation.data; import android.location.Address; import android.location.Location; public class ResolvedLocation { private Location location; private Address address; public ResolvedLocation() { } public void setLocation(Location location) { this.location = locat...
Java
package com.futonredemption.mylocation; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider1x1; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider2x1; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider4x1; import android.app.PendingIntent; import android.appwidget...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; public class CustomMessage implements ILocationWidgetInfo { private final Context _context; private final CharSequence _title; private final CharSequence _description; private final int _state; p...
Java
package com.futonredemption.mylocation; public class Utility { public static final String formatGoogleUrlParameter(String param) { return param.replace(" ", "+"); } }
Java
package com.futonredemption.mylocation; import android.content.Intent; public interface ILocationWidgetInfo { CharSequence getTitle(); CharSequence getDescription(); Intent getActionIntent(); Intent getShareIntent(); Intent getViewIntent(); Intent getNotificationIntent(); int getWidgetState(); }
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation; import org.beryl.app.IntentChooser; import com.futonredemption.mylocation.services.WidgetUpdateService; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class ...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; import android.provider.Settings; public class NoLocationAvailable implements ILocationWidgetInfo { private Context _context; public NoLocationAvailable(final Context context) { _context = context; ...
Java
package com.futonredemption.mylocation; import android.app.PendingIntent; public class Constants { public static final int DISTANCE_ReallyReallyFarAway = 100000; public static final int INTERVAL_Timeout = 60000; public static final int INTERVAL_HalfSecond = 1000; public static final int INTERVAL_OneSe...
Java
package com.futonredemption.mylocation; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; public class Notifications { public static void viewMap(final Context context, final ILocationW...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; public class InitialStateMessage extends CustomMessage { public InitialStateMessage(Context context, CharSequence title, CharSequence description, int state) { super(context, title, description, state); ...
Java
package com.futonredemption.mylocation.services; import java.util.List; import java.util.Locale; import java.util.Timer; import java.util.TimerTask; import org.beryl.location.LocationMonitor; import org.beryl.location.PreferGpsLocationMonitorController; import com.futonredemption.mylocation.Constants; imp...
Java
package com.futonredemption.mylocation; import java.util.ArrayList; import java.util.Locale; import org.beryl.app.ChoosableIntent; import org.beryl.app.IntentChooser; import android.content.Context; import android.content.Intent; import android.location.Address; import android.location.Location; import a...
Java
package com.futonredemption.mylocation; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; public class Notifications { public static void viewMap(final Context context, final ILocationW...
Java
package com.futonredemption.mylocation; import java.util.ArrayList; import java.util.Locale; import org.beryl.app.ChoosableIntent; import org.beryl.app.IntentChooser; import android.content.Context; import android.content.Intent; import android.location.Address; import android.location.Location; import a...
Java
package com.futonredemption.mylocation; public class Utility { public static final String formatGoogleUrlParameter(String param) { return param.replace(" ", "+"); } }
Java
package com.futonredemption.mylocation; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider1x1; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider2x1; import com.futonredemption.mylocation.appwidgets.AppWidgetProvider4x1; import android.app.PendingIntent; import android.appwidget...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; public class InitialStateMessage extends CustomMessage { public InitialStateMessage(Context context, CharSequence title, CharSequence description, int state) { super(context, title, description, state); ...
Java
package com.futonredemption.mylocation.services; import java.util.List; import java.util.Locale; import java.util.Timer; import java.util.TimerTask; import org.beryl.location.LocationMonitor; import org.beryl.location.PreferGpsLocationMonitorController; import com.futonredemption.mylocation.Constants; imp...
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation.appwidgets; import com.futonredemption.mylocation.Constants; import com.futonredemption.mylocation.ILocationWidgetInfo; import com.futonredemption.mylocation.R; import com.futonredemption.mylocation.WidgetUpdater; import android.appwidget.AppWidgetManager; import android...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; public class CustomMessage implements ILocationWidgetInfo { private final Context _context; private final CharSequence _title; private final CharSequence _description; private final int _state; p...
Java
package com.futonredemption.mylocation; import android.content.Intent; public interface ILocationWidgetInfo { CharSequence getTitle(); CharSequence getDescription(); Intent getActionIntent(); Intent getShareIntent(); Intent getViewIntent(); Intent getNotificationIntent(); int getWidgetState(); }
Java
package com.futonredemption.mylocation; import android.app.PendingIntent; public class Constants { public static final int DISTANCE_ReallyReallyFarAway = 100000; public static final int INTERVAL_Timeout = 60000; public static final int INTERVAL_HalfSecond = 1000; public static final int INTERVAL_OneSe...
Java
package com.futonredemption.mylocation; import org.beryl.app.IntentChooser; import com.futonredemption.mylocation.services.WidgetUpdateService; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class ...
Java
package com.futonredemption.mylocation; import android.content.Context; import android.content.Intent; import android.provider.Settings; public class NoLocationAvailable implements ILocationWidgetInfo { private Context _context; public NoLocationAvailable(final Context context) { _context = context; ...
Java
package com.jwetherell.heart_rate_monitor; import java.util.concurrent.atomic.AtomicBoolean; import android.app.Activity; import android.content.Context; import android.content.res.Configuration; import android.hardware.Camera; import android.hardware.Camera.PreviewCallback; import android.os.Bundle; import android.o...
Java
package com.jwetherell.heart_rate_monitor; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.util.AttributeSet; import android.view.View; /** * This clas...
Java
package com.jwetherell.heart_rate_monitor; /** * This abstract class is used to process images. * * @author Justin Wetherell <phishman3579@gmail.com> */ public abstract class ImageProcessing { private static int decodeYUV420SPtoRedSum(byte[] yuv420sp, int width, int height) { if (yuv420sp == null) re...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Class WoodBlock for the blocks that we can move and destroy quite easily * @author draoug */ public class WoodBlock extends AbstractBlock{ /** Constructor for the wood blocks * * @param width * The block's width * @param height * ...
Java
package fr.univmlv.angrimacV1; import java.io.File; import java.net.MalformedURLException; import java.net.URI; import java.net.URL; /** * Handles sound * @author Dream Team * */ public class Sound { String filename; File file; URI uri; URL url; java.applet.AudioClip clip; /** * The sound constructor ...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Irons blocks class : they can move and be destroyed but they are very resistant * @author Dream Team */ public class IronBlock extends AbstractBlock { /** Constructor of iron blocks * * @param width * The block's width * @param heigh...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Class ThreeSplitProjectile for the projectiles that can split themselves into three other projectiles * @author Dream Team */ public class ThreeSplitProjectile extends AbstractProjectile { /** Constructor for the projectile that can split into ...
Java
package fr.univmlv.angrimacV1; import java.awt.Font; import java.awt.Graphics; import javax.swing.JPanel; /** * Handles the display of the highscores, extends the JPanel Swing class */ public class TextHighscore extends JPanel { private static final long serialVersionUID = 1L; private int score; /** * The ...
Java
package fr.univmlv.angrimacV1; import java.awt.Graphics; import java.awt.Image; import javax.swing.JPanel; /** A customized panel that extends the Swing JPanel class * Used to add images for the credits and the help * @author Dream Team */ public class Panel extends JPanel { /** * The background image of the...
Java
package fr.univmlv.angrimacV1; import java.awt.AWTEvent; import java.awt.Cursor; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.JButton; /** The customized Button that extends the Swing JBu...
Java
package fr.univmlv.angrimacV1; import java.io.*; import org.jdom.*; import org.jdom.input.*; import java.util.List; import java.util.Iterator; import java.util.Vector; /** * Handles the xml map to build the stage * @author Dream Team */ public class XMLHandler { /** * The Object used to parse xml */ stat...
Java
package fr.univmlv.angrimacV1; import java.awt.event.MouseEvent; import javax.swing.event.MouseInputAdapter; import org.jbox2d.common.Vec2; /** * A listener that handles the shoot of the projectiles * @author Dream Team * */ public class ShootMouseListener extends MouseInputAdapter{ /** * The stage that co...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.collision.PolygonDef; import org.jbox2d.collision.Shape; import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.dynamics.World; /** This class is the abstract class of all the type of projectiles * @author...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Class UndestructibleBloc for the blocks that we can move but not destroy * @author draoug */ public class UndestructibleBlock extends AbstractBlock { /** Constructor for the undestructible blocks * * @param width * The block's width ...
Java
package fr.univmlv.angrimacV1; /** * Stores the information of a player * * @author Dream Team * */ /** * Constructor of a player */ public class Player { private String name; private int score; public String getName() { return name; } public void setName(String name) { this.nam...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Class StaticBloc for the blocks that we can not move nor destroy * @author Dream Team */ public class StaticBlock extends AbstractBlock { /** Constructor of the static blocks * @param width * The block's width * @param height * The...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** Class TargetBlock for the block that we have to destroy. For us this is Goombas * @author Dream Team */ public class TargetBlock extends AbstractBlock { /** Constructor for the target blocks * @param width * The block's width * @param h...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.collision.PolygonDef; import org.jbox2d.collision.Shape; import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.Body; import org.jbox2d.dynamics.BodyDef; import org.jbox2d.dynamics.World; /** This class is the abstract class of all the type of blocks * @author Drea...
Java
package fr.univmlv.angrimacV1; import javax.swing.JFrame; /** Handles the game window * @author Dream Team */ public class Window extends JFrame { private static final long serialVersionUID = 1L; Menu menu; /** * Window constructor */ public Window() { // Window Parameters this.setTitle("Super Ang...
Java
package fr.univmlv.angrimacV1; import java.awt.Color; import java.awt.Font; import java.awt.Graphics; import java.util.ArrayList; import javax.swing.JPanel; /** * A customized panel that extends the Swing JPanel class * We use this to display the highscore * @author Dream Team */ public class PanelHighscore exte...
Java
package fr.univmlv.angrimacV1; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Counter implements ActionListener{ int i = 0; @Override public void actionPerformed(ActionEvent e) { i++; } }
Java
package fr.univmlv.angrimacV1; import java.awt.Cursor; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import org.jdom....
Java
package fr.univmlv.angrimacV1; import java.awt.Image; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Vector; import javax.imageio.ImageIO; import javax.swing.JOptionPane; import javax.swing.Timer; import org.jbox2d.collision.AABB; import org.jbox2d.common.Vec2; import o...
Java
package fr.univmlv.angrimacV1; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.awt.geom.AffineTransform; import...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.dynamics.World; /** The projectile class for the classic projectiles * @author Dream Team */ public class ClassicProjectile extends AbstractProjectile { /** Constructor of the classic projectiles * * @param width * The projectile's width * @param height...
Java
package fr.univmlv.angrimacV1; import org.jbox2d.collision.Shape; import org.jbox2d.dynamics.Body; /** * Interface that defines the methods needed by an element to be drawn in the canvas */ public interface DrawableElement { public Body getBody(); public int getWidth(); public int getHeight(); public Shape getS...
Java
package fr.univmlv.angrimacV1; import java.io.*; import java.util.*; import java.util.Map.Entry; import org.jdom.*; import org.jdom.input.SAXBuilder; import org.jdom.output.Format; import org.jdom.output.XMLOutputter; /** * This class handles the save of the games * @author Dream team * */ public...
Java
package com.theveganrobot.cmake; class HelloBoost { public native String boostMkDir(); public static void main(String[] args) { System.out.println(new HelloBoost().boostMkDir()); } static { System.loadLibrary("hello-boost"); } }
Java
package com.theveganrobot.cmake; class HelloWorld { public native String stringFromJNI(); public static void main(String[] args) { System.out.println(new HelloWorld().stringFromJNI()); } static { System.loadLibrary("hello-cmake"); } }
Java
package com.theveganrobot.cmake.eigen; import com.theveganrobot.cmake.HelloEigen; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroidEigen extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedI...
Java
package com.theveganrobot.cmake; public class HelloEigen { public native String helloMatrix(); public static void main(String[] args) { System.out.println(new HelloEigen().helloMatrix()); } static { System.loadLibrary("hello-eigen"); } }
Java
package com.theveganrobot.cmake; class HelloEigen { public native String helloMatrix(); public static void main(String[] args) { System.out.println(new HelloEigen().helloMatrix()); } static { System.loadLibrary("hello-eigen"); } }
Java
/* * Copyright (C) 2007 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 app...
Java
/* * Copyright (C) 2009 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 app...
Java
/* * Copyright (C) 2007 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 app...
Java
package com.theveganrobot.cmake; class HelloWorld { public native String stringFromJNI(); public static void main(String[] args) { System.out.println(new HelloWorld().stringFromJNI()); } static { System.loadLibrary("hello-cmake"); } }
Java
package com.theveganrobot.cmake; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroidCMake extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main...
Java
import java.util.HashMap; class ExampleOverriding { final int i=0; String a; static { System.out.println("static"); } { System.out.println("instance"+i); } ExampleOverriding(int i,String a){ this.a=a; System.out.println("hiii"); } public static void main(String[] args) { ExampleOverriding e=n...
Java
public class B { }
Java
public class C { public static void main(String[] args) { A a=new A(); B b=new B(); A a1=new A(); System.out.println(a.equals(b)); System.out.println(a.hashCode()); System.out.println(b.hashCode()); System.out.println(a1.hashCode()); } }
Java
public class A { void main(){ System.out.println("a"); } }
Java
import java.util.HashMap; class ExampleOverriding { final int i=0; String a; static { System.out.println("static"); } { System.out.println("instance"+i); } ExampleOverriding(int i,String a){ this.a=a; } public static void main(String[] args) { ExampleOverriding e=new ExampleOverriding(10,"an...
Java
public class B { }
Java
public class C { public static void main(String[] args) { A a=new A(); B b=new B(); A a1=new A(); System.out.println(a.equals(b)); System.out.println(a.hashCode()); System.out.println(b.hashCode()); System.out.println(a1.hashCode()); } }
Java
public class A { }
Java
/*** Copyright (c) 2009-11 CommonsWare, LLC 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 ...
Java
/*** Copyright (c) 2011 CommonsWare, LLC 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 ...
Java
package net.everythingandroid.smspopup.provider; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.provider.SmsPopupContract.ContactNotifications; import net.everythingandroid.smspopup.provider.SmsPopupContract.QuickMessages; import net.everythingandroid.smspopup.service.Sms...
Java
package net.everythingandroid.smspopup.provider; import java.util.List; import android.net.Uri; import android.provider.BaseColumns; public class SmsPopupContract { public static final String CONTENT_AUTHORITY = "net.everythingandroid.smspopup.provider"; public static final Uri BASE_CONTENT_URI = ...
Java
package net.everythingandroid.smspopup.provider; import java.util.ArrayList; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.ui.SmsPopupActivity; import net.everythingandroid.smspopup.util.Log; import net.everythingandroid.smspopup.util.SmsMessageSender; import net.eve...
Java
package net.everythingandroid.smspopup.provider; import net.everythingandroid.smspopup.provider.SmsPopupContract.ContactNotifications; import net.everythingandroid.smspopup.provider.SmsPopupContract.QuickMessages; import android.content.ContentProvider; import android.content.ContentValues; import android.conten...
Java
/* * Copyright (C) 2011 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 app...
Java
package net.everythingandroid.smspopup.controls; import android.content.Context; import android.telephony.SmsMessage; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.widget.Button; import android.widget.TextView; public class QmTextWatcher implements T...
Java
package net.everythingandroid.smspopup.controls; import java.util.ArrayList; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.provider.SmsMmsMessage; import net.everythingandroid.smspopup.util.Log; import android.content.Context; import ...
Java
package net.everythingandroid.smspopup.service; import java.util.ArrayList; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.provider.SmsMmsMessage; import net.everythingandroid.smspopup.provider.SmsPopupContract.ContactNotifications; import net.everythingandroid.smspopu...
Java
package net.everythingandroid.smspopup.service; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.util.Log; import net.everythingandroid.smspopup.util.ManageNotification; import net.everythingandroid.smspopup.util.SmsPopupUtils; import android.app.Service; import android.c...
Java
package net.everythingandroid.smspopup.service; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.provider.SmsMmsMessage; import net.everythingandroid.smspopup.receiver.ReminderReceiver; import net.everythingandroid.smspopup.util.Log...
Java
package net.everythingandroid.smspopup.service; import java.util.List; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.provider.SmsMmsMessage; import net.everythingandroid.smspopup.provider.SmsPopupContract.ContactNotifications; ...
Java
package net.everythingandroid.smspopup.receiver; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.util.Log; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.co...
Java
package net.everythingandroid.smspopup.receiver; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.util.Log; import net.everythingandroid.smspopup.util.ManageKeyguard; import net.everythingandroid.smspopup.util.ManageWakeLock; import android.app.AlarmManager; import androi...
Java
// Copyright 2011 Google Inc. All Rights Reserved. package net.everythingandroid.smspopup.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.commonsware.cwac.wakeful.WakefulIntentService; import net.everythingandroid.smspopup.service.Reminde...
Java
package net.everythingandroid.smspopup.receiver; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.service.SmsReceiverService; import net.everythingandroid.smspopup.util.Log; import android.content.BroadcastReceiver; import android.content.Context; import android.content.I...
Java
/* * Copyright (C) 2008 Esmertec AG. Copyright (C) 2008 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/LI...
Java
package net.everythingandroid.smspopup.util; import java.util.ArrayList; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.provider.SmsMmsMessage; import net.everythingandroid.smspopup.provider.SmsPopupContract.ContactNotifications...
Java
package net.everythingandroid.smspopup.util; import net.everythingandroid.smspopup.BuildConfig; import android.app.KeyguardManager; import android.app.KeyguardManager.KeyguardLock; import android.app.KeyguardManager.OnKeyguardExitResult; import android.content.Context; public class ManageKeyguard { priva...
Java
package net.everythingandroid.smspopup.util; import net.everythingandroid.smspopup.BuildConfig; import net.everythingandroid.smspopup.R; import net.everythingandroid.smspopup.receiver.ClearAllReceiver; import android.content.Context; import android.content.SharedPreferences; import android.os.PowerManager; imp...
Java
package net.everythingandroid.smspopup.util; public class Log { public final static String LOGTAG = "SMSPopup"; public static void v(String msg) { android.util.Log.v(LOGTAG, msg); } public static void e(String msg) { android.util.Log.e(LOGTAG, msg); } }
Java