();
34 | }
35 |
36 | synchronized public static long get(Object key) {
37 | Long token = TOKEN_POOL.get(key);
38 | if (LOCAL_LOGV) {
39 | Log.v(TAG, "TokenManager.get(" + key + ") -> " + token);
40 | }
41 | return token != null ? token : NO_TOKEN;
42 | }
43 |
44 | synchronized public static void put(Object key, long token) {
45 | if (LOCAL_LOGV) {
46 | Log.v(TAG, "TokenManager.put(" + key + ", " + token + ")");
47 | }
48 | TOKEN_POOL.put(key, token);
49 | }
50 |
51 | synchronized public static void remove(Object key) {
52 | if (LOCAL_LOGV) {
53 | Log.v(TAG, "TokenManager.remove(" + key + ")");
54 | }
55 | TOKEN_POOL.remove(key);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/library/src/main/java/com/google/android/mms/APN.java:
--------------------------------------------------------------------------------
1 | package com.google.android.mms;
2 |
3 | public class APN {
4 | public String MMSCenterUrl = "";
5 | public String MMSPort = "";
6 | public String MMSProxy = "";
7 |
8 | public APN(String MMSCenterUrl, String MMSPort, String MMSProxy) {
9 | this.MMSCenterUrl = MMSCenterUrl;
10 | this.MMSPort = MMSPort;
11 | this.MMSProxy = MMSProxy;
12 | }
13 |
14 | public APN() {
15 |
16 | }
17 | }
--------------------------------------------------------------------------------
/library/src/main/java/com/google/android/mms/InvalidHeaderValueException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Esmertec AG.
3 | * Copyright (C) 2007 The Android Open Source Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package com.google.android.mms;
19 |
20 | /**
21 | * Thrown when an invalid header value was set.
22 | */
23 | public class InvalidHeaderValueException extends MmsException {
24 | private static final long serialVersionUID = -2053384496042052262L;
25 |
26 | /**
27 | * Constructs an InvalidHeaderValueException with no detailed message.
28 | */
29 | public InvalidHeaderValueException() {
30 | super();
31 | }
32 |
33 | /**
34 | * Constructs an InvalidHeaderValueException with the specified detailed message.
35 | *
36 | * @param message the detailed message.
37 | */
38 | public InvalidHeaderValueException(String message) {
39 | super(message);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/library/src/main/java/com/google/android/mms/MMSPart.java:
--------------------------------------------------------------------------------
1 | package com.google.android.mms;
2 |
3 | import android.net.Uri;
4 |
5 | public class MMSPart {
6 | public String name = "";
7 | public String fileName = "";
8 | public String mimeType = "";
9 | public byte[] data;
10 | public Uri Path;
11 | }
--------------------------------------------------------------------------------
/library/src/main/java/com/google/android/mms/MmsException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007 Esmertec AG.
3 | * Copyright (C) 2007 The Android Open Source Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package com.google.android.mms;
19 |
20 | /**
21 | * A generic exception that is thrown by the Mms client.
22 | */
23 | public class MmsException extends Exception {
24 | private static final long serialVersionUID = -7323249827281485390L;
25 |
26 | /**
27 | * Creates a new MmsException.
28 | */
29 | public MmsException() {
30 | super();
31 | }
32 |
33 | /**
34 | * Creates a new MmsException with the specified detail message.
35 | *
36 | * @param message the detail message.
37 | */
38 | public MmsException(String message) {
39 | super(message);
40 | }
41 |
42 | /**
43 | * Creates a new MmsException with the specified cause.
44 | *
45 | * @param cause the cause.
46 | */
47 | public MmsException(Throwable cause) {
48 | super(cause);
49 | }
50 |
51 | /**
52 | * Creates a new MmsException with the specified detail message and cause.
53 | *
54 | * @param message the detail message.
55 | * @param cause the cause.
56 | */
57 | public MmsException(String message, Throwable cause) {
58 | super(message, cause);
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/library/src/main/java/com/google/android/mms/util_alt/PduCacheEntry.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 Jacob Klinker
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.google.android.mms.util_alt;
18 |
19 | import com.google.android.mms.pdu_alt.GenericPdu;
20 |
21 | public final class PduCacheEntry {
22 | private final GenericPdu mPdu;
23 | private final int mMessageBox;
24 | private final long mThreadId;
25 |
26 | public PduCacheEntry(GenericPdu pdu, int msgBox, long threadId) {
27 | mPdu = pdu;
28 | mMessageBox = msgBox;
29 | mThreadId = threadId;
30 | }
31 |
32 | public GenericPdu getPdu() {
33 | return mPdu;
34 | }
35 |
36 | public int getMessageBox() {
37 | return mMessageBox;
38 | }
39 |
40 | public long getThreadId() {
41 | return mThreadId;
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/library/src/main/java/com/klinker/android/send_message/BroadcastUtils.java:
--------------------------------------------------------------------------------
1 | package com.klinker.android.send_message;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.content.pm.ActivityInfo;
6 | import android.content.pm.PackageInfo;
7 | import android.content.pm.PackageManager;
8 |
9 | /**
10 | * Utility for helping with Android O changes. This means that we need to explicitly send broadcasts
11 | * to the correct receiver instead of implicitly. This is done by attaching the class and package
12 | * name to the intent based on the provided action.
13 | */
14 | public class BroadcastUtils {
15 |
16 | public static void sendExplicitBroadcast(Context context, Intent intent, String action) {
17 | addClassName(context, intent, action);
18 | intent.setAction(action);
19 | context.sendBroadcast(intent);
20 | }
21 |
22 | public static void addClassName(Context context, Intent intent, String action) {
23 | PackageManager pm = context.getPackageManager();
24 |
25 | try {
26 | PackageInfo packageInfo =
27 | pm.getPackageInfo(context.getPackageName(), PackageManager.GET_RECEIVERS);
28 |
29 | ActivityInfo[] receivers = packageInfo.receivers;
30 | for (ActivityInfo receiver : receivers) {
31 | if (receiver.taskAffinity.equals(action)) {
32 | intent.setClassName(receiver.packageName, receiver.name);
33 | }
34 | }
35 | } catch (Exception e) {
36 | e.printStackTrace();
37 | }
38 |
39 | intent.setPackage(context.getPackageName());
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/library/src/main/java/com/klinker/android/send_message/SmsManagerFactory.java:
--------------------------------------------------------------------------------
1 | package com.klinker.android.send_message;
2 |
3 | import android.os.Build;
4 | import android.telephony.SmsManager;
5 |
6 | public class SmsManagerFactory {
7 |
8 | public static SmsManager createSmsManager(Settings settings) {
9 | return createSmsManager(settings.getSubscriptionId());
10 | }
11 |
12 | public static SmsManager createSmsManager(int subscriptionId) {
13 | if (subscriptionId != Settings.DEFAULT_SUBSCRIPTION_ID &&
14 | Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
15 | SmsManager manager = null;
16 |
17 | try {
18 | manager = SmsManager.getSmsManagerForSubscriptionId(subscriptionId);
19 | } catch (Exception e) {
20 | e.printStackTrace();
21 | }
22 |
23 | if (manager != null) {
24 | return manager;
25 | } else {
26 | return SmsManager.getDefault();
27 | }
28 | } else {
29 | return SmsManager.getDefault();
30 | }
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/library/src/main/java/com/klinker/android/send_message/StatusUpdatedReceiver.java:
--------------------------------------------------------------------------------
1 | package com.klinker.android.send_message;
2 |
3 | import android.content.BroadcastReceiver;
4 | import android.content.Context;
5 | import android.content.Intent;
6 |
7 | public abstract class StatusUpdatedReceiver extends BroadcastReceiver {
8 |
9 | // Updates the status of the message in the internal database
10 | public abstract void updateInInternalDatabase(Context context, Intent intent, int receiverResultCode);
11 |
12 | // allows the implementer to update the status of the message in their database
13 | public abstract void onMessageStatusUpdated(Context context, Intent intent, int receiverResultCode);
14 |
15 | @Override
16 | public final void onReceive(final Context context, final Intent intent) {
17 | final int resultCode = getResultCode();
18 | new Thread(new Runnable() {
19 | @Override
20 | public void run() {
21 | onMessageStatusUpdated(context, intent, resultCode);
22 | updateInInternalDatabase(context, intent, resultCode);
23 | }
24 | }).start();
25 | }
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/events/EventException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE.
10 | * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11 | */
12 |
13 | package org.w3c.dom.events;
14 |
15 | /**
16 | * Event operations may throw an EventException
as specified in
17 | * their method descriptions.
18 | * See also the Document Object Model (DOM) Level 2 Events Specification .
19 | * @since DOM Level 2
20 | */
21 | public class EventException extends RuntimeException {
22 | public EventException(short code, String message) {
23 | super(message);
24 | this.code = code;
25 | }
26 | public short code;
27 | // EventExceptionCode
28 | /**
29 | * If the Event
's type was not specified by initializing the
30 | * event before the method was called. Specification of the Event's type
31 | * as null
or an empty string will also trigger this
32 | * exception.
33 | */
34 | public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/events/EventListener.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE.
10 | * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11 | */
12 |
13 | package org.w3c.dom.events;
14 |
15 | /**
16 | * The EventListener
interface is the primary method for
17 | * handling events. Users implement the EventListener
interface
18 | * and register their listener on an EventTarget
using the
19 | * AddEventListener
method. The users should also remove their
20 | * EventListener
from its EventTarget
after they
21 | * have completed using the listener.
22 | *
When a Node
is copied using the cloneNode
23 | * method the EventListener
s attached to the source
24 | * Node
are not attached to the copied Node
. If
25 | * the user wishes the same EventListener
s to be added to the
26 | * newly created copy the user must add them manually.
27 | *
See also the Document Object Model (DOM) Level 2 Events Specification .
28 | * @since DOM Level 2
29 | */
30 | public interface EventListener {
31 | /**
32 | * This method is called whenever an event occurs of the type for which
33 | * the EventListener
interface was registered.
34 | * @param evt The Event
contains contextual information
35 | * about the event. It also contains the stopPropagation
36 | * and preventDefault
methods which are used in
37 | * determining the event's flow and default action.
38 | */
39 | public void handleEvent(Event evt);
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementExclusiveTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.DOMException;
16 | import org.w3c.dom.NodeList;
17 |
18 | /**
19 | * This interface defines a time container with semantics based upon par, but
20 | * with the additional constraint that only one child element may play at a
21 | * time.
22 | */
23 | public interface ElementExclusiveTimeContainer extends ElementTimeContainer {
24 | /**
25 | * Controls the end of the container. Need to address thr id-ref value.
26 | * @exception DOMException
27 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
28 | */
29 | public String getEndSync();
30 | public void setEndSync(String endSync)
31 | throws DOMException;
32 |
33 | /**
34 | * This should support another method to get the ordered collection of
35 | * paused elements (the paused stack) at a given point in time.
36 | * @return All paused elements at the current time.
37 | */
38 | public NodeList getPausedElements();
39 |
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementLayout.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.DOMException;
16 |
17 | /**
18 | * This interface is used by SMIL elements root-layout, top-layout and region.
19 | *
20 | */
21 | public interface ElementLayout {
22 | /**
23 | * @exception DOMException
24 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
25 | */
26 | public String getTitle();
27 | public void setTitle(String title)
28 | throws DOMException;
29 |
30 | /**
31 | * @exception DOMException
32 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
33 | */
34 | public String getBackgroundColor();
35 | public void setBackgroundColor(String backgroundColor)
36 | throws DOMException;
37 |
38 | /**
39 | * @exception DOMException
40 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
41 | */
42 | public int getHeight();
43 | public void setHeight(int height)
44 | throws DOMException;
45 |
46 | /**
47 | * @exception DOMException
48 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
49 | */
50 | public int getWidth();
51 | public void setWidth(int width)
52 | throws DOMException;
53 |
54 | }
55 |
56 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementParallelTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.DOMException;
16 |
17 | /**
18 | * A parallel
container defines a simple parallel time grouping
19 | * in which multiple elements can play back at the same time. It may have to
20 | * specify a repeat iteration. (?)
21 | */
22 | public interface ElementParallelTimeContainer extends ElementTimeContainer {
23 | /**
24 | * Controls the end of the container. Need to address thr id-ref value.
25 | * @exception DOMException
26 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
27 | */
28 | public String getEndSync();
29 | public void setEndSync(String endSync)
30 | throws DOMException;
31 |
32 | /**
33 | * This method returns the implicit duration in seconds.
34 | * @return The implicit duration in seconds or -1 if the implicit is
35 | * unknown (indefinite?).
36 | */
37 | public float getImplicitDuration();
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementSequentialTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * A seq
container defines a sequence of elements in which
17 | * elements play one after the other.
18 | */
19 | public interface ElementSequentialTimeContainer extends ElementTimeContainer {
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementSyncBehavior.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * The synchronization behavior extension.
17 | */
18 | public interface ElementSyncBehavior {
19 | /**
20 | * The runtime synchronization behavior for an element.
21 | */
22 | public String getSyncBehavior();
23 |
24 | /**
25 | * The sync tolerance for the associated element. It has an effect only if
26 | * the element has syncBehavior="locked"
.
27 | */
28 | public float getSyncTolerance();
29 |
30 | /**
31 | * Defines the default value for the runtime synchronization behavior for
32 | * an element, and all descendents.
33 | */
34 | public String getDefaultSyncBehavior();
35 |
36 | /**
37 | * Defines the default value for the sync tolerance for an element, and
38 | * all descendents.
39 | */
40 | public float getDefaultSyncTolerance();
41 |
42 | /**
43 | * If set to true, forces the time container playback to sync to this
44 | * element.
45 | */
46 | public boolean getSyncMaster();
47 |
48 | }
49 |
50 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementTargetAttributes.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * This interface define the set of animation target extensions.
17 | */
18 | public interface ElementTargetAttributes {
19 | /**
20 | * The name of the target attribute.
21 | */
22 | public String getAttributeName();
23 | public void setAttributeName(String attributeName);
24 |
25 | // attributeTypes
26 | public static final short ATTRIBUTE_TYPE_AUTO = 0;
27 | public static final short ATTRIBUTE_TYPE_CSS = 1;
28 | public static final short ATTRIBUTE_TYPE_XML = 2;
29 |
30 | /**
31 | * A code representing the value of the attributeType attribute, as
32 | * defined above. Default value is ATTRIBUTE_TYPE_CODE
.
33 | */
34 | public short getAttributeType();
35 | public void setAttributeType(short attributeType);
36 |
37 | }
38 |
39 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/ElementTimeContainer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.NodeList;
16 |
17 | /**
18 | * This is a placeholder - subject to change. This represents generic
19 | * timelines.
20 | */
21 | public interface ElementTimeContainer extends ElementTime {
22 | /**
23 | * A NodeList that contains all timed childrens of this node. If there are
24 | * no timed children, the Nodelist
is empty. An iterator
25 | * is more appropriate here than a node list but it requires Traversal
26 | * module support.
27 | */
28 | public NodeList getTimeChildren();
29 |
30 | /**
31 | * Returns a list of child elements active at the specified invocation.
32 | * @param instant The desired position on the local timeline in
33 | * milliseconds.
34 | * @return List of timed child-elements active at instant.
35 | */
36 | public NodeList getActiveChildrenAt(float instant);
37 |
38 | }
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILAnimateColorElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * This interface represents the SMIL animateColor
element.
17 | */
18 | public interface SMILAnimateColorElement extends SMILAnimation {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILAnimateElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * This interface represents the SMIL animate
element.
17 | */
18 | public interface SMILAnimateElement extends SMILAnimation {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILAnimateMotionElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.DOMException;
16 |
17 | /**
18 | * This interface present the animationMotion
element in SMIL.
19 | */
20 | public interface SMILAnimateMotionElement extends SMILAnimateElement {
21 | /**
22 | * Specifies the curve that describes the attribute value as a function
23 | * of time. Check with the SVG spec for better support
24 | * @exception DOMException
25 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
26 | */
27 | public String getPath();
28 | public void setPath(String path)
29 | throws DOMException;
30 |
31 | /**
32 | * Specifies the origin of motion for the animation.
33 | * @exception DOMException
34 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
35 | */
36 | public String getOrigin();
37 | public void setOrigin(String origin)
38 | throws DOMException;
39 |
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILDocument.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | *
12 | * Difference to the original copy of this file:
13 | * 1) ADD public SMILElement getHead();
14 | * 2) ADD public SMILElement getBody();
15 | * 3) ADD public SMILLayoutElement getLayout();
16 | */
17 |
18 | package org.w3c.dom.smil;
19 |
20 | import org.w3c.dom.Document;
21 |
22 | /**
23 | * A SMIL document is the root of the SMIL Hierarchy and holds the entire
24 | * content. Beside providing access to the hierarchy, it also provides some
25 | * convenience methods for accessing certain sets of information from the
26 | * document. Cover document timing, document locking?, linking modality and
27 | * any other document level issues. Are there issues with nested SMIL files?
28 | * Is it worth talking about different document scenarios, corresponding to
29 | * differing profiles? E.g. Standalone SMIL, HTML integration, etc.
30 | */
31 | public interface SMILDocument extends Document, ElementSequentialTimeContainer {
32 |
33 | /**
34 | * Returns the element that contains the layout node of this document,
35 | * i.e. the HEAD
element.
36 | */
37 | public SMILElement getHead();
38 |
39 | /**
40 | * Returns the element that contains the par's of the document, i.e. the
41 | * BODY
element.
42 | */
43 | public SMILElement getBody();
44 |
45 | /**
46 | * Returns the element that contains the layout information of the presentation,
47 | * i.e. the LAYOUT
element.
48 | */
49 | public SMILLayoutElement getLayout();
50 | }
51 |
52 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.DOMException;
16 | import org.w3c.dom.Element;
17 |
18 | /**
19 | * The SMILElement
interface is the base for all SMIL element
20 | * types. It follows the model of the HTMLElement
in the HTML
21 | * DOM, extending the base Element
class to denote SMIL-specific
22 | * elements.
23 | *
Note that the SMILElement
interface overlaps with the
24 | * HTMLElement
interface. In practice, an integrated document
25 | * profile that include HTML and SMIL modules will effectively implement both
26 | * interfaces (see also the DOM documentation discussion of Inheritance vs
27 | * Flattened Views of the API ). // etc. This needs attention
28 | */
29 | public interface SMILElement extends Element {
30 | /**
31 | * The unique id.
32 | * @exception DOMException
33 | * NO_MODIFICATION_ALLOWED_ERR: Raised if this attribute is readonly.
34 | */
35 | public String getId();
36 | public void setId(String id)
37 | throws DOMException;
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILLayoutElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | *
12 | * Difference to the original copy of this file:
13 | * 1) ADD public SMILRootLayoutElement getRootLayout();
14 | * 2) ADD public NodeList getRegions();
15 | */
16 |
17 | package org.w3c.dom.smil;
18 |
19 | import org.w3c.dom.NodeList;
20 |
21 | /**
22 | * Declares layout type for the document. See the LAYOUT element definition .
23 | *
24 | */
25 | public interface SMILLayoutElement extends SMILElement {
26 | /**
27 | * The mime type of the layout langage used in this layout element.The
28 | * default value of the type attribute is "text/smil-basic-layout".
29 | */
30 | public String getType();
31 |
32 | /**
33 | * true
if the player can understand the mime type,
34 | * false
otherwise.
35 | */
36 | public boolean getResolved();
37 |
38 | /**
39 | * Returns the root layout element of this document.
40 | */
41 | public SMILRootLayoutElement getRootLayout();
42 |
43 | /**
44 | * Return the region elements of this document.
45 | */
46 | public NodeList getRegions();
47 | }
48 |
49 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILParElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007-2008 Esmertec AG.
3 | * Copyright (C) 2007-2008 The Android Open Source Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.w3c.dom.smil;
19 |
20 | public interface SMILParElement extends ElementParallelTimeContainer,
21 | SMILElement {
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILRefElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * // audio, video, ...
17 | */
18 | public interface SMILRefElement extends SMILMediaElement {
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILRegionInterface.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * Declares rendering surface for an element. See the region attribute
17 | * definition .
18 | */
19 | public interface SMILRegionInterface {
20 | /**
21 | */
22 | public SMILRegionElement getRegion();
23 | public void setRegion(SMILRegionElement region);
24 |
25 | }
26 |
27 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILRegionMediaElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2007-2008 Esmertec AG.
3 | * Copyright (C) 2007-2008 The Android Open Source Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.w3c.dom.smil;
19 |
20 | public interface SMILRegionMediaElement extends SMILMediaElement,
21 | SMILRegionInterface {
22 | }
23 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILRootLayoutElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * Declares layout properties for the root-layout element. See the
17 | * root-layout element definition .
18 | */
19 | public interface SMILRootLayoutElement extends SMILElement, ElementLayout {
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILSetElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * This interface represents the set element.
17 | */
18 | public interface SMILSetElement extends ElementTimeControl, ElementTime, ElementTargetAttributes, SMILElement {
19 | /**
20 | * Specifies the value for the attribute during the duration of this
21 | * element.
22 | */
23 | public String getTo();
24 | public void setTo(String to);
25 |
26 | }
27 |
28 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILSwitchElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.Element;
16 |
17 | /**
18 | * Defines a block of content control. See the switch element definition .
19 | */
20 | public interface SMILSwitchElement extends SMILElement {
21 | /**
22 | * Returns the slected element at runtime. null
if the
23 | * selected element is not yet available.
24 | * @return The selected Element
for thisd switch
25 | * element.
26 | */
27 | public Element getSelectedElement();
28 |
29 | }
30 |
31 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/SMILTopLayoutElement.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * Declares layout properties for the top-layout element. See the top-layout
17 | * element definition .
18 | */
19 | public interface SMILTopLayoutElement extends SMILElement, ElementLayout {
20 | }
21 |
22 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/TimeEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | import org.w3c.dom.events.Event;
16 | import org.w3c.dom.views.AbstractView;
17 |
18 | /**
19 | * The TimeEvent
interface provides specific contextual
20 | * information associated with Time events.
21 | */
22 | public interface TimeEvent extends Event {
23 | /**
24 | * The view
attribute identifies the
25 | * AbstractView
from which the event was generated.
26 | */
27 | public AbstractView getView();
28 |
29 | /**
30 | * Specifies some detail information about the Event
,
31 | * depending on the type of event.
32 | */
33 | public int getDetail();
34 |
35 | /**
36 | * The initTimeEvent
method is used to initialize the value
37 | * of a TimeEvent
created through the
38 | * DocumentEvent
interface. This method may only be called
39 | * before the TimeEvent
has been dispatched via the
40 | * dispatchEvent
method, though it may be called multiple
41 | * times during that phase if necessary. If called multiple times, the
42 | * final invocation takes precedence.
43 | * @param typeArg Specifies the event type.
44 | * @param viewArg Specifies the Event
's
45 | * AbstractView
.
46 | * @param detailArg Specifies the Event
's detail.
47 | */
48 | public void initTimeEvent(String typeArg,
49 | AbstractView viewArg,
50 | int detailArg);
51 |
52 | }
53 |
54 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/smil/TimeList.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10 | * details.
11 | */
12 |
13 | package org.w3c.dom.smil;
14 |
15 | /**
16 | * The TimeList
interface provides the abstraction of an ordered
17 | * collection of times, without defining or constraining how this collection
18 | * is implemented.
19 | *
The items in the TimeList
are accessible via an integral
20 | * index, starting from 0.
21 | */
22 | public interface TimeList {
23 | /**
24 | * Returns the index
th item in the collection. If
25 | * index
is greater than or equal to the number of times in
26 | * the list, this returns null
.
27 | * @param index Index into the collection.
28 | * @return The time at the index
th position in the
29 | * TimeList
, or null
if that is not a valid
30 | * index.
31 | */
32 | public Time item(int index);
33 |
34 | /**
35 | * The number of times in the list. The range of valid child time indices
36 | * is 0 to length-1
inclusive.
37 | */
38 | public int getLength();
39 |
40 | }
41 |
42 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/views/AbstractView.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE.
10 | * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11 | */
12 |
13 | package org.w3c.dom.views;
14 |
15 | /**
16 | * A base interface that all views shall derive from.
17 | *
See also the Document Object Model (DOM) Level 2 Views Specification .
18 | * @since DOM Level 2
19 | */
20 | public interface AbstractView {
21 | /**
22 | * The source DocumentView
of which this is an
23 | * AbstractView
.
24 | */
25 | public DocumentView getDocument();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/library/src/main/java/org/w3c/dom/views/DocumentView.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2000 World Wide Web Consortium,
3 | * (Massachusetts Institute of Technology, Institut National de
4 | * Recherche en Informatique et en Automatique, Keio University). All
5 | * Rights Reserved. This program is distributed under the W3C's Software
6 | * Intellectual Property License. This program is distributed in the
7 | * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 | * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 | * PURPOSE.
10 | * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
11 | */
12 |
13 | package org.w3c.dom.views;
14 |
15 | /**
16 | * The DocumentView
interface is implemented by
17 | * Document
objects in DOM implementations supporting DOM
18 | * Views. It provides an attribute to retrieve the default view of a
19 | * document.
20 | *
See also the Document Object Model (DOM) Level 2 Views Specification .
21 | * @since DOM Level 2
22 | */
23 | public interface DocumentView {
24 | /**
25 | * The default AbstractView
for this Document
,
26 | * or null
if none available.
27 | */
28 | public AbstractView getDefaultView();
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/library/src/main/res/drawable-hdpi/ic_alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/library/src/main/res/drawable-hdpi/ic_alert.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-mdpi/ic_alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/library/src/main/res/drawable-mdpi/ic_alert.png
--------------------------------------------------------------------------------
/library/src/main/res/drawable-xhdpi/ic_alert.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/library/src/main/res/drawable-xhdpi/ic_alert.png
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc204-mnc04/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc208-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc208-mnc10/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc208-mnc15/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc208-mnc20/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
24 |
25 |
26 |
27 | 614400
28 |
29 |
30 | 1944
31 |
32 |
33 | 2592
34 |
35 |
36 | false
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc208-mnc26/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc214-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
24 |
25 | false
26 |
27 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc214-mnc03/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc214-mnc07/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 512000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc218-mnc05/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc222-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc222-mnc08/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc234-mnc10/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
22 |
26 | 10
27 |
28 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc234-mnc11/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
22 |
26 | 10
27 |
28 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc234-mnc15/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 |
21 |
22 |
26 | 10
27 |
28 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc238-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 2097152
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc240-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc240-mnc04/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc240-mnc08/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc240-mnc24/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc242-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 2097152
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc242-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc262-mnc07/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc274-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc274-mnc03/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc286-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 512000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc286-mnc03/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 512000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc294-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 102400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc294-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 131072
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc294-mnc03/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 256000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc220/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 10
37 |
38 |
42 | 5
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc221/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 10
37 |
38 |
42 | 5
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc270/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc290/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc320/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | 614400
20 |
21 |
22 | 1944
23 |
24 |
25 | 2592
26 |
27 |
29 | 20
30 |
31 |
35 | 6
36 |
37 |
38 | 80
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc370/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc490/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc500/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 3072000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc510/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 3072000
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc520/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | 3072000
20 |
21 |
22 | 1944
23 |
24 |
25 | 2592
26 |
27 |
29 | 20
30 |
31 |
35 | 6
36 |
37 |
38 | 80
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc610/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 8
43 |
44 |
45 | 80
46 |
47 |
48 | 6245
49 |
50 |
51 | false
52 |
53 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc660/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc720/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 20
37 |
38 |
42 | 6
43 |
44 |
45 | 80
46 |
47 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc302-mnc780/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc026/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc070/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
31 | 10
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc090/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 614400
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc150/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc170/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
31 | 10
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc260/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc380/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 10
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc410/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
31 | 10
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc420/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc450/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc490/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc560/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
31 | 10
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc680/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
21 | 1048576
22 |
23 |
24 | 1944
25 |
26 |
27 | 2592
28 |
29 |
31 | 10
32 |
33 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc770/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc310-mnc980/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc311-mnc180/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
36 | 10
37 |
38 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc311-mnc370/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc334-mnc020/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc418-mnc05/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 102400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc418-mnc20/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 153600
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc418-mnc30/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 153600
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc420-mnc04/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 409600
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc440-mnc10/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc450-mnc00/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc450-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 | false
35 |
36 | false
37 |
38 | false
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc450-mnc05/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 | false
35 |
36 | false
37 |
38 | false
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc450-mnc06/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
35 | 80
36 |
37 | false
38 |
39 | false
40 |
41 | false
42 |
43 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc450-mnc08/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 1048576
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 | false
35 |
36 | false
37 |
38 | false
39 |
40 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc505-mnc01/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 2097152
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc530-mnc05/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
35 | false
36 |
37 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc604-mnc00/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 102400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc604-mnc02/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 102400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/library/src/main/res/xml-mcc647-mnc10/mms_config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
23 |
24 |
25 |
26 | 614400
27 |
28 |
29 | 1944
30 |
31 |
32 | 2592
33 |
34 |
--------------------------------------------------------------------------------
/sample/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/sample/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 |
3 | allprojects {
4 | repositories {
5 | mavenCentral()
6 | maven {
7 | url 'https://oss.sonatype.org/content/repositories/snapshots/'
8 | }
9 | }
10 | }
11 |
12 | android {
13 | compileSdkVersion 31
14 |
15 | defaultConfig {
16 | applicationId "com.klinker.android.send_message.sample"
17 | minSdkVersion 22
18 | targetSdkVersion 31
19 | versionCode 1
20 | versionName "1.0"
21 | }
22 |
23 | buildTypes {
24 | release {
25 | minifyEnabled false
26 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
27 | }
28 | }
29 |
30 | lintOptions {
31 | abortOnError false
32 | }
33 | }
34 |
35 | dependencies {
36 | implementation project(":library")
37 | implementation 'com.android.support:recyclerview-v7:28.0.0'
38 | implementation 'com.klinkerapps:logger:1.0.3'
39 | }
40 |
--------------------------------------------------------------------------------
/sample/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # By default, the flags in this file are appended to flags specified
3 | # in /home/jacob/Programs/android-sdk-linux/tools/proguard/proguard-android.txt
4 | # You can edit the include path and order by changing the proguardFiles
5 | # directive in build.gradle.
6 | #
7 | # For more details, see
8 | # http://developer.android.com/guide/developing/tools/proguard.html
9 |
10 | # Add any project specific keep options here:
11 |
12 | # If your project uses WebView with JS, uncomment the following
13 | # and specify the fully qualified class name to the JavaScript interface
14 | # class:
15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16 | # public *;
17 | #}
18 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/klinker/android/messaging_sample/HeadlessSmsSendService.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Jacob Klinker
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.klinker.android.messaging_sample;
18 |
19 | import android.app.Service;
20 | import android.content.Intent;
21 | import android.os.IBinder;
22 |
23 | /**
24 | * Needed to make default sms app for testing
25 | */
26 | public class HeadlessSmsSendService extends Service {
27 |
28 | @Override
29 | public IBinder onBind(Intent intent) {
30 | return null;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/klinker/android/messaging_sample/MmsReceivedReceiverImpl.java:
--------------------------------------------------------------------------------
1 | package com.klinker.android.messaging_sample;
2 |
3 | import android.content.Context;
4 | import android.net.Uri;
5 | import android.util.Log;
6 |
7 | import com.klinker.android.send_message.MmsReceivedReceiver;
8 |
9 | public class MmsReceivedReceiverImpl extends MmsReceivedReceiver {
10 |
11 | @Override
12 | public void onMessageReceived(Context context, Uri messageUri) {
13 | Log.v("MmsReceived", "message received: " + messageUri.toString());
14 | }
15 |
16 | @Override
17 | public void onError(Context context, String error) {
18 | Log.v("MmsReceived", "error: " + error);
19 | }
20 |
21 | }
22 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/klinker/android/messaging_sample/MmsReceiver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Jacob Klinker
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.klinker.android.messaging_sample;
18 |
19 | import com.android.mms.transaction.PushReceiver;
20 |
21 | /**
22 | * Needed to make default sms app for testing
23 | */
24 | public class MmsReceiver extends PushReceiver {
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/klinker/android/messaging_sample/PermissionActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 Jacob Klinker
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.klinker.android.messaging_sample;
18 |
19 | import android.Manifest;
20 | import android.app.Activity;
21 | import android.content.Intent;
22 | import android.content.SharedPreferences;
23 | import android.os.Bundle;
24 | import android.preference.PreferenceManager;
25 | import android.view.Menu;
26 | import android.view.MenuItem;
27 |
28 | import com.klinker.android.messaging_sample.R;
29 |
30 | public class PermissionActivity extends Activity {
31 |
32 | @Override
33 | protected void onCreate(Bundle savedInstanceState) {
34 | super.onCreate(savedInstanceState);
35 |
36 | requestPermissions(new String[]{
37 | Manifest.permission.READ_SMS,
38 | Manifest.permission.SEND_SMS,
39 | Manifest.permission.RECEIVE_SMS,
40 | Manifest.permission.RECEIVE_MMS,
41 | Manifest.permission.WRITE_EXTERNAL_STORAGE,
42 | Manifest.permission.READ_PHONE_STATE,
43 | Manifest.permission.CHANGE_NETWORK_STATE
44 | }, 0);
45 | }
46 |
47 | @Override
48 | public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
49 | PreferenceManager.getDefaultSharedPreferences(this).edit()
50 | .putBoolean("request_permissions", false)
51 | .commit();
52 |
53 | startActivity(new Intent(this, MainActivity.class));
54 | finish();
55 | }
56 |
57 | }
58 |
--------------------------------------------------------------------------------
/sample/src/main/java/com/klinker/android/messaging_sample/SmsReceiver.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2014 Jacob Klinker
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.klinker.android.messaging_sample;
18 |
19 | import android.app.Notification;
20 | import android.content.BroadcastReceiver;
21 | import android.content.Context;
22 | import android.content.Intent;
23 | import android.support.v4.app.NotificationManagerCompat;
24 | import android.telephony.SmsMessage;
25 |
26 | /**
27 | * Needed to make default sms app for testing
28 | */
29 | public class SmsReceiver extends BroadcastReceiver {
30 |
31 | @Override
32 | public void onReceive(Context context, Intent intent) {
33 | Object[] smsExtra = (Object[]) intent.getExtras().get("pdus");
34 | String body = "";
35 |
36 | for (int i = 0; i < smsExtra.length; ++i) {
37 | SmsMessage sms = SmsMessage.createFromPdu((byte[]) smsExtra[i]);
38 | body += sms.getMessageBody();
39 | }
40 |
41 | Notification notification = new Notification.Builder(context)
42 | .setContentText(body)
43 | .setContentTitle("New Message")
44 | .setSmallIcon(R.drawable.ic_alert)
45 | .setStyle(new Notification.BigTextStyle().bigText(body))
46 | .build();
47 | NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);
48 | notificationManagerCompat.notify(1, notification);
49 | }
50 |
51 | }
52 |
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xxhdpi/android.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/sample/src/main/res/drawable-xxhdpi/android.jpg
--------------------------------------------------------------------------------
/sample/src/main/res/drawable-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/sample/src/main/res/drawable-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/sample/src/main/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 16dp
4 | 16dp
5 |
6 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 | Android Messaging
21 |
22 |
23 |
--------------------------------------------------------------------------------
/sample/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':library', ':sample'
--------------------------------------------------------------------------------