text
stringlengths
3
1.18M
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2011 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * Copyright 2012, Google 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 conditio...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver (JesusFreke) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* * [The "BSD licence"] * Copyright (c) 2010 Ben Gruver * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
/* The MIT License Copyright (c) 2008 Tahseen Ur Rehman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
package ds.tree; /** * A simple standard implementation for a {@link visitor}. * * @author Dennis Heidsiek * @param <T,R> */ public abstract class VisitorImpl<T, R> implements Visitor<T, R> { protected R result; public VisitorImpl() { this.result = null; } public VisitorImpl(R initialV...
/* The MIT License Copyright (c) 2008 Tahseen Ur Rehman, Javid Jamae http://code.google.com/p/radixtree/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
/* The MIT License Copyright (c) 2008 Tahseen Ur Rehman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
/* The MIT License Copyright (c) 2008 Tahseen Ur Rehman, Javid Jamae http://code.google.com/p/radixtree/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without li...
/* The MIT License Copyright (c) 2008 Tahseen Ur Rehman Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, p...
package org.t0t0.androguard.android; import android.app.Activity; import android.os.Bundle; public class Demo1Activity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); se...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: Prop...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: IBloc...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: Util....
package org.t0t0.androguard.android; import java.util.Arrays; import java.util.HashMap; public class Demo1Math { // Constants an...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: WeakK...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: DES....
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: Regi...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: IBlo...
package org.t0t0.androguard.android; // ---------------------------------------------------------------------------- // $Id: Base...
package org.t0t0.androguard.watermarks; import android.app.Activity; import android.os.Bundle; public class Demo1StealSourceActivity extends Activity { private byte state[] = new byte[256]; private int x, y; /** Called when the activity is first created. */ @Override public void onCreate(Bundle s...
package com.googlecode.gtalksms.contacts; import java.util.ArrayList; import java.util.Collections; import android.content.ContentResolver; import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContract; import android.provider.ContactsContract.CommonDataKinds; import andro...
package com.googlecode.gtalksms.contacts; public class ContactAddress { public Long id; public String label; public String address; }
package com.googlecode.gtalksms.contacts; import java.util.ArrayList; public class Contact implements Comparable<Contact> { public Long id; public ArrayList<Long> rawIds = new ArrayList<Long>(); public String name; @Override public int compareTo(Contact another) { return name.c...
package com.googlecode.gtalksms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.util.Log; public class NetworkConnectivityReceiver extends BroadcastReceiver { @Override...
package com.googlecode.gtalksms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; /** Allows the application to start at boot */ public class BootReceiver extends BroadcastReceiver { @Override public void onRecei...
package com.googlecode.gtalksms; import android.content.Context; import android.content.SharedPreferences; import android.provider.Settings; public class SettingsManager { // XMPP connection public String serverHost; public String serviceName; public int serverPort; public String ...
package com.googlecode.gtalksms.geo; import java.util.List; import java.util.Locale; import android.content.Intent; import android.location.Address; import android.location.Geocoder; import com.googlecode.gtalksms.LocationService; import com.googlecode.gtalksms.XmppService; public class GeoManager { ...
package com.googlecode.gtalksms.geo; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class GeoPopup extends Activity { final String[] items = {"Maps", "Navigatio...
package com.googlecode.gtalksms; import android.app.PendingIntent; import android.appwidget.AppWidgetManager; import android.appwidget.AppWidgetProvider; import android.content.Context; import android.content.Intent; import android.view.View; import android.widget.RemoteViews; public class WidgetProvider ex...
package com.googlecode.gtalksms.phone; public class Phone { private final static String cellPhonePattern = "\\+*\\d+"; public String contactName; public String number; public String cleanNumber; public String label; public int type; public boolean isCellPhoneNumber; ...
package com.googlecode.gtalksms.phone; import java.util.Date; public class Call { final static public String [] Type = {"Unknown", "Incoming", "Outgoing", "Missed"}; public String phoneNumber; public String type; public long duration; public Date date; public boolean isNew; ...
package com.googlecode.gtalksms.phone; import java.util.ArrayList; import android.content.ContentResolver; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.provider.CallLog; import com.googlecode.gtalksms.Tools; import com.googlecode.gtalksms.XmppServic...
package com.googlecode.gtalksms; import android.content.Context; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; public class MediaManager { private MediaPlayer mMediaPlayer; private boolean canRing; /** clears the media player */ public vo...
package com.googlecode.gtalksms; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; import com.googlecode.gtalksms.contacts.ContactsManager; public class PhoneCallListener extends PhoneStateListener { public void onCallStateChanged(int state, String incomingNumber) { ...
package com.googlecode.gtalksms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.telephony.PhoneStateListener; import android.telephony.TelephonyManager; public class CallReceiver extends BroadcastReceive...
package com.googlecode.gtalksms; import android.content.Context; import android.preference.EditTextPreference; import android.util.AttributeSet; /** Used to put an integer in the preferences string (for server port)*/ public class EditIntegerPreference extends EditTextPreference { public EditIntegerPreference(Con...
package com.googlecode.gtalksms; import java.util.ArrayList; import java.util.Date; import java.util.List; import android.content.ComponentName; import android.content.Context; import android.content.pm.PackageInfo; import android.database.Cursor; public class Tools { public static String getVersio...
package com.googlecode.gtalksms; import java.util.ArrayList; import java.util.Collections; import java.util.List; import android.app.Service; import android.content.Context; import android.content.Intent; import android.location.Address; import android.net.Uri; import android.text.ClipboardManager; impo...
package com.googlecode.gtalksms; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.PacketListener; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.filter.MessageTypeFilte...
package com.googlecode.gtalksms.panels; 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; import android.widget.TextView; import com.googlecode.gtalksms.R; import com.googlecode.gtalks...
package com.googlecode.gtalksms.panels; import android.os.Bundle; import android.preference.PreferenceActivity; import com.googlecode.gtalksms.R; public class Preferences extends PreferenceActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState...
package com.googlecode.gtalksms; /* * Source code of this class originally written by Kevin AN <anyupu@gmail.com> * from the project android-phonefinder: http://code.google.com/p/android-phonefinder/ */ import java.lang.reflect.Method; import android.app.Service; import android.content.Context; import android.con...
package com.googlecode.gtalksms; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; /** Allows the application to start at boot */ public class WidgetActivator extends BroadcastReceiver { @Override public void onReceive(C...
package com.googlecode.gtalksms.sms; import java.util.Date; public class Sms implements Comparable<Sms> { public String message; public String number; public String sender; public Date date; @Override public int compareTo(Sms another) { return date.compareTo(another.date);...
package com.googlecode.gtalksms; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsMessage; import com.googlecode.gtalksms.contacts....
package org.t0t0.androguard.TC; public class TCB { public int TC1 = 1337; private int TC2 = -90000; public S...
package org.t0t0.androguard.TC; public class TCMod1 { public int TC1 = 0; private int TC2 = 3; public String...
package org.t0t0.androguard.TC; public class TCE { public int TC1 = 1337; private int TC2 = -90000; public S...
package org.t0t0.androguard.TC; import android.app.Activity; import android.os.Bundle; public class TCActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContent...
package org.t0t0.androguard.TC; public class TestType1 { public TestType1() { long long_tc1 = 42; long lo...
package org.t0t0.androguard.TC; public class TCA { public int TC1 = 30; private int TC2 = -6; public String ...
package org.t0t0.androguard.TC; public class TCC { public int TC1 = 30; private int TC2 = -6; public String ...
package org.t0t0.androguard.TC; public class TCD { public int TC1 = 1337; private int TC2 = -90000; public S...
package tests.androguard; import android.content.pm.LabeledIntent; import android.util.Log; public class TestLoops { protected static class Loop { public static int i; public static int j; } public void testWhile() { int i = 5, j = 10; while (i < j) { j += i / 2.0 + j; i += i * 2; } Loop.i = i;...
package tests.androguard; public class TestQuickSort { public int a = 10; public static void Main(String[] args) { int[] intArray = new int[args.length]; for (int i = 0; i < intArray.length; i++) { intArray[i] = Integer.parseInt(args[i]); } QuickSort(intArray, 0, intArray.length - 1); for (int i = 0; ...
package tests.androguard; public class Eratosthene { public static int[] eratosthenes(int n) { boolean a[] = new boolean[n+1]; a[0] = true; a[1] = true; int sqn = (int)Math.sqrt(n); for(int i = 2; i <= sqn; i++) { if(!a[i]) { int j = i*i; while(j <= n)...
package tests.androguard; public class TestArr$ays { public static class InternField { public static byte[] b; } private byte[] b; public byte[] d; public TestArr$ays( ) { b = new byte[5]; } public TestArr$ays( byte [] b ) { this.b = b; } public TestArr$ays( int i ) { byte [] a = { 1, 2, 3, 4...
package tests.androguard; public class TestIfs { private boolean P, Q, R, S, T; public static int testIF(int p) { int i; if (p > 0) { i = p * 2; } else { i = p + 2; } return i; } public static int testIF2(int p) { int i = 0; if (p > 0) { i = p * 2; } else { i = p + 2; } return i...
package tests.androguard; public class TestSynthetic { public static void TestSynthetic1( ){ final Object o = new Object(); new Thread(){ public void run(){ System.out.println( "o : " + o.hashCode() ); } }.start(); } public static void TestSynthetic2() { System.out.println( "o : " + new Ob...
package tests.androguard; public class RC4 { public static void rc4_crypt(byte[] key, byte[] data) { int keylen = key.length; int datalen = data.length; int i; int j; // key scheduling byte[] sbox = new byte[256]; for(i = 0; i < 256; i++) { sbox[i] = (byte)i; } j = 0; ...