├── .gitignore ├── README.md ├── android-messaging.png ├── build.gradle ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── library ├── build.gradle ├── gradle.properties └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ ├── android │ │ ├── annotation │ │ │ └── SdkConstant.java │ │ ├── database │ │ │ └── sqlite │ │ │ │ └── SqliteWrapper.java │ │ ├── net │ │ │ ├── DhcpInfoInternal.java │ │ │ ├── IConnectivityManager.java │ │ │ ├── INetworkPolicyListener.java │ │ │ ├── INetworkPolicyManager.java │ │ │ ├── LinkAddress.java │ │ │ ├── LinkCapabilities.java │ │ │ ├── LinkProperties.java │ │ │ ├── NetworkIdentity.java │ │ │ ├── NetworkPolicy.java │ │ │ ├── NetworkPolicyManager.java │ │ │ ├── NetworkQuotaInfo.java │ │ │ ├── NetworkState.java │ │ │ ├── NetworkTemplate.java │ │ │ ├── NetworkUtilsHelper.java │ │ │ ├── ProxyProperties.java │ │ │ └── RouteInfo.java │ │ └── provider │ │ │ └── Downloads.java │ ├── com │ │ ├── android │ │ │ ├── i18n │ │ │ │ └── phonenumbers │ │ │ │ │ ├── NumberParseException.java │ │ │ │ │ ├── PhoneNumberUtil.java │ │ │ │ │ └── Phonenumber.java │ │ │ ├── internal │ │ │ │ ├── annotations │ │ │ │ │ └── VisibleForTesting.java │ │ │ │ ├── net │ │ │ │ │ ├── LegacyVpnInfo.java │ │ │ │ │ ├── VpnConfig.java │ │ │ │ │ └── VpnProfile.java │ │ │ │ ├── telephony │ │ │ │ │ ├── EncodeException.java │ │ │ │ │ ├── GsmAlphabet.java │ │ │ │ │ ├── IccUtils.java │ │ │ │ │ ├── SmsConstants.java │ │ │ │ │ └── TelephonyProperties.java │ │ │ │ └── util │ │ │ │ │ ├── ArrayUtils.java │ │ │ │ │ ├── Objects.java │ │ │ │ │ └── Preconditions.java │ │ │ └── mms │ │ │ │ ├── MmsConfig.java │ │ │ │ ├── dom │ │ │ │ ├── AttrImpl.java │ │ │ │ ├── DocumentImpl.java │ │ │ │ ├── ElementImpl.java │ │ │ │ ├── NamedNodeMapImpl.java │ │ │ │ ├── NodeImpl.java │ │ │ │ ├── NodeListImpl.java │ │ │ │ ├── events │ │ │ │ │ ├── EventImpl.java │ │ │ │ │ └── EventTargetImpl.java │ │ │ │ └── smil │ │ │ │ │ ├── ElementParallelTimeContainerImpl.java │ │ │ │ │ ├── ElementSequentialTimeContainerImpl.java │ │ │ │ │ ├── ElementTimeContainerImpl.java │ │ │ │ │ ├── ElementTimeImpl.java │ │ │ │ │ ├── SmilDocumentImpl.java │ │ │ │ │ ├── SmilElementImpl.java │ │ │ │ │ ├── SmilLayoutElementImpl.java │ │ │ │ │ ├── SmilMediaElementImpl.java │ │ │ │ │ ├── SmilParElementImpl.java │ │ │ │ │ ├── SmilPlayer.java │ │ │ │ │ ├── SmilRefElementImpl.java │ │ │ │ │ ├── SmilRegionElementImpl.java │ │ │ │ │ ├── SmilRegionMediaElementImpl.java │ │ │ │ │ ├── SmilRootLayoutElementImpl.java │ │ │ │ │ ├── TimeImpl.java │ │ │ │ │ ├── TimeListImpl.java │ │ │ │ │ └── parser │ │ │ │ │ ├── SmilContentHandler.java │ │ │ │ │ ├── SmilXmlParser.java │ │ │ │ │ └── SmilXmlSerializer.java │ │ │ │ ├── layout │ │ │ │ ├── HVGALayoutParameters.java │ │ │ │ ├── LayoutManager.java │ │ │ │ └── LayoutParameters.java │ │ │ │ ├── logs │ │ │ │ └── LogTag.java │ │ │ │ ├── service_alt │ │ │ │ ├── ApnSettings.java │ │ │ │ ├── DownloadRequest.java │ │ │ │ ├── MmsConfig.java │ │ │ │ ├── MmsConfigManager.java │ │ │ │ ├── MmsConfigXmlProcessor.java │ │ │ │ ├── MmsHttpClient.java │ │ │ │ ├── MmsNetworkManager.java │ │ │ │ ├── MmsRequest.java │ │ │ │ ├── MmsRequestManager.java │ │ │ │ ├── PhoneUtils.java │ │ │ │ ├── SendRequest.java │ │ │ │ ├── SubscriptionIdChecker.java │ │ │ │ ├── SystemPropertiesProxy.java │ │ │ │ └── exception │ │ │ │ │ ├── ApnException.java │ │ │ │ │ ├── MmsHttpException.java │ │ │ │ │ └── MmsNetworkException.java │ │ │ │ ├── transaction │ │ │ │ ├── AbstractRetryScheme.java │ │ │ │ ├── DefaultRetryScheme.java │ │ │ │ ├── DownloadManager.java │ │ │ │ ├── HttpUtils.java │ │ │ │ ├── MessageSender.java │ │ │ │ ├── MessageStatusReceiver.java │ │ │ │ ├── MessageStatusService.java │ │ │ │ ├── MmsMessageSender.java │ │ │ │ ├── MmsPushOutboxMessages.java │ │ │ │ ├── MmsSystemEventReceiver.java │ │ │ │ ├── NotificationTransaction.java │ │ │ │ ├── Observable.java │ │ │ │ ├── Observer.java │ │ │ │ ├── ProgressCallbackEntity.java │ │ │ │ ├── PushReceiver.java │ │ │ │ ├── ReadRecTransaction.java │ │ │ │ ├── RetrieveTransaction.java │ │ │ │ ├── RetryScheduler.java │ │ │ │ ├── SendTransaction.java │ │ │ │ ├── Transaction.java │ │ │ │ ├── TransactionBundle.java │ │ │ │ ├── TransactionService.java │ │ │ │ ├── TransactionSettings.java │ │ │ │ └── TransactionState.java │ │ │ │ └── util │ │ │ │ ├── DownloadManager.java │ │ │ │ ├── ExternalLogger.java │ │ │ │ ├── RateController.java │ │ │ │ └── SendingProgressTokenManager.java │ │ ├── google │ │ │ └── android │ │ │ │ ├── collect │ │ │ │ └── Sets.java │ │ │ │ └── mms │ │ │ │ ├── APN.java │ │ │ │ ├── APNHelper.java │ │ │ │ ├── ContentType.java │ │ │ │ ├── InvalidHeaderValueException.java │ │ │ │ ├── MMSPart.java │ │ │ │ ├── MmsException.java │ │ │ │ ├── pdu_alt │ │ │ │ ├── AcknowledgeInd.java │ │ │ │ ├── Base64.java │ │ │ │ ├── CharacterSets.java │ │ │ │ ├── DeliveryInd.java │ │ │ │ ├── EncodedStringValue.java │ │ │ │ ├── GenericPdu.java │ │ │ │ ├── MultimediaMessagePdu.java │ │ │ │ ├── NotificationInd.java │ │ │ │ ├── NotifyRespInd.java │ │ │ │ ├── PduBody.java │ │ │ │ ├── PduComposer.java │ │ │ │ ├── PduContentTypes.java │ │ │ │ ├── PduHeaders.java │ │ │ │ ├── PduParser.java │ │ │ │ ├── PduPart.java │ │ │ │ ├── PduPersister.java │ │ │ │ ├── QuotedPrintable.java │ │ │ │ ├── ReadOrigInd.java │ │ │ │ ├── ReadRecInd.java │ │ │ │ ├── RetrieveConf.java │ │ │ │ ├── SendConf.java │ │ │ │ └── SendReq.java │ │ │ │ ├── smil │ │ │ │ └── SmilHelper.java │ │ │ │ └── util_alt │ │ │ │ ├── AbstractCache.java │ │ │ │ ├── DownloadDrmHelper.java │ │ │ │ ├── DrmConvertSession.java │ │ │ │ ├── PduCache.java │ │ │ │ ├── PduCacheEntry.java │ │ │ │ └── SqliteWrapper.java │ │ └── klinker │ │ │ └── android │ │ │ └── send_message │ │ │ ├── ApnUtils.java │ │ │ ├── BroadcastUtils.java │ │ │ ├── DeliveredReceiver.java │ │ │ ├── Message.java │ │ │ ├── MmsFileProvider.java │ │ │ ├── MmsReceivedReceiver.java │ │ │ ├── MmsReceivedService.java │ │ │ ├── MmsSentReceiver.java │ │ │ ├── SentReceiver.java │ │ │ ├── Settings.java │ │ │ ├── SmsManagerFactory.java │ │ │ ├── StatusUpdatedReceiver.java │ │ │ ├── StripAccents.java │ │ │ ├── Transaction.java │ │ │ └── Utils.java │ └── org │ │ └── w3c │ │ └── dom │ │ ├── events │ │ ├── DocumentEvent.java │ │ ├── Event.java │ │ ├── EventException.java │ │ ├── EventListener.java │ │ └── EventTarget.java │ │ ├── smil │ │ ├── ElementExclusiveTimeContainer.java │ │ ├── ElementLayout.java │ │ ├── ElementParallelTimeContainer.java │ │ ├── ElementSequentialTimeContainer.java │ │ ├── ElementSyncBehavior.java │ │ ├── ElementTargetAttributes.java │ │ ├── ElementTest.java │ │ ├── ElementTime.java │ │ ├── ElementTimeContainer.java │ │ ├── ElementTimeControl.java │ │ ├── ElementTimeManipulation.java │ │ ├── SMILAnimateColorElement.java │ │ ├── SMILAnimateElement.java │ │ ├── SMILAnimateMotionElement.java │ │ ├── SMILAnimation.java │ │ ├── SMILDocument.java │ │ ├── SMILElement.java │ │ ├── SMILLayoutElement.java │ │ ├── SMILMediaElement.java │ │ ├── SMILParElement.java │ │ ├── SMILRefElement.java │ │ ├── SMILRegionElement.java │ │ ├── SMILRegionInterface.java │ │ ├── SMILRegionMediaElement.java │ │ ├── SMILRootLayoutElement.java │ │ ├── SMILSetElement.java │ │ ├── SMILSwitchElement.java │ │ ├── SMILTopLayoutElement.java │ │ ├── Time.java │ │ ├── TimeEvent.java │ │ └── TimeList.java │ │ └── views │ │ ├── AbstractView.java │ │ └── DocumentView.java │ └── res │ ├── drawable-hdpi │ └── ic_alert.png │ ├── drawable-mdpi │ └── ic_alert.png │ ├── drawable-xhdpi │ └── ic_alert.png │ ├── values │ └── strings.xml │ ├── xml-mcc204-mnc04 │ └── mms_config.xml │ ├── xml-mcc208-mnc01 │ └── mms_config.xml │ ├── xml-mcc208-mnc10 │ └── mms_config.xml │ ├── xml-mcc208-mnc15 │ └── mms_config.xml │ ├── xml-mcc208-mnc20 │ └── mms_config.xml │ ├── xml-mcc208-mnc26 │ └── mms_config.xml │ ├── xml-mcc214-mnc01 │ └── mms_config.xml │ ├── xml-mcc214-mnc03 │ └── mms_config.xml │ ├── xml-mcc214-mnc07 │ └── mms_config.xml │ ├── xml-mcc218-mnc05 │ └── mms_config.xml │ ├── xml-mcc222-mnc01 │ └── mms_config.xml │ ├── xml-mcc222-mnc08 │ └── mms_config.xml │ ├── xml-mcc234-mnc10 │ └── mms_config.xml │ ├── xml-mcc234-mnc11 │ └── mms_config.xml │ ├── xml-mcc234-mnc15 │ └── mms_config.xml │ ├── xml-mcc238-mnc02 │ └── mms_config.xml │ ├── xml-mcc240-mnc01 │ └── mms_config.xml │ ├── xml-mcc240-mnc04 │ └── mms_config.xml │ ├── xml-mcc240-mnc08 │ └── mms_config.xml │ ├── xml-mcc240-mnc24 │ └── mms_config.xml │ ├── xml-mcc242-mnc01 │ └── mms_config.xml │ ├── xml-mcc242-mnc02 │ └── mms_config.xml │ ├── xml-mcc262-mnc07 │ └── mms_config.xml │ ├── xml-mcc274-mnc02 │ └── mms_config.xml │ ├── xml-mcc274-mnc03 │ └── mms_config.xml │ ├── xml-mcc286-mnc01 │ └── mms_config.xml │ ├── xml-mcc286-mnc03 │ └── mms_config.xml │ ├── xml-mcc294-mnc01 │ └── mms_config.xml │ ├── xml-mcc294-mnc02 │ └── mms_config.xml │ ├── xml-mcc294-mnc03 │ └── mms_config.xml │ ├── xml-mcc302-mnc220 │ └── mms_config.xml │ ├── xml-mcc302-mnc221 │ └── mms_config.xml │ ├── xml-mcc302-mnc270 │ └── mms_config.xml │ ├── xml-mcc302-mnc290 │ └── mms_config.xml │ ├── xml-mcc302-mnc320 │ └── mms_config.xml │ ├── xml-mcc302-mnc370 │ └── mms_config.xml │ ├── xml-mcc302-mnc490 │ └── mms_config.xml │ ├── xml-mcc302-mnc500 │ └── mms_config.xml │ ├── xml-mcc302-mnc510 │ └── mms_config.xml │ ├── xml-mcc302-mnc520 │ └── mms_config.xml │ ├── xml-mcc302-mnc610 │ └── mms_config.xml │ ├── xml-mcc302-mnc660 │ └── mms_config.xml │ ├── xml-mcc302-mnc720 │ └── mms_config.xml │ ├── xml-mcc302-mnc780 │ └── mms_config.xml │ ├── xml-mcc310-mnc004 │ └── mms_config.xml │ ├── xml-mcc310-mnc005 │ └── mms_config.xml │ ├── xml-mcc310-mnc010 │ └── mms_config.xml │ ├── xml-mcc310-mnc026 │ └── mms_config.xml │ ├── xml-mcc310-mnc040 │ └── mms_config.xml │ ├── xml-mcc310-mnc070 │ └── mms_config.xml │ ├── xml-mcc310-mnc090 │ └── mms_config.xml │ ├── xml-mcc310-mnc120 │ └── mms_config.xml │ ├── xml-mcc310-mnc130 │ └── mms_config.xml │ ├── xml-mcc310-mnc150 │ └── mms_config.xml │ ├── xml-mcc310-mnc170 │ └── mms_config.xml │ ├── xml-mcc310-mnc260 │ └── mms_config.xml │ ├── xml-mcc310-mnc360 │ └── mms_config.xml │ ├── xml-mcc310-mnc380 │ └── mms_config.xml │ ├── xml-mcc310-mnc410 │ └── mms_config.xml │ ├── xml-mcc310-mnc420 │ └── mms_config.xml │ ├── xml-mcc310-mnc450 │ └── mms_config.xml │ ├── xml-mcc310-mnc490 │ └── mms_config.xml │ ├── xml-mcc310-mnc560 │ └── mms_config.xml │ ├── xml-mcc310-mnc580 │ └── mms_config.xml │ ├── xml-mcc310-mnc600 │ └── mms_config.xml │ ├── xml-mcc310-mnc680 │ └── mms_config.xml │ ├── xml-mcc310-mnc750 │ └── mms_config.xml │ ├── xml-mcc310-mnc770 │ └── mms_config.xml │ ├── xml-mcc310-mnc920 │ └── mms_config.xml │ ├── xml-mcc310-mnc980 │ └── mms_config.xml │ ├── xml-mcc311-mnc012 │ └── mms_config.xml │ ├── xml-mcc311-mnc070 │ └── mms_config.xml │ ├── xml-mcc311-mnc100 │ └── mms_config.xml │ ├── xml-mcc311-mnc180 │ └── mms_config.xml │ ├── xml-mcc311-mnc220 │ └── mms_config.xml │ ├── xml-mcc311-mnc221 │ └── mms_config.xml │ ├── xml-mcc311-mnc222 │ └── mms_config.xml │ ├── xml-mcc311-mnc223 │ └── mms_config.xml │ ├── xml-mcc311-mnc224 │ └── mms_config.xml │ ├── xml-mcc311-mnc225 │ └── mms_config.xml │ ├── xml-mcc311-mnc226 │ └── mms_config.xml │ ├── xml-mcc311-mnc227 │ └── mms_config.xml │ ├── xml-mcc311-mnc228 │ └── mms_config.xml │ ├── xml-mcc311-mnc229 │ └── mms_config.xml │ ├── xml-mcc311-mnc230 │ └── mms_config.xml │ ├── xml-mcc311-mnc340 │ └── mms_config.xml │ ├── xml-mcc311-mnc370 │ └── mms_config.xml │ ├── xml-mcc311-mnc410 │ └── mms_config.xml │ ├── xml-mcc311-mnc430 │ └── mms_config.xml │ ├── xml-mcc311-mnc440 │ └── mms_config.xml │ ├── xml-mcc311-mnc480 │ └── mms_config.xml │ ├── xml-mcc311-mnc490 │ └── mms_config.xml │ ├── xml-mcc311-mnc580 │ └── mms_config.xml │ ├── xml-mcc311-mnc581 │ └── mms_config.xml │ ├── xml-mcc311-mnc582 │ └── mms_config.xml │ ├── xml-mcc311-mnc583 │ └── mms_config.xml │ ├── xml-mcc311-mnc584 │ └── mms_config.xml │ ├── xml-mcc311-mnc585 │ └── mms_config.xml │ ├── xml-mcc311-mnc586 │ └── mms_config.xml │ ├── xml-mcc311-mnc587 │ └── mms_config.xml │ ├── xml-mcc311-mnc588 │ └── mms_config.xml │ ├── xml-mcc311-mnc589 │ └── mms_config.xml │ ├── xml-mcc311-mnc590 │ └── mms_config.xml │ ├── xml-mcc311-mnc870 │ └── mms_config.xml │ ├── xml-mcc312-mnc160 │ └── mms_config.xml │ ├── xml-mcc312-mnc530 │ └── mms_config.xml │ ├── xml-mcc334-mnc020 │ └── mms_config.xml │ ├── xml-mcc418-mnc05 │ └── mms_config.xml │ ├── xml-mcc418-mnc20 │ └── mms_config.xml │ ├── xml-mcc418-mnc30 │ └── mms_config.xml │ ├── xml-mcc420-mnc04 │ └── mms_config.xml │ ├── xml-mcc440-mnc10 │ └── mms_config.xml │ ├── xml-mcc440-mnc20 │ └── mms_config.xml │ ├── xml-mcc450-mnc00 │ └── mms_config.xml │ ├── xml-mcc450-mnc02 │ └── mms_config.xml │ ├── xml-mcc450-mnc05 │ └── mms_config.xml │ ├── xml-mcc450-mnc06 │ └── mms_config.xml │ ├── xml-mcc450-mnc08 │ └── mms_config.xml │ ├── xml-mcc505-mnc01 │ └── mms_config.xml │ ├── xml-mcc530-mnc05 │ └── mms_config.xml │ ├── xml-mcc604-mnc00 │ └── mms_config.xml │ ├── xml-mcc604-mnc02 │ └── mms_config.xml │ ├── xml-mcc647-mnc10 │ └── mms_config.xml │ └── xml │ ├── apns.xml │ └── mms_config.xml ├── sample ├── .gitignore ├── build.gradle ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── klinker │ │ └── android │ │ └── messaging_sample │ │ ├── HeadlessSmsSendService.java │ │ ├── LogAdapter.java │ │ ├── MainActivity.java │ │ ├── MmsReceivedReceiverImpl.java │ │ ├── MmsReceiver.java │ │ ├── PermissionActivity.java │ │ ├── Settings.java │ │ └── SmsReceiver.java │ └── res │ ├── drawable-xxhdpi │ ├── android.jpg │ └── ic_launcher.png │ ├── layout │ └── activity_main.xml │ ├── values-v21 │ └── styles.xml │ └── values │ ├── dimens.xml │ ├── strings.xml │ └── styles.xml ├── settings.gradle ├── upgrading_for_marshmallow.md └── upgrading_for_o.md /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle/ 2 | .idea/ 3 | **/.project 4 | **/.classpath 5 | **/.settings/ 6 | **/build/ 7 | gen/ 8 | *.iml 9 | **/.DS_STORE 10 | local.properties -------------------------------------------------------------------------------- /android-messaging.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/android-messaging.png -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:7.1.2' 9 | } 10 | } 11 | 12 | allprojects { 13 | repositories { 14 | google() 15 | mavenCentral() 16 | jcenter() 17 | maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FossifyOrg/android-smsmms/0e66a735f9d3936cee32ae8f3c1994c07e516e1b/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Dec 30 08:21:22 CST 2014 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip 7 | -------------------------------------------------------------------------------- /library/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | dependencies { 4 | implementation 'com.klinkerapps:logger:1.0.3' 5 | implementation 'com.squareup.okhttp:okhttp:2.5.0' 6 | implementation 'com.squareup.okhttp:okhttp-urlconnection:2.5.0' 7 | } 8 | 9 | android { 10 | compileSdk 34 11 | 12 | defaultConfig { 13 | minSdkVersion 22 14 | targetSdkVersion 34 15 | } 16 | 17 | lintOptions { 18 | abortOnError false 19 | } 20 | 21 | useLibrary 'org.apache.http.legacy' 22 | } 23 | 24 | apply plugin: 'signing' 25 | 26 | def isReleaseBuild() { 27 | return !VERSION_NAME.contains("SNAPSHOT") 28 | } 29 | 30 | def getReleaseRepositoryUrl() { 31 | return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL 32 | : "https://oss.sonatype.org/service/local/staging/deploy/maven2/" 33 | } 34 | 35 | def getSnapshotRepositoryUrl() { 36 | return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL 37 | : "https://oss.sonatype.org/content/repositories/snapshots/" 38 | } 39 | 40 | def getRepositoryUsername() { 41 | return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : "" 42 | } 43 | 44 | def getRepositoryPassword() { 45 | return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : "" 46 | } 47 | -------------------------------------------------------------------------------- /library/gradle.properties: -------------------------------------------------------------------------------- 1 | VERSION_NAME=5.2.6 2 | VERSION_CODE=76 3 | GROUP=com.klinkerapps 4 | 5 | POM_DESCRIPTION=Android Messaging library for SMS and MMS 6 | POM_URL=https://github.com/klinker41/android-smsmms 7 | POM_SCM_URL=https://github.com/klinker41/android-smsmms 8 | POM_SCM_CONNECTION=scm:git@github.com:klinker41/android-smsmms.git 9 | POM_SCM_DEV_CONNECTION=scm:git@github.com:klinker41/android-smsmms.git 10 | POM_LICENCE_NAME=The Apache Software License, Version 2.0 11 | POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt 12 | POM_LICENCE_DIST=repo 13 | POM_DEVELOPER_ID=klinker41 14 | POM_DEVELOPER_NAME=Jacob Klinker 15 | 16 | POM_NAME=Andorid Messaging 17 | POM_ARTIFACT_ID=android-smsmms 18 | POM_PACKAGING=aar 19 | -------------------------------------------------------------------------------- /library/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 13 | 14 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /library/src/main/java/android/annotation/SdkConstant.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 The Android Open Source Project 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 android.annotation; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | /** 25 | * Indicates a constant field value should be exported to be used in the SDK tools. 26 | * 27 | * @hide 28 | */ 29 | @Target({ElementType.FIELD}) 30 | @Retention(RetentionPolicy.SOURCE) 31 | public @interface SdkConstant { 32 | public static enum SdkConstantType { 33 | ACTIVITY_INTENT_ACTION, BROADCAST_INTENT_ACTION, SERVICE_ACTION, INTENT_CATEGORY, FEATURE; 34 | } 35 | 36 | SdkConstantType value(); 37 | } 38 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/i18n/phonenumbers/NumberParseException.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.android.i18n.phonenumbers; 18 | 19 | public class NumberParseException extends Exception { 20 | } 21 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/i18n/phonenumbers/PhoneNumberUtil.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.android.i18n.phonenumbers; 18 | 19 | public class PhoneNumberUtil { 20 | private static PhoneNumberUtil instance; 21 | 22 | public static PhoneNumberUtil getInstance() { 23 | return instance; 24 | } 25 | 26 | public String format(Phonenumber.PhoneNumber parsed, PhoneNumberFormat format) { 27 | return null; 28 | } 29 | 30 | public Phonenumber.PhoneNumber parse(String s, String s2) throws NumberParseException { 31 | return new Phonenumber.PhoneNumber(); 32 | } 33 | 34 | public boolean isValidNumber(Phonenumber.PhoneNumber phoneNumber) { 35 | return true; 36 | } 37 | 38 | public enum PhoneNumberFormat { 39 | E164, 40 | INTERNATIONAL, 41 | NATIONAL, 42 | RFC3966 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/i18n/phonenumbers/Phonenumber.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.android.i18n.phonenumbers; 18 | 19 | public class Phonenumber { 20 | public static class PhoneNumber { 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/internal/annotations/VisibleForTesting.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2012 The Android Open Source Project 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.android.internal.annotations; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | /** 23 | * Denotes that the class, method or field has its visibility relaxed so 24 | * that unit tests can access it. 25 | *

26 | * The visibility argument can be used to specific what the original 27 | * visibility should have been if it had not been made public or package-private for testing. 28 | * The default is to consider the element private. 29 | */ 30 | @Retention(RetentionPolicy.SOURCE) 31 | public @interface VisibleForTesting { 32 | /** 33 | * Intended visibility if the element had not been made public or package-private for 34 | * testing. 35 | */ 36 | enum Visibility { 37 | /** 38 | * The element should be considered protected. 39 | */ 40 | PROTECTED, 41 | /** 42 | * The element should be considered package-private. 43 | */ 44 | PACKAGE, 45 | /** 46 | * The element should be considered private. 47 | */ 48 | PRIVATE 49 | } 50 | 51 | /** 52 | * Intended visibility if the element had not been made public or package-private for testing. 53 | * If not specified, one should assume the element originally intended to be private. 54 | */ 55 | Visibility visibility() default Visibility.PRIVATE; 56 | } 57 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/internal/telephony/EncodeException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2006 The Android Open Source Project 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.android.internal.telephony; 18 | 19 | /** 20 | * {@hide} 21 | */ 22 | @SuppressWarnings("serial") 23 | public class EncodeException extends Exception { 24 | public EncodeException() { 25 | super(); 26 | } 27 | 28 | public EncodeException(String s) { 29 | super(s); 30 | } 31 | 32 | public EncodeException(char c) { 33 | super("Unencodable char: '" + c + "'"); 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/mms/dom/smil/ElementTimeContainerImpl.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.android.mms.dom.smil; 19 | 20 | import org.w3c.dom.smil.ElementTimeContainer; 21 | import org.w3c.dom.smil.SMILElement; 22 | 23 | public abstract class ElementTimeContainerImpl extends ElementTimeImpl implements 24 | ElementTimeContainer { 25 | 26 | /* 27 | * Internal Interface 28 | */ 29 | 30 | ElementTimeContainerImpl(SMILElement element) { 31 | super(element); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/mms/dom/smil/SmilElementImpl.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.android.mms.dom.smil; 19 | 20 | import org.w3c.dom.DOMException; 21 | import org.w3c.dom.smil.SMILElement; 22 | 23 | import com.android.mms.dom.ElementImpl; 24 | 25 | public class SmilElementImpl extends ElementImpl implements SMILElement { 26 | /** 27 | * This constructor is used by the factory methods of the SmilDocument. 28 | * 29 | * @param owner The SMIL document to which this element belongs to 30 | * @param tagName The tag name of the element 31 | */ 32 | SmilElementImpl(SmilDocumentImpl owner, String tagName) 33 | { 34 | super(owner, tagName.toLowerCase()); 35 | } 36 | 37 | public String getId() { 38 | // TODO Auto-generated method stub 39 | return null; 40 | } 41 | 42 | public void setId(String id) throws DOMException { 43 | // TODO Auto-generated method stub 44 | 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/mms/dom/smil/SmilRefElementImpl.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.android.mms.dom.smil; 19 | 20 | import org.w3c.dom.smil.SMILRefElement; 21 | 22 | public class SmilRefElementImpl extends SmilRegionMediaElementImpl implements 23 | SMILRefElement { 24 | 25 | SmilRefElementImpl(SmilDocumentImpl owner, String tagName) { 26 | super(owner, tagName); 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/mms/dom/smil/SmilRegionMediaElementImpl.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.android.mms.dom.smil; 19 | 20 | import org.w3c.dom.NodeList; 21 | import org.w3c.dom.smil.SMILDocument; 22 | import org.w3c.dom.smil.SMILRegionElement; 23 | import org.w3c.dom.smil.SMILRegionMediaElement; 24 | 25 | public class SmilRegionMediaElementImpl extends SmilMediaElementImpl implements 26 | SMILRegionMediaElement { 27 | private SMILRegionElement mRegion; 28 | 29 | SmilRegionMediaElementImpl(SmilDocumentImpl owner, String tagName) { 30 | super(owner, tagName); 31 | } 32 | 33 | public SMILRegionElement getRegion() { 34 | if (mRegion == null) { 35 | SMILDocument doc = (SMILDocument)this.getOwnerDocument(); 36 | NodeList regions = doc.getLayout().getElementsByTagName("region"); 37 | SMILRegionElement region = null; 38 | for (int i = 0; i < regions.getLength(); i++) { 39 | region = (SMILRegionElement)regions.item(i); 40 | if (region.getId().equals(this.getAttribute("region"))) { 41 | mRegion = region; 42 | } 43 | } 44 | } 45 | return mRegion; 46 | } 47 | 48 | public void setRegion(SMILRegionElement region) { 49 | this.setAttribute("region", region.getId()); 50 | mRegion = region; 51 | } 52 | 53 | } 54 | -------------------------------------------------------------------------------- /library/src/main/java/com/android/mms/dom/smil/TimeListImpl.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.android.mms.dom.smil; 19 | 20 | import java.util.ArrayList; 21 | 22 | import org.w3c.dom.smil.Time; 23 | import org.w3c.dom.smil.TimeList; 24 | 25 | public class TimeListImpl implements TimeList { 26 | private final ArrayList

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 EventListeners attached to the source 24 | * Node are not attached to the copied Node. If 25 | * the user wishes the same EventListeners 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' --------------------------------------------------------------------------------