code
stringlengths
3
1.18M
language
stringclasses
1 value
/** Automatically generated file. DO NOT MODIFY */ package com.google.android.gcm; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in...
Java
/* * Copyright 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 in...
Java
/* * Copyright 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 in...
Java
/* * Copyright 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 in...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
/* * Copyright 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 in w...
Java
package vn.anhmv.blog; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } }
Java
package com.pdizzle.services; import java.net.URI; import java.util.List; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; ...
Java
package com.pdizzle.services; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.rs.PUT; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import...
Java
package com.pdizzle.app; import javax.ws.rs.ext.Provider; import org.apache.tomcat.jdbc.pool.DataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer; import org.springf...
Java
package com.pdizzle.app; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletResponse; import ...
Java
package com.pdizzle.app; import java.util.EnumSet; import javax.servlet.DispatcherType; import javax.servlet.FilterRegistration; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.ServletRegistration; import org.springframework.web.WebApplicationInitializer; import org.s...
Java
package com.pdizzle.utils; import org.jasypt.util.text.BasicTextEncryptor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class SecurityUtils { @SuppressWarnings("unused") private final Logger log = LoggerFactory.getLogger(SecurityUtils.class); private static final String PWD = "Ab3nder!"; pri...
Java
package com.pdizzle.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; imp...
Java
package com.pdizzle.models; public class Student { private int id= -1; private String firstName; private String lastName; private String middleName; private String address; private String address2; private String city; private String state; private String zipCode; public int getId() { return id; } publ...
Java
package protocol; public class CMD { // Test public static final short TEST_STRING = -101; public static final short TEST_BOOLEAN = -102; public static final short TEST_BYTE = -103; public static final short TEST_SHORT = -104; public static final short TEST_LONG = -105; public static final short TEST_F...
Java
package utils; /** * Store all app constant * * @author Jack Le * */ public class Constant { // For file utils public static final String NEW_LINE = "\n"; public static final String EQUAL = "="; // String constant public static final String NULL = "null"; public static final String Other_Co...
Java
package tri.gameteam.mobile; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; public class Game extends Thread{ public static String IP=""; public static int PORT=3210; public static boolean isConnecting; public STATE currentstate=null; public stat...
Java
package tri.gameteam.mobile; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.net.Socket; import java.util.Vector; import a.engine.BaseActivity; public class Send{ private static Vector<Message> sender; private ...
Java
package tri.gameteam.mobile; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Paint.Style; import com.example.troll.R; public class CLogo extends STATE { int FPS; Paint p; long l; Bitmap im...
Java
package tri.gameteam.mobile; import java.util.Vector; import model.Position; import userinterface.IAction; import a.engine.VariableGlobal; import android.app.Activity; import android.content.Intent; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import androi...
Java
package tri.gameteam.mobile; public class GlobalMessageHandle { public static void processMessage(Message message) { switch (message.getCMD()) { case -1: break; default: break; } } }
Java
package tri.gameteam.mobile; import java.util.Vector; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Bitmap.Config; import android.graphics.Canvas; import android.view.SurfaceHolder; import android.view.SurfaceView; public class GSurfaceView extends SurfaceView...
Java
package tri.gameteam.mobile; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; public class Message { ByteArrayInputStream bis; DataInputStream dis; ByteArrayOutputStream bos; DataOutp...
Java
package untility; import android.content.Context; import android.content.SharedPreferences; /** * Put and get any thing into preference * Create by Jack Le * Date 15/10/2012 * */ public class PreferenceUtils { public static void putString(Context context, String name, String value, String...
Java
package untility; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import android.content.Context; import android.os.Environment; public class SDCardStore { public static String folder = "/Android/tri/"; public static boolean saveBytes(byte[] data,String fileName, Cont...
Java
package untility; import java.io.InputStream; public interface IReadInputStream { public void perform(InputStream is); }
Java
package untility; public interface IAction { public void perform(); }
Java
package untility; import android.app.AlertDialog; import android.app.Service; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.location.Location; import android.location.LocationListener; import android.location.LocationManager; import andr...
Java
package a.engine; import android.app.Application; public class VariableGlobal extends Application { public String text = ""; public boolean isShutdown=false; // <color name="white">#FFFFFF</color> public int WHITE = 0xFFFFFF; // <color name="black">#000000</color> public int BLACK = 0xFF00...
Java
package a.engine; import model.Position; import protocol.CMD; import tri.gameteam.mobile.Game; import tri.gameteam.mobile.Message; import tri.gameteam.mobile.STATE; import tri.gameteam.mobile.Send; import userinterface.IAction; import android.app.Activity; import android.app.AlertDialog; import android.app....
Java
package userinterface; import android.content.Context; import android.text.Editable; import android.text.TextWatcher; import android.util.AttributeSet; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; i...
Java
package userinterface; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.util.Log; import android.widget.Button; public class UIListMultiChoise { public Button button; private IAction iActionSuccess,iActionFail; private String []option...
Java
package userinterface; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.util.Log; public class UIListSingleChoise { public String text; public IAction iAction; private String []options; public int selectedId; private Context contex...
Java
package userinterface; public interface IAction { public void perform(); }
Java
package com.example.troll; import tri.gameteam.mobile.Game; import a.engine.BaseActivity; import android.annotation.SuppressLint; import android.os.Bundle; import android.view.Menu; import android.view.View; import android.widget.EditText; @SuppressLint("NewApi") public class LoginActivity extends BaseActi...
Java
package com.example.troll.trollface; import a.engine.BaseActivity; import android.os.Bundle; import android.view.View; import android.view.ViewGroup.LayoutParams; import android.widget.Button; import android.widget.LinearLayout; import com.example.troll.R; public class ChooseCategoryTrollfaceActivity exte...
Java
package com.example.troll.trollface; import a.engine.BaseActivity; import android.view.View; public class TrollMakerActivity extends BaseActivity{ @Override public void onClick(View view) { } @Override protected void initView() { } }
Java
package com.example.troll.trollface.model; import tri.gameteam.mobile.Message; public abstract class Content { public static final byte STRING=1; public static final byte IMAGE=2; public static final byte RECTANGLE=3; public static final byte ELLIPSE=4; public byte type; public int x,y; public in...
Java
package com.example.troll.trollface.model; import tri.gameteam.mobile.Message; public class ContentEllipse extends Content{ public int width; public int height; public boolean isFill; public ContentEllipse() { type=ELLIPSE; } @Override public void readMessage(Message message) { super.wri...
Java
package com.example.troll.trollface.model; import tri.gameteam.mobile.Message; public class ContentImage extends Content{ public int imageid; public ContentImage() { type=IMAGE; } @Override public void readMessage(Message message) { super.writeToMessage(message); imageid=message.readInt()...
Java
package com.example.troll.trollface.model; import tri.gameteam.mobile.Message; public class ContentRectangle extends Content { public int width; public int height; public boolean isFill; public ContentRectangle() { type=RECTANGLE; } @Override public void readMessage(Message message) { super...
Java
package com.example.troll.trollface.model; import tri.gameteam.mobile.Message; public class ContentString extends Content{ public String text; public int size; public ContentString() { type=STRING; } @Override public void readMessage(Message message) { super.readMessage(message); tex...
Java
package com.example.versionpixel; import model.Position; import tri.gameteam.mobile.GSurfaceView; import tri.gameteam.mobile.STATE; import untility.PreferenceUtils; import userinterface.IAction; import a.engine.BaseActivity; import android.app.AlertDialog; import android.app.ProgressDialog; import android.co...
Java
package model; import tri.gameteam.mobile.STATE; public class Position { public float x,y; public Position() { x=0; y=0; } public Position(float x,float y) { this.x=x; this.y=y; } public void set(float x,float y) { this.x=x; this.y=y; } public boolean equalPosition(Position p)...
Java
package model; public class IconInGame { }
Java
package model; import tri.gameteam.mobile.STATE; import android.graphics.Paint.Align; public class UITextView extends UIView { public String text; public int textColor; public int textSize; public byte textStyle; @Override public void paint() { super.paint(); painter.setColor(textColor);...
Java
package model; import tri.gameteam.mobile.STATE; import userinterface.IAction; import android.graphics.Bitmap; import android.graphics.Paint; import android.graphics.Paint.Style; import android.graphics.Rect; public class UIView { public static int numberID=0; public int id; public int x, y, width, h...
Java
/** Automatically generated file. DO NOT MODIFY */ package com.example.troll; public final class BuildConfig { public final static boolean DEBUG = true; }
Java
package com.dziennik.wedkarza; import com.dziennik.wedkarza.database.DatabaseAdapter; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; /* * kl...
Java
package com.dziennik.wedkarza.database; import java.util.ArrayList; import java.util.List; import com.dziennik.wedkarza.model.SlownikCodeFisheries; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.dat...
Java
package com.dziennik.wedkarza; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MenuActivity extends Activity { private Button buttonSlownik; private Button buttonLi...
Java
package com.dziennik.wedkarza; import com.dziennik.wedkarza.database.DatabaseAdapter; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public cl...
Java
package com.dziennik.wedkarza; import com.dziennik.wedkarza.database.DatabaseAdapter; import android.os.Bundle; import android.widget.ListView; import android.app.Activity; import android.database.Cursor; import android.widget.SimpleCursorAdapter; //klasa ListaIdentyfikatorowLowiskaActivity, która umożl...
Java
package com.dziennik.wedkarza.model; public class SlownikCodeFisheries { //metody, które pozwolą nam na manipulację danymi umieszczonymi w naszej bazie. //dodajemy klasę służącą za model naszych danych słownika kodu łowiska private long id; private String codeFisheries; public ...
Java
package me.slashfix.service; import java.util.List; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import javax.persistence.Query; import javax.ws.rs.Consumes; import javax.ws.rs.DELETE; import javax.ws.rs.GET; import javax.ws.rs.POST; import javax.ws.r...
Java
package me.slashfix.service; import java.util.List; import javax.persistence.EntityManager; /** * * @author burni_000 */ public abstract class AbstractFacade<T> { private Class<T> entityClass; public AbstractFacade(Class<T> entityClass) { this.entityClass = entityClass; } protected abstract EntityMan...
Java
package me.slashfix; import java.io.Serializable; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence....
Java
package me.slashfix.white; import lombok.Data; /** * * @author burni_000 */ @Data public class Coordinates { private float x; private float y; public Coordinates() { } public Coordinates(float x, float y) { this.x = x; this.y = y; } }
Java
package me.slashfix.white; import java.io.IOException; import java.nio.ByteBuffer; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.websocket.OnClose; import javax.websocket.OnMessage; import javax.websocket.OnOpen; import javax.websocket.Session; import javax.webso...
Java
package me.slashfix.white; import javax.websocket.EncodeException; import javax.websocket.Encoder; import javax.websocket.EndpointConfig; /** * * @author burni_000 */ public class FigureEncoder implements Encoder.Text<Figure> { @Override public String encode(Figure figure) throws EncodeException { return ...
Java
package me.slashfix.white; import java.io.StringReader; import javax.json.Json; import javax.json.JsonException; import javax.json.JsonObject; import javax.websocket.DecodeException; import javax.websocket.Decoder; import javax.websocket.EndpointConfig; /** * * @author burni_000 */ public class FigureDecoder imple...
Java
package me.slashfix.white; import java.io.StringWriter; import javax.json.Json; import javax.json.JsonObject; import lombok.Data; /** * * @author burni_000 */ @Data public class Figure { private JsonObject json; public Figure(JsonObject json) { this.json = json; } @Override public String toString(...
Java
/* * Copyright (C) 2010 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 applicab...
Java
/* * Copyright (C) 2010 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 applicab...
Java
/* * Copyright (C) 2010 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 applicab...
Java
/* * Copyright (C) 2010 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) 2010 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 applicab...
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) 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/LICENSE-2.0 * * Unless required by appli...
Java
/* * Copyright (C) 2011 Darren Salt * * Licensed under the Apache License, Version 2.0 (the "Licence"); you may * not use this file except in compliance with the Licence. You may obtain * a copy of the Licence at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
/* * Copyright (C) 2010 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) 2010 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) 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/LICENSE-2.0 * * Unless required by applicab...
Java
/* * 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/LICENSE-2.0 * * Unless required by appli...
Java
/* * 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/LICENSE-2.0 * * Unless required by appli...
Java
/* * 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/LICENSE-2.0 * * Unless required by app...
Java
/* * 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/LICENSE-2.0 * * Unless required by applicab...
Java
package org.pocketworkstation.pckeyboard; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.view.inputmethod.InputMethodManager; public class NotificationReceiver extends BroadcastReceiver { static final String TAG = "PCKe...
Java
/* * Copyright (C) 2010 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 applicab...
Java
/* * 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/LICENSE-2.0 * * Unless required by applicab...
Java
package org.pocketworkstation.pckeyboard; import java.util.HashMap; import java.util.Locale; import java.util.Map; import android.content.SharedPreferences; import android.content.res.Resources; import android.util.Log; /** * Global current settings for the keyboard. * * <p> * Yes, globals are evil. But the per...
Java
/* * Copyright (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 applicable law or agreed ...
Java
/* * Copyright (C) 2010 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 org.pocketworkstation.pckeyboard; import java.util.regex.Matcher; import java.util.regex.Pattern; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; /** * Variant of SeekBarPreference that stores values as string preferences. * * This is for compatibi...
Java
/* * 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/LICENSE-2.0 * * Unless required by applicab...
Java