code
stringlengths
3
1.18M
language
stringclasses
1 value
package anjos.dao; import java.lang.reflect.Field; import java.util.List; import javax.persistence.EntityExistsException; import javax.persistence.EntityManager; import javax.persistence.Id; import javax.persistence.NoResultException; import javax.persistence.Query; public class GenericDAO<C> implements Int...
Java
package anjos.dao; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; public class FabricaEntityManager { private static EntityManagerFactory fabrica = Persistence.createEntityManagerFactory("AnjosPU"); public FabricaEntityManager() { } public stat...
Java
package anjos.dao; import java.util.List; public interface Interface<C> { public boolean criar(C o); public boolean alterar(C o); public boolean excluir(C o); public C obter(Class<C> classe, Object id); public List<C> obterTodos(Class<C> classe); }
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.EmbeddedId; import javax.persistence.Entity; import javax.persistence.JoinColumn; import javax.pers...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Embeddable; import javax.validation.constraints.NotNull; /** * ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package anjos.modelo; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity...
Java
/** * Copyright (c) 2010 David Dearing */ package com.dpdearing.sandbox.gpsemulator.client; import com.dpdearing.sandbox.gpsemulator.common.LocationServiceAsync; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.dom.client.ChangeEvent; i...
Java
/** * Copyright (c) 2010 David Dearing */ package com.dpdearing.sandbox.gpsemulator.server; import java.io.IOException; import com.dpdearing.sandbox.gpsemulator.common.LocationService; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import de.mud.telnet.TelnetWrapper; /** * The server ...
Java
/** * Copyright (c) 2010 David Dearing */ package com.dpdearing.sandbox.gpsemulator.common; import java.io.IOException; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteSe...
Java
package com.teloquitous.lab.ankabut.mediaplayer; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import android.annotation.SuppressLint; import androi...
Java
package com.teloquitous.lab.ankabut.mediaplayer; public interface TeloPlayerServiceClient { public void onInitializePlayerStart(String message); public void onInitializeComplete(); public void onError(); public void onStopped(boolean paused); public void onCompleted(); }
Java
package com.teloquitous.lab.ankabut.mediaplayer; import java.text.SimpleDateFormat; import java.util.Date; import java.util.TimeZone; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import android.annotation.SuppressLint; import androi...
Java
package com.teloquitous.lab.ankabut; public interface AnkabutKeyStrings { final String _KEY_PREF_DOWNLOAD = "com.teloquitous.lab.ankabut.AnkabutKeyStrings:DOWNLOAD_ID"; final String _KEY_PREF_PLAY_URL = "com.teloquitous.lab.ankabut.AnkabutKeyStrings:PLAYED_URL"; final String _KEY_PREF_PLAY_LIST_POS = "com.teloquito...
Java
package com.teloquitous.lab.ankabut; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.List; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.xml.sax.InputSource; imp...
Java
package com.teloquitous.lab.ankabut; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import android.app.Dialog; import android.content.Context; import android.content.pm.PackageManager.NameNotFoundException; import android.os.Bundle; import andr...
Java
package com.teloquitous.lab.ankabut.rss; import java.util.ArrayList; import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.preference.PreferenceManager; import android.view.LayoutInflater; import android.view.View; import a...
Java
package com.teloquitous.lab.ankabut.rss; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.URI; import java.util.ArrayList; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntit...
Java
package com.teloquitous.lab.ankabut.rss; import java.io.File; import java.util.List; import android.app.Activity; import android.app.DownloadManager; import android.app.DownloadManager.Request; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.net....
Java
package com.teloquitous.lab.ankabut.rss; import java.util.ArrayList; import java.util.List; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import android.util.Log; public class RssParserHandler extends DefaultHandler { private ArrayList<Kajian> kajianItem...
Java
package com.teloquitous.lab.ankabut.rss; import android.os.Parcel; import android.os.Parcelable; public class Kajian implements Parcelable { private String title; private String link; private String description; private String itunesAuthor; private String itunesDuration; private String statusMessage; private b...
Java
package com.teloquitous.lab.ankabut.rss; import android.os.Parcel; import android.os.Parcelable; public class Radio implements Parcelable { private String namaRadio; private String kota; private String url; private boolean playedAtm; private String statusMessage; public Radio() { this("","","",""); } publ...
Java
package com.teloquitous.lab.ankabut.rss; import java.util.List; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import android.util.Log; public class RssReader { private String rssUrl; public RssReader(String rssUrl) { this.rssUrl = rssUrl; } public List <Kajian> getItems() t...
Java
package com.teloquitous.lab.ankabut; import android.content.Context; import android.graphics.Canvas; import android.text.TextPaint; import android.util.AttributeSet; import android.view.Gravity; import android.widget.TextView; public class VerticalTextView extends TextView { final boolean topDown; public Vertical...
Java
/* * Copyright (C) 2011 The Android Open Source Project * Copyright (C) 2011 Jake Wharton * * 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/LICEN...
Java
package com.teloquitous.lab.ankabut.fragment; public interface IconPagerAdapter { /** * Get icon representing the page at {@code index} in the adapter. */ int getIconResId(int index); // From PagerAdapter int getCount(); }
Java
package com.teloquitous.lab.ankabut.fragment; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.drawable.Drawable; import android.view.View; import android.widget.LinearLayout; /** * A simple extension of a regular linear layout that suppor...
Java
/* * Copyright (C) 2011 Patrik Akerfeldt * Copyright (C) 2011 Jake Wharton * * 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 * * Un...
Java
package com.teloquitous.lab.ankabut.fragment; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory;...
Java
package com.teloquitous.lab.ankabut.fragment; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import android.app.ActivityManager; import android.app.ActivityManager.RunningServiceInfo; impo...
Java
package com.teloquitous.lab.ankabut.fragment; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import android.content.Context; import android.content.Intent; impo...
Java
package com.teloquitous.lab.ankabut.artikel; import java.util.List; import java.util.Vector; public class RSSFeed { private String title = null; private String description = null; private String link = null; private String pubdate = null; private List<RSSItem> itemList; public RSSFeed(){ itemList = new Vect...
Java
package com.teloquitous.lab.ankabut.artikel; import java.util.ArrayList; import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.T...
Java
package com.teloquitous.lab.ankabut.artikel; public class RSSItem { private String title = null; private String description = null; private String link = null; private String pubdate = null; public RSSItem() { } public void setTitle(String value) { title = value; } public void setDescription(String valu...
Java
package com.teloquitous.lab.ankabut.artikel; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public class RSSHandler extends DefaultHandler { final int state_unknown = 0; final int state_title = 1; final int state_description = 2; final int state_link =...
Java
package com.teloquitous.lab.ankabut.artikel; public class FeedItem { /* * "nama": "Muslimah.or.id", "pengelola": "", "url": "http://muslimah.or.id/", "feed": "http://feeds.feedburner.com/muslimah-or-id?format=xml", "type": "artikel-a" */ private String nama; private String pen...
Java
package com.teloquitous.lab.ankabut; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.preference.PreferenceManager; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; im...
Java
package com.teloquitous.lab.ankabut; import android.app.Application; import org.acra.*; import org.acra.annotation.*; @ReportsCrashes(formKey = "dEFmOC14Ry14WFJyMkdqT1V4U18wNlE6MQ", mode = ReportingInteractionMode.DIALOG, resDialogText = R.string.crash_dialog_text, resDialogIcon = android.R.drawable.ic_dialog_info, r...
Java
/** Automatically generated file. DO NOT MODIFY */ package com.teloquitous.lab.ankabut; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* * Copyright (C) 2012 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 ...
Java
/* * Copyright (C) 2012 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 ...
Java
/* * Copyright (C) 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 ...
Java
/* Copyright 2013 Mahadevan GSS Copyright 2013 Rahul Garg 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 applicabl...
Java
/* Copyright 2013 Mahadevan GSS Copyright 2013 Rahul Garg 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 applicab...
Java
package org.aopencl.aparapi; import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.regex.Pattern; public class FindFile { public static String[] findFiles(String root, String pat, boolean ignoreCase){ File f = new File(root); if( !f.exists() || !f.isDirectory()){ ...
Java
package org.aopencl.aparapi; import com.amd.aparapi.Kernel; public class MyKernel extends Kernel { public final int size; /** Input float array for which square values need to be computed. */ public final int[] values; /** Output array which will be populated with square values of corresponding input array eleme...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions an...
Java
package org.aopencl.aparapi; import java.io.*; import java.util.zip.*; import android.content.res.Resources; import org.aopencl.aparapi.R; public class JarHelper { static Resources currentResources; /** * Size of the buffer to read/write data */ private static final int BUFFER_SIZE = 4096; p...
Java
/* Copyright 2013 Mahadevan GSS Copyright 2013 Rahul Garg 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 applicab...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions an...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
/* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of condit...
Java
package com.futonredemption.nokeyguard; import android.app.KeyguardManager; import android.app.KeyguardManager.KeyguardLock; import android.content.Context; public class KeyguardLockWrapper { // FIXME: Should we have synchronize locks on the method calls? private KeyguardManager _guard; private Keyguard...
Java
package com.futonredemption.nokeyguard.activities; import org.beryl.app.AndroidVersion; import com.futonredemption.nokeyguard.Intents; import com.futonredemption.nokeyguard.R; import android.app.ActionBar; import android.content.Intent; import android.os.Bundle; import android.preference.PreferenceActivity...
Java
package com.futonredemption.nokeyguard.activities; import org.beryl.intents.IntentHelper; import com.futonredemption.nokeyguard.Constants; import com.futonredemption.nokeyguard.Intents; import com.futonredemption.nokeyguard.Preferences; import com.futonredemption.nokeyguard.R; import android.app.Activity; ...
Java
package com.futonredemption.nokeyguard.receivers; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; public class RelayRefreshWidgetReceiver extends BroadcastReceiver { @Override public void onReceive(Context conte...
Java
package com.futonredemption.nokeyguard.receivers; import com.futonredemption.nokeyguard.Intents; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class PowerStateChangedReceiver extends BroadcastReceiver { @Override public void onReceive(Co...
Java
package com.futonredemption.nokeyguard.services; import org.beryl.app.ComponentEnabler; import org.beryl.app.ServiceBase; import com.futonredemption.nokeyguard.AutoCancelingForegrounder; import com.futonredemption.nokeyguard.Constants; import com.futonredemption.nokeyguard.Intents; import com.futonredemption....
Java
package com.futonredemption.nokeyguard.appwidgets; import com.futonredemption.nokeyguard.Constants; import com.futonredemption.nokeyguard.Intents; import com.futonredemption.nokeyguard.LockScreenState; import com.futonredemption.nokeyguard.R; import android.app.PendingIntent; import android.appwidget.AppWidge...
Java
package com.futonredemption.nokeyguard; import java.util.Timer; import java.util.TimerTask; import org.beryl.app.ServiceForegrounder; import org.beryl.diagnostics.Logger; import android.app.PendingIntent; import android.app.Service; public class AutoCancelingForegrounder { private final Service servi...
Java
package com.futonredemption.nokeyguard; import org.beryl.app.AndroidVersion; import android.app.Service; import android.content.Context; import android.media.AudioManager; public class HeadsetStateGetter { private final IHeadsetStateGetter _headsetStateGetter; static interface IHeadsetStateGetter { ...
Java
package com.futonredemption.nokeyguard; public class Preferences { public static class General { public static final String HideNotification = "PrefHideNotification"; } public static class Internal { public static final String ToggleState = "Preference_KeyguardToggleState"; } }
Java
package com.futonredemption.nokeyguard; public class LockScreenState { public int Mode = Constants.MODE_Enabled; public boolean IsLockActive = false; }
Java
package com.futonredemption.nokeyguard; public class Constants { public static final int MODE_Enabled = 0; public static final int MODE_Disabled = 1; public static final int MODE_ConditionalToggle = 2; public static final int NOTIFICATION_ForegroundService = 1; public static final int INTERVAL_Foregr...
Java
package com.futonredemption.nokeyguard; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.BatteryManager; import android.preference.PreferenceManager; public class LockScreenStateManager { private final Context context; private Sha...
Java