code
stringlengths
3
1.18M
language
stringclasses
1 value
package com.ch_linghu.fanfoudroid.util; import java.io.File; import java.io.IOException; import android.os.Environment; /** * 对SD卡文件的管理 * @author ch.linghu * */ public class FileHelper { private static final String TAG = "FileHelper"; private static final String BASE_PATH="fanfoudroid"; public st...
Java
package com.ch_linghu.fanfoudroid.util; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import android.util.Log; import com.ch_linghu.fanfoudroid.R; import com.ch_linghu.fanfoudroid.TwitterAppl...
Java
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 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 ap...
Java
/*** Copyright (c) 2008-2009 CommonsWare, LLC Portions (c) 2009 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 ap...
Java
package com.hlidskialf.android.hardware; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; import android.hardware.SensorManager; public class ShakeListener implements SensorEventListener { private static final int FORCE...
Java
package polymorphism.services.user.co; public class User { private String id; private String name; private String email; private String gender; private String birth; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return...
Java
package polymorphism.services.group.co; import java.sql.Timestamp; public class Group { private String id; private String name; private Timestamp begin; private Timestamp end; private String topic; private Integer maxMem; private Integer curMem; private String region; public String getId()...
Java
package org.poly2tri.triangulation.point.ardor3d; import java.util.ArrayList; import java.util.List; import org.poly2tri.geometry.polygon.PolygonPoint; import org.poly2tri.triangulation.TriangulationPoint; import com.ardor3d.math.Vector3; public class ArdorVector3PolygonPoint extends PolygonPoint { ...
Java
package org.poly2tri.triangulation.point.ardor3d; import java.util.ArrayList; import java.util.List; import org.poly2tri.triangulation.TriangulationPoint; import com.ardor3d.math.Vector3; public class ArdorVector3Point extends TriangulationPoint { private final Vector3 _p; public ArdorVect...
Java
package org.poly2tri.triangulation.tools.ardor3d; import java.nio.FloatBuffer; import java.nio.IntBuffer; import java.util.HashMap; import java.util.List; import org.poly2tri.geometry.polygon.Polygon; import org.poly2tri.geometry.primitives.Point; import org.poly2tri.transform.coordinate.CoordinateTransform;...
Java
package org.poly2tri.polygon.ardor3d; import java.util.ArrayList; import org.poly2tri.geometry.polygon.Polygon; import org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point; import org.poly2tri.triangulation.point.ardor3d.ArdorVector3PolygonPoint; import com.ardor3d.math.Vector3; public class ArdorPo...
Java
package org.poly2tri.examples.ardor3d; import java.util.ArrayList; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.geometry.polygon.Polygon; import org.poly2tri.geometry.polygon.PolygonPoint; import org.poly2tri.triangulation.tools.ardor3d.Ardo...
Java
package org.poly2tri.examples.ardor3d.base; import java.net.URISyntaxException; import org.lwjgl.opengl.Display; import com.ardor3d.example.ExampleBase; import com.ardor3d.framework.FrameHandler; import com.ardor3d.image.Texture; import com.ardor3d.image.Image.Format; import com.ardor3d.input.logical.Logic...
Java
package org.poly2tri.examples.ardor3d.base; import java.nio.FloatBuffer; import java.util.List; import org.poly2tri.geometry.polygon.PolygonSet; import org.poly2tri.triangulation.TriangulationAlgorithm; import org.poly2tri.triangulation.TriangulationPoint; import org.poly2tri.triangulation.TriangulationProces...
Java
package org.poly2tri.examples.ardor3d.misc; public enum ExampleModels { Test ("test.dat",1,0,0,true), Two ("2.dat",1,0,0,true), Debug ("debug.dat",1,0,0,false), Debug2 ("debug2.dat",1,0,0,false), Bird ("bird.dat",1,0,0,false), Custom...
Java
/** * Copyright (c) 2008-2009 Ardor Labs, Inc. * * This file is part of Ardor3D. * * Ardor3D is free software: you can redistribute it and/or modify it * under the terms of its license which may be found in the accompanying * LICENSE file or at <http://www.ardor3d.com/LICENSE>. */ package org.poly2tri.example...
Java
package org.poly2tri.examples.ardor3d.misc; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Str...
Java
package org.poly2tri.examples.ardor3d.misc; public enum ExampleSets { Example1 ("example1.dat",1,0,0,true), Example2 ("example2.dat",1,0,0,true), Example3 ("example3.dat",1,0,0,false), Example4 ("example4.dat",1,0,0,false); private final static String m_bas...
Java
package org.poly2tri.examples.ardor3d.misc; import org.poly2tri.triangulation.point.TPoint; public class MyPoint extends TPoint { int index; public MyPoint( double x, double y ) { super( x, y ); } public void setIndex(int i) { index = i; } ...
Java
package org.poly2tri.examples.ardor3d.misc; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Str...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.examples.ardor3d; import java.io.IOException; import java.util.ArrayList; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.examples.ardor3d.misc.DataLoader; import org.poly2tri.examples.ardor3d.misc.ExampleSets; import org....
Java
package org.poly2tri.examples.ardor3d; import java.util.List; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.triangulation.TriangulationPoint; import org.poly2tri.triangulation.point.TPoint; import org.poly2tri.triangulation.sets.ConstrainedPo...
Java
package org.poly2tri.examples.ardor3d; import java.util.ArrayList; import org.poly2tri.Poly2Tri; import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase; import org.poly2tri.geometry.polygon.Polygon; import org.poly2tri.geometry.polygon.PolygonPoint; import org.poly2tri.triangulation.point.TPoint; imp...
Java
package org.poly2tri.examples; import org.poly2tri.Poly2Tri; import org.poly2tri.triangulation.sets.PointSet; import org.poly2tri.triangulation.util.PointGenerator; public class ProfilingExample { public static void main(final String[] args) throws Exception { PointSet ps = new Poi...
Java
package org.poly2tri.examples.geotools; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; import java.util.ArrayList; import org.geotools.data.FeatureSource; import org.geotools.data.shapefile.ShapefileDataStore; import org.geotools.feature.FeatureCollection; import org.geotools.fea...
Java
package org.poly2tri.geometry.primitives; public abstract class Point { public abstract double getX(); public abstract double getY(); public abstract double getZ(); public abstract float getXf(); public abstract float getYf(); public abstract float getZf(); public abstract...
Java
package org.poly2tri.geometry.primitives; public abstract class Edge<A extends Point> { protected A p; protected A q; public A getP() { return p; } public A getQ() { return q; } }
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.geometry.polygon; import org.poly2tri.triangulation.point.TPoint; public class PolygonPoint extends TPoint { protected PolygonPoint _next; protected PolygonPoint _previous; public PolygonPoint( double x, double y ) { super( x, y ); } public Poly...
Java
package org.poly2tri.geometry.polygon; public class PolygonUtil { /** * TODO * @param polygon */ public static void validate( Polygon polygon ) { // TODO: implement // 1. Check for duplicate points // 2. Check for intersecting sides } }
Java
package org.poly2tri.geometry.polygon; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.poly2tri.triangulation.Triangulatable; import org.poly2tri.triangulation.TriangulationContext; import org.poly2tri.triangulation.TriangulationMode; import org.poly2tri.triangulation.T...
Java
package org.poly2tri.triangulation; public abstract class TriangulationDebugContext { protected TriangulationContext<?> _tcx; public TriangulationDebugContext( TriangulationContext<?> tcx ) { _tcx = tcx; } public abstract void clear(); }
Java
package org.poly2tri.triangulation; public enum TriangulationMode { UNCONSTRAINED,CONSTRAINED,POLYGON; }
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 mu...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.triangulation; import java.util.List; import org.poly2tri.triangulation.delaunay.DelaunayTriangle; public interface Triangulatable { /** * Preparations needed before triangulation start should be handled here * @param tcx */ public void prepareTriangulation( Tr...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 mu...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.triangulation.delaunay.sweep; import org.poly2tri.triangulation.TriangulationContext; import org.poly2tri.triangulation.TriangulationDebugContext; import org.poly2tri.triangulation.TriangulationPoint; import org.poly2tri.triangulation.delaunay.DelaunayTriangle; public class DTSweepDebugCon...
Java
package org.poly2tri.triangulation.delaunay.sweep; import java.util.Comparator; import org.poly2tri.triangulation.TriangulationPoint; public class DTSweepPointComparator implements Comparator<TriangulationPoint> { public int compare( TriangulationPoint p1, TriangulationPoint p2 ) { if(p1.getY...
Java
package org.poly2tri.triangulation.delaunay.sweep; public class PointOnEdgeException extends RuntimeException { /** * */ private static final long serialVersionUID = 1L; public PointOnEdgeException( String msg ) { super(msg); } }
Java
package org.poly2tri.triangulation.delaunay.sweep; public class AdvancingFrontIndex<A> { double _min,_max; IndexNode<A> _root; public AdvancingFrontIndex( double min, double max, int depth ) { if( depth > 5 ) depth = 5; _root = createIndex( depth ); } priv...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.triangulation.util; import java.util.ArrayList; import java.util.List; import org.poly2tri.triangulation.TriangulationPoint; import org.poly2tri.triangulation.point.TPoint; public class PointGenerator { public static List<TriangulationPoint> uniformDistribution( int n, double scale...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package org.poly2tri.transform.coordinate; /** * A transform that aligns the XY plane normal [0,0,1] with any given target normal * * http://www.cs.brown.edu/~jfh/papers/Moller-EBA-1999/paper.pdf * * @author thahlen@gmail.com * */ public class XYToAnyTransform extends Matrix3Transform { /** ...
Java
package org.poly2tri.transform.coordinate; import java.util.List; import org.poly2tri.geometry.primitives.Point; public class NoTransform implements CoordinateTransform { public void transform( Point p, Point store ) { store.set( p.getX(), p.getY(), p.getZ() ); } public void tra...
Java
package org.poly2tri.transform.coordinate; /** * A transform that aligns given source normal with the XY plane normal [0,0,1] * * @author thahlen@gmail.com */ public class AnyToXYTransform extends Matrix3Transform { /** * Assumes source normal is normalized */ public AnyToXYTransf...
Java
package org.poly2tri.transform.coordinate; import java.util.List; import org.poly2tri.geometry.primitives.Point; public abstract class Matrix3Transform implements CoordinateTransform { protected double m00,m01,m02,m10,m11,m12,m20,m21,m22; public void transform( Point p, Point store ) { ...
Java
package org.poly2tri.transform.coordinate; import java.util.List; import org.poly2tri.geometry.primitives.Point; public abstract interface CoordinateTransform { public abstract void transform( Point p, Point store ); public abstract void transform( Point p ); public abstract void transform( Lis...
Java
/* Poly2Tri * Copyright (c) 2009-2010, Poly2Tri Contributors * http://code.google.com/p/poly2tri/ * * 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 sourc...
Java
package aplicacao; import controle.Constantes; import gui.FramePrincipal; public class Executa { public static void main(String[] args) { FramePrincipal jogo = new FramePrincipal(); jogo.iniciarJogo(); } }
Java
package algoritmo; import java.awt.Point; public class Constantes { public static final int PARADO = 0; public static final int CIMA = 1; public static final int BAIXO = 2; public static final int DIREITA = 3; public static final int ESQUERDA = 4; public static final int VISAO_CIMA = 7; public static final i...
Java
package algoritmo; public class Acao { public double valor; public int acao; public boolean valida; public Acao(int acao, double valor, boolean valida) { this.acao = acao; this.valor = valor; this.valida = valida; } }
Java
package algoritmo; import java.awt.Point; import java.util.LinkedList; /** * A* pathfinding. * Encontra um caminho at� um destino a partir de uma origem. O caminho ser� m�nimo e v�lido. * Se o destino for inv�lido, essa classe pode causar uma excess�o n�o controlada. */ public class PathFinding { private class P...
Java
package algoritmo; import java.awt.Point; public class Lembranca { public int tempo; public int valor; public Point posicao; public Lembranca(Point posicao, int valor) { this.tempo = 0; this.posicao = new Point(posicao); this.valor = valor; } }
Java
package algoritmo; import java.awt.Point; import java.util.LinkedList; import java.util.ListIterator; /** * TODO: * * Verificar se cheiros funcionam * * Estimar posição de ladrões cheirados * * * Estamos sujeitos a emboscadas. Se ladrao está fora do campo de visão, mas dentro da área de ameaça * (e...
Java
package algoritmo; public class Holder<T> { public T value; public Holder(T value) { this.value = value; } }
Java
import org.vu.contest.ContestSubmission; import org.vu.contest.ContestEvaluation; import java.util.Random; import java.util.Properties; import java.util.Arrays; import java.util.Comparator; class Crossover { int geneStart, geneEnd; // the indexes of genes the operator works on, operationStart inclusive, operation...
Java
import java.util.Properties; import org.vu.contest.ContestEvaluation; // This is an example evalation. It is based on the standard sphere function. It is a maximization problem with a maximum of 10 for // vector x=0. // The sphere function itself is for minimization with minimum at 0, thus fitness is calculated as...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2009 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
package com.angrydoughnuts.android.alarmclock; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class RecevierTimeZoneChange extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent i = new Intent(conte...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
package com.angrydoughnuts.android.alarmclock; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class ReceiverDeviceBoot extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // There doesn't seem to be any...
Java
package com.angrydoughnuts.android.alarmclock; import android.app.AlarmManager; import android.app.PendingIntent; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; public class ReceiverNotificationRefresh extends BroadcastReceiver { public static void startRef...
Java
package com.angrydoughnuts.android.alarmclock; import java.util.TreeMap; import android.content.Context; import android.os.PowerManager; public class WakeLock { public static class WakeLockException extends Exception { private static final long serialVersionUID = 1L; public WakeLockException(String e) { ...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
/**************************************************************************** * Copyright 2010 kraigs.android@gmail.com * 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.ap...
Java
package com.angrydoughnuts.android.alarmclock; import java.util.Calendar; import android.content.Context; import android.os.Parcel; import android.os.Parcelable; public class Week implements Parcelable { public static final Week NO_REPEATS = new Week(new boolean[] {false, false, false, false, false, false, false})...
Java