rjw | 6c1fd8f | 2022-11-30 14:33:01 +0800 | [diff] [blame] | 1 | /***************************************************************************** |
| 2 | * Copyright Statement: |
| 3 | * -------------------- |
| 4 | * This software is protected by Copyright and the information contained |
| 5 | * herein is confidential. The software may not be copied and the information |
| 6 | * contained herein may not be used or disclosed except with the written |
| 7 | * permission of MediaTek Inc. (C) 2005 |
| 8 | * |
| 9 | * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES |
| 10 | * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE") |
| 11 | * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON |
| 12 | * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES, |
| 13 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF |
| 14 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT. |
| 15 | * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE |
| 16 | * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR |
| 17 | * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH |
| 18 | * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO |
| 19 | * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S |
| 20 | * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM. |
| 21 | * |
| 22 | * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE |
| 23 | * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE, |
| 24 | * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE, |
| 25 | * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO |
| 26 | * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. |
| 27 | * |
| 28 | * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE |
| 29 | * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF |
| 30 | * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND |
| 31 | * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER |
| 32 | * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC). |
| 33 | * |
| 34 | *****************************************************************************/ |
| 35 | |
| 36 | /***************************************************************************** |
| 37 | * |
| 38 | * Filename: |
| 39 | * --------- |
| 40 | * fs_quota.c |
| 41 | * |
| 42 | * Project: |
| 43 | * -------- |
| 44 | * Maui |
| 45 | * |
| 46 | * Description: |
| 47 | * ------------ |
| 48 | * This file defines quota setting |
| 49 | * |
| 50 | * Author: |
| 51 | * ------- |
| 52 | * ------- |
| 53 | * |
| 54 | *============================================================================ |
| 55 | * HISTORY |
| 56 | * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 57 | *------------------------------------------------------------------------------ |
| 58 | * removed! |
| 59 | * removed! |
| 60 | * removed! |
| 61 | * |
| 62 | * removed! |
| 63 | * removed! |
| 64 | * removed! |
| 65 | * |
| 66 | * removed! |
| 67 | * removed! |
| 68 | * removed! |
| 69 | * |
| 70 | * removed! |
| 71 | * removed! |
| 72 | * removed! |
| 73 | * |
| 74 | * removed! |
| 75 | * removed! |
| 76 | * removed! |
| 77 | * |
| 78 | * removed! |
| 79 | * removed! |
| 80 | * removed! |
| 81 | * |
| 82 | * removed! |
| 83 | * removed! |
| 84 | * removed! |
| 85 | * |
| 86 | * removed! |
| 87 | * removed! |
| 88 | * removed! |
| 89 | * |
| 90 | * removed! |
| 91 | * removed! |
| 92 | * removed! |
| 93 | * |
| 94 | * removed! |
| 95 | * removed! |
| 96 | * removed! |
| 97 | * |
| 98 | * removed! |
| 99 | * removed! |
| 100 | * removed! |
| 101 | * |
| 102 | * removed! |
| 103 | * removed! |
| 104 | * removed! |
| 105 | * |
| 106 | * removed! |
| 107 | * removed! |
| 108 | * removed! |
| 109 | * |
| 110 | * removed! |
| 111 | * removed! |
| 112 | * removed! |
| 113 | * |
| 114 | * removed! |
| 115 | * removed! |
| 116 | * removed! |
| 117 | * |
| 118 | * removed! |
| 119 | * removed! |
| 120 | * removed! |
| 121 | * |
| 122 | * removed! |
| 123 | * removed! |
| 124 | * removed! |
| 125 | * |
| 126 | * removed! |
| 127 | * removed! |
| 128 | * removed! |
| 129 | * |
| 130 | * removed! |
| 131 | * removed! |
| 132 | * removed! |
| 133 | * |
| 134 | * removed! |
| 135 | * removed! |
| 136 | * removed! |
| 137 | * |
| 138 | * removed! |
| 139 | * removed! |
| 140 | * removed! |
| 141 | * |
| 142 | * removed! |
| 143 | * removed! |
| 144 | * removed! |
| 145 | * |
| 146 | * removed! |
| 147 | * removed! |
| 148 | * removed! |
| 149 | * |
| 150 | * removed! |
| 151 | * removed! |
| 152 | * removed! |
| 153 | * |
| 154 | * removed! |
| 155 | * removed! |
| 156 | * removed! |
| 157 | * |
| 158 | * removed! |
| 159 | * removed! |
| 160 | * removed! |
| 161 | * |
| 162 | * removed! |
| 163 | * removed! |
| 164 | * removed! |
| 165 | * |
| 166 | * removed! |
| 167 | * removed! |
| 168 | * removed! |
| 169 | * |
| 170 | * removed! |
| 171 | * removed! |
| 172 | * removed! |
| 173 | * |
| 174 | * removed! |
| 175 | * removed! |
| 176 | * removed! |
| 177 | * |
| 178 | * removed! |
| 179 | * removed! |
| 180 | * removed! |
| 181 | * |
| 182 | * removed! |
| 183 | * removed! |
| 184 | * removed! |
| 185 | * |
| 186 | * removed! |
| 187 | * removed! |
| 188 | * removed! |
| 189 | * |
| 190 | * removed! |
| 191 | * removed! |
| 192 | * removed! |
| 193 | * |
| 194 | * removed! |
| 195 | * removed! |
| 196 | * removed! |
| 197 | * |
| 198 | * removed! |
| 199 | * removed! |
| 200 | * removed! |
| 201 | * |
| 202 | * removed! |
| 203 | * removed! |
| 204 | * removed! |
| 205 | * |
| 206 | * removed! |
| 207 | * removed! |
| 208 | * removed! |
| 209 | * |
| 210 | * removed! |
| 211 | * removed! |
| 212 | * removed! |
| 213 | * |
| 214 | * removed! |
| 215 | * removed! |
| 216 | * removed! |
| 217 | * |
| 218 | * removed! |
| 219 | * removed! |
| 220 | * removed! |
| 221 | * |
| 222 | * removed! |
| 223 | * removed! |
| 224 | * removed! |
| 225 | * |
| 226 | * removed! |
| 227 | * removed! |
| 228 | * removed! |
| 229 | * |
| 230 | * removed! |
| 231 | * removed! |
| 232 | * removed! |
| 233 | * |
| 234 | * removed! |
| 235 | * removed! |
| 236 | * removed! |
| 237 | * |
| 238 | * removed! |
| 239 | * removed! |
| 240 | * removed! |
| 241 | * |
| 242 | * removed! |
| 243 | * removed! |
| 244 | * removed! |
| 245 | * |
| 246 | * removed! |
| 247 | * removed! |
| 248 | * removed! |
| 249 | * |
| 250 | * removed! |
| 251 | * removed! |
| 252 | * removed! |
| 253 | * |
| 254 | * removed! |
| 255 | * removed! |
| 256 | * removed! |
| 257 | * |
| 258 | * removed! |
| 259 | * removed! |
| 260 | * removed! |
| 261 | * |
| 262 | * removed! |
| 263 | * removed! |
| 264 | * removed! |
| 265 | * |
| 266 | * removed! |
| 267 | * removed! |
| 268 | * removed! |
| 269 | * |
| 270 | * removed! |
| 271 | * removed! |
| 272 | * removed! |
| 273 | * |
| 274 | * removed! |
| 275 | * removed! |
| 276 | * removed! |
| 277 | * |
| 278 | * removed! |
| 279 | * removed! |
| 280 | * removed! |
| 281 | * |
| 282 | * removed! |
| 283 | * removed! |
| 284 | * removed! |
| 285 | * |
| 286 | * removed! |
| 287 | * removed! |
| 288 | * removed! |
| 289 | * |
| 290 | * removed! |
| 291 | * removed! |
| 292 | * removed! |
| 293 | * |
| 294 | * removed! |
| 295 | * removed! |
| 296 | * removed! |
| 297 | * |
| 298 | * removed! |
| 299 | * removed! |
| 300 | * removed! |
| 301 | * |
| 302 | * removed! |
| 303 | * removed! |
| 304 | * removed! |
| 305 | * |
| 306 | * removed! |
| 307 | * removed! |
| 308 | * removed! |
| 309 | * |
| 310 | * removed! |
| 311 | * removed! |
| 312 | * removed! |
| 313 | * |
| 314 | * removed! |
| 315 | * removed! |
| 316 | * removed! |
| 317 | * |
| 318 | * removed! |
| 319 | * removed! |
| 320 | * removed! |
| 321 | * |
| 322 | * removed! |
| 323 | * removed! |
| 324 | * removed! |
| 325 | * |
| 326 | * removed! |
| 327 | * removed! |
| 328 | * removed! |
| 329 | * |
| 330 | * removed! |
| 331 | * removed! |
| 332 | * removed! |
| 333 | * |
| 334 | * removed! |
| 335 | * removed! |
| 336 | * removed! |
| 337 | * |
| 338 | * removed! |
| 339 | * removed! |
| 340 | * removed! |
| 341 | * |
| 342 | * removed! |
| 343 | * removed! |
| 344 | * removed! |
| 345 | * |
| 346 | * removed! |
| 347 | * removed! |
| 348 | * removed! |
| 349 | * |
| 350 | * removed! |
| 351 | * removed! |
| 352 | * removed! |
| 353 | * |
| 354 | * removed! |
| 355 | * removed! |
| 356 | * removed! |
| 357 | * |
| 358 | * removed! |
| 359 | * removed! |
| 360 | * removed! |
| 361 | * |
| 362 | * removed! |
| 363 | * removed! |
| 364 | * removed! |
| 365 | * |
| 366 | * removed! |
| 367 | * removed! |
| 368 | * removed! |
| 369 | * |
| 370 | * removed! |
| 371 | * removed! |
| 372 | * removed! |
| 373 | * |
| 374 | * removed! |
| 375 | * removed! |
| 376 | * removed! |
| 377 | * |
| 378 | * removed! |
| 379 | * removed! |
| 380 | * removed! |
| 381 | * |
| 382 | * removed! |
| 383 | * removed! |
| 384 | * removed! |
| 385 | * |
| 386 | * removed! |
| 387 | * removed! |
| 388 | * removed! |
| 389 | * |
| 390 | * removed! |
| 391 | * removed! |
| 392 | * removed! |
| 393 | * |
| 394 | * removed! |
| 395 | * removed! |
| 396 | * removed! |
| 397 | * |
| 398 | * removed! |
| 399 | * removed! |
| 400 | * removed! |
| 401 | * |
| 402 | * removed! |
| 403 | * removed! |
| 404 | * removed! |
| 405 | * |
| 406 | * removed! |
| 407 | * removed! |
| 408 | * removed! |
| 409 | * |
| 410 | * removed! |
| 411 | * removed! |
| 412 | * removed! |
| 413 | * |
| 414 | * removed! |
| 415 | * removed! |
| 416 | * removed! |
| 417 | * |
| 418 | * removed! |
| 419 | * removed! |
| 420 | * removed! |
| 421 | * |
| 422 | * removed! |
| 423 | * removed! |
| 424 | * removed! |
| 425 | * |
| 426 | * removed! |
| 427 | * removed! |
| 428 | * removed! |
| 429 | * |
| 430 | * removed! |
| 431 | * removed! |
| 432 | * removed! |
| 433 | * |
| 434 | * removed! |
| 435 | * removed! |
| 436 | * removed! |
| 437 | * |
| 438 | * removed! |
| 439 | * removed! |
| 440 | * removed! |
| 441 | * |
| 442 | * removed! |
| 443 | * removed! |
| 444 | * removed! |
| 445 | * |
| 446 | * removed! |
| 447 | * removed! |
| 448 | * removed! |
| 449 | * |
| 450 | * removed! |
| 451 | * removed! |
| 452 | * removed! |
| 453 | * |
| 454 | * removed! |
| 455 | * removed! |
| 456 | * removed! |
| 457 | * |
| 458 | * removed! |
| 459 | * removed! |
| 460 | * removed! |
| 461 | * |
| 462 | * removed! |
| 463 | * removed! |
| 464 | * removed! |
| 465 | * |
| 466 | * removed! |
| 467 | * removed! |
| 468 | * removed! |
| 469 | * |
| 470 | * removed! |
| 471 | * removed! |
| 472 | * removed! |
| 473 | * |
| 474 | * removed! |
| 475 | * removed! |
| 476 | * removed! |
| 477 | * |
| 478 | * removed! |
| 479 | * removed! |
| 480 | * removed! |
| 481 | * |
| 482 | * removed! |
| 483 | * removed! |
| 484 | * removed! |
| 485 | * |
| 486 | * removed! |
| 487 | * removed! |
| 488 | * removed! |
| 489 | * |
| 490 | * removed! |
| 491 | * removed! |
| 492 | * removed! |
| 493 | * |
| 494 | * removed! |
| 495 | * removed! |
| 496 | * removed! |
| 497 | * |
| 498 | * removed! |
| 499 | * removed! |
| 500 | * removed! |
| 501 | * |
| 502 | * removed! |
| 503 | * removed! |
| 504 | * removed! |
| 505 | * |
| 506 | * removed! |
| 507 | * removed! |
| 508 | * removed! |
| 509 | * |
| 510 | * removed! |
| 511 | * removed! |
| 512 | * removed! |
| 513 | * |
| 514 | * removed! |
| 515 | * removed! |
| 516 | * removed! |
| 517 | * |
| 518 | * removed! |
| 519 | * removed! |
| 520 | * removed! |
| 521 | * |
| 522 | * removed! |
| 523 | * removed! |
| 524 | * removed! |
| 525 | * |
| 526 | * removed! |
| 527 | * removed! |
| 528 | * removed! |
| 529 | * |
| 530 | * removed! |
| 531 | * removed! |
| 532 | * removed! |
| 533 | * |
| 534 | * removed! |
| 535 | * removed! |
| 536 | * removed! |
| 537 | * |
| 538 | * removed! |
| 539 | * removed! |
| 540 | * removed! |
| 541 | * |
| 542 | * removed! |
| 543 | * removed! |
| 544 | * removed! |
| 545 | * |
| 546 | * removed! |
| 547 | * removed! |
| 548 | * removed! |
| 549 | * |
| 550 | * removed! |
| 551 | * removed! |
| 552 | * removed! |
| 553 | * |
| 554 | * removed! |
| 555 | * removed! |
| 556 | * removed! |
| 557 | * |
| 558 | * removed! |
| 559 | * removed! |
| 560 | * removed! |
| 561 | * |
| 562 | * removed! |
| 563 | * removed! |
| 564 | * removed! |
| 565 | * |
| 566 | * removed! |
| 567 | * removed! |
| 568 | * removed! |
| 569 | * |
| 570 | * removed! |
| 571 | * removed! |
| 572 | * removed! |
| 573 | * |
| 574 | * removed! |
| 575 | * removed! |
| 576 | * removed! |
| 577 | * |
| 578 | * removed! |
| 579 | * removed! |
| 580 | * removed! |
| 581 | * |
| 582 | * removed! |
| 583 | * removed! |
| 584 | * removed! |
| 585 | * |
| 586 | * removed! |
| 587 | * removed! |
| 588 | * removed! |
| 589 | * |
| 590 | * removed! |
| 591 | * removed! |
| 592 | * removed! |
| 593 | * |
| 594 | * removed! |
| 595 | * removed! |
| 596 | * removed! |
| 597 | * |
| 598 | * removed! |
| 599 | * removed! |
| 600 | * removed! |
| 601 | * |
| 602 | * removed! |
| 603 | * removed! |
| 604 | * removed! |
| 605 | * |
| 606 | * removed! |
| 607 | * removed! |
| 608 | * removed! |
| 609 | * |
| 610 | * removed! |
| 611 | * removed! |
| 612 | * removed! |
| 613 | * |
| 614 | * removed! |
| 615 | * removed! |
| 616 | * removed! |
| 617 | * |
| 618 | * removed! |
| 619 | * removed! |
| 620 | * removed! |
| 621 | * |
| 622 | * removed! |
| 623 | * removed! |
| 624 | * removed! |
| 625 | * |
| 626 | * removed! |
| 627 | * removed! |
| 628 | * removed! |
| 629 | * |
| 630 | * removed! |
| 631 | * removed! |
| 632 | * removed! |
| 633 | * |
| 634 | * removed! |
| 635 | * removed! |
| 636 | * removed! |
| 637 | * |
| 638 | * removed! |
| 639 | * removed! |
| 640 | * removed! |
| 641 | * |
| 642 | * removed! |
| 643 | * removed! |
| 644 | * removed! |
| 645 | * |
| 646 | * removed! |
| 647 | * removed! |
| 648 | * removed! |
| 649 | * |
| 650 | * removed! |
| 651 | * removed! |
| 652 | * removed! |
| 653 | * removed! |
| 654 | * removed! |
| 655 | * |
| 656 | * removed! |
| 657 | * removed! |
| 658 | * removed! |
| 659 | * |
| 660 | * removed! |
| 661 | * removed! |
| 662 | * removed! |
| 663 | * |
| 664 | * removed! |
| 665 | * removed! |
| 666 | * removed! |
| 667 | * |
| 668 | * removed! |
| 669 | * removed! |
| 670 | * removed! |
| 671 | * |
| 672 | * removed! |
| 673 | * removed! |
| 674 | * removed! |
| 675 | * |
| 676 | * removed! |
| 677 | * removed! |
| 678 | * removed! |
| 679 | *------------------------------------------------------------------------------ |
| 680 | * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! |
| 681 | *============================================================================ |
| 682 | ****************************************************************************/ |
| 683 | #include "kal_general_types.h" |
| 684 | |
| 685 | #include "fs_gprot.h" |
| 686 | |
| 687 | #ifdef __FS_QM_SUPPORT__ |
| 688 | |
| 689 | #if defined(__MTK_TARGET__) |
| 690 | |
| 691 | #ifdef __J2ME__ |
| 692 | #include "j2me_custom_param.h" |
| 693 | #endif /* __J2ME__ */ |
| 694 | |
| 695 | #include "customer_ps_inc.h" |
| 696 | |
| 697 | #include "nvram_user_defs.h" |
| 698 | |
| 699 | #ifdef WAP_SUPPORT |
| 700 | #include "custom_wap_config.h" |
| 701 | #endif |
| 702 | |
| 703 | #ifdef __SYNCML_SUPPORT__ |
| 704 | #include "custom_mmi_default_value.h" |
| 705 | #endif /* __SYNCML_SUPPORT__ */ |
| 706 | |
| 707 | #ifdef __MMI_VUI_3D_CUBE_APP__ |
| 708 | #include "lcd_sw_inc.h" |
| 709 | #endif |
| 710 | |
| 711 | #ifdef __MMI_BROWSER_2__ |
| 712 | #include "BrowserSrvBookmarkConfig.h" |
| 713 | #endif |
| 714 | /************************ Description of QuotaSet ************************************************ |
| 715 | QuotaStruct: {Path in bytes, Priority, Qmin in bytes, Qmax in bytes, Uint} |
| 716 | Rule: |
| 717 | 1. Path |
| 718 | (1) Capital 'Z' in Path means the primary system drive |
| 719 | (2) The character unit of Path is in byte |
| 720 | (3) Except the default null end entry, path cannot be NULL and must be |
| 721 | ended with backslash |
| 722 | (4) The first char of each folder must be '@' |
| 723 | Example: "E:\\@Folder\\" |
| 724 | (5) Only support one level folder |
| 725 | Example: "E:\\@Folder1\\@SubFolder\\" is invalid |
| 726 | 2. Priority: |
| 727 | FS_QP_HIG_ENUM (1) - Cannot be removed anyway except over quota (version upgrade) |
| 728 | FS_QP_MID_ENUM (2) - Always removed entirely if over quota. |
| 729 | Optional removed if RFS is not enough. |
| 730 | FS_QP_LOW_ENUM (3) - Always removed entirely if over quota. |
| 731 | Optional removed if RFS is not enough. |
| 732 | FS_QP_DEL_ENUM (4) - Always removed entirely when booting up |
| 733 | 3. Qmin (lower bound - reserved space) & Qmax (upper bound - quota space) |
| 734 | (1) Qmax can set to be unlimited (FS_QMAX_NO_LIMIT) |
| 735 | (2) 0 <= Qmin <= Qmax < FS_QMAX_NO_LIMIT |
| 736 | (3) RFS (Required Free Space): |
| 737 | (Qnow, the space you have used, is internal data tracked inside File System) |
| 738 | for each entry |
| 739 | { |
| 740 | if(Qmin > Qnow) |
| 741 | RFS += (Qmin - Qnow); |
| 742 | } |
| 743 | (4) MRS (Minimum Reserved Space) = |
| 744 | (Qmin of FS_QP_DEL_ENUM) + (Qmin of FS_QP_LOW_ENUM) + |
| 745 | (Qmin of FS_QP_MID_ENUM) + (Qmin of FS_QP_HIG_ENUM) |
| 746 | (5) Note that NVRAM is a special case in Quota Management. File System will |
| 747 | reserve the space for NVRAM at runtime automatically. You don't have to |
| 748 | anything about NVRAM here. |
| 749 | If (MRS + NVRAM) is over drive size, assertion will be issued when boot up check |
| 750 | (6) Note that if you have 100 files under system drive and each one of them |
| 751 | is just 3 bytes, you have to reserve (100* ClusterSize), |
| 752 | not (100*3) bytes. Because the physical allocation unit in File System is in "cluster" |
| 753 | (7) If you don't know how to count the space, you can use FS_GetFolderSize() |
| 754 | in file system to help you evalute the size at development stage |
| 755 | 4. Uint: |
| 756 | FS_COUNT_IN_BYTE : Indicate the Qmin and Qmax setting are counted in byte |
| 757 | FS_COUNT_IN_CLUSTER : Indicate the Qmin and Qmax setting are counted in cluster |
| 758 | */ |
| 759 | |
| 760 | /************************ SweepCheck Flow ************************ |
| 761 | 1. Check each folder or file under root directory |
| 762 | 2. If folder with DEL priority (listed in the QuotaSet table) is found, remove it entirely |
| 763 | 3. If folder listed in the QuotaSet table is over quota, remove it entirely |
| 764 | 4. If RFS is not enough for QuotaSet, jump to step 6 |
| 765 | 5. Return |
| 766 | 6. If memory is not enough (1K+ 0.5K control buffer), jump to step 5 |
| 767 | 7. If file is found, remove it |
| 768 | Else jump to step 9 |
| 769 | 8. If RFS is enough, jump to step 5 |
| 770 | Else jump to step 7 |
| 771 | 9. If folder not defined in the QuotaSet table is found, remove it entirely |
| 772 | Else jump to step 11 |
| 773 | 10.If RFS is enough, jump to step 5 |
| 774 | Else jump to step 9 |
| 775 | 11.If folder with LOW priority (listed in the QuotaSet table) is found, remove it entirely |
| 776 | Else jump to step 14 |
| 777 | 12.Update RFS to RFS' (because some space is freed by LOW) |
| 778 | 13.If RFS' is enough, jump to step 5 |
| 779 | Else jump to step 11 |
| 780 | 14.If folder with MID priority (listed in the QuotaSet table) is found, remove it entirely |
| 781 | 15.Jump to step 5 |
| 782 | */ |
| 783 | |
| 784 | /************************ QM Run Time Monitor ************************ |
| 785 | 1. If deletion, Qnow will be updated then |
| 786 | 2. If need to allocate, check as step 3 |
| 787 | 3. If (over quota) return FS_DISK_FULL |
| 788 | Else if (RFS for others is not enough) return FS_DISK_FULL |
| 789 | Else if (Drive free is not enough for the allocation) return FS_DISK_FULL |
| 790 | Else update Qnow after allocation |
| 791 | */ |
| 792 | |
| 793 | /************************ User Configuration ************************/ |
| 794 | //Set your entry below |
| 795 | //Max quota set entry number is 40 |
| 796 | |
| 797 | #ifdef SLIM_WAP_MMS |
| 798 | #define FS_PUSH_QUOTA 2*1024 |
| 799 | #define FS_WAP_QUOTA 65*1024 |
| 800 | #else |
| 801 | #define FS_PUSH_QUOTA 10*1024 |
| 802 | #define FS_WAP_QUOTA 80*1024 |
| 803 | #endif |
| 804 | |
| 805 | #ifdef __MMI_BROWSER_2__ |
| 806 | #define FS_BROWSER_BOOKMARK_FOLDER_QUOTA ((SRV_BRW_BKM_BOOKMARK_ENTRY_SIZE * WAP_CUSTOM_CFG_BRW_BOOKMARK_MAX_COUNT) + 100) |
| 807 | #endif |
| 808 | |
| 809 | FS_QuotaStruct gFS_ExtQuotaSet[] = |
| 810 | { |
| 811 | #ifdef __MMI_VUI_3D_CUBE_APP__ |
| 812 | {"Z:\\@Cube\\", FS_QP_HIG_ENUM, LCD_WIDTH * LCD_HEIGHT * 2 * 4, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 813 | #endif /* __MMI_VUI_3D_CUBE_APP__ */ |
| 814 | |
| 815 | #if defined(__DRM_SUPPORT__) && defined(MAX_DRM_DB_SIZE) |
| 816 | {"Z:\\@DRM\\", FS_QP_HIG_ENUM, MAX_DRM_DB_SIZE, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 817 | #endif |
| 818 | |
| 819 | #ifdef WAP_SUPPORT |
| 820 | #if (defined(__MMI_UNIFIED_COMPOSER__) || defined(__MMI_MMS_STANDALONE_COMPOSER__)) && defined (APP_STORAGE_IN_SYS_DRV) |
| 821 | {"Z:\\@UC000\\", FS_QP_HIG_ENUM, 10 * 1024 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 822 | #endif |
| 823 | #ifdef OBIGO_Q03C |
| 824 | #ifdef OPERA_BROWSER |
| 825 | {"Z:\\@OperaMobile\\", FS_QP_HIG_ENUM, 2434 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 826 | #endif |
| 827 | #ifdef __MMI_BROWSER_2__ |
| 828 | {"Z:\\@vbookmarks\\", FS_QP_HIG_ENUM, FS_BROWSER_BOOKMARK_FOLDER_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 829 | #endif |
| 830 | #if defined(OBIGO_Q03C_MMS_V01) |
| 831 | #ifdef __MMI_WAP_DUAL_SIM__ |
| 832 | {"Z:\\@wap\\", FS_QP_HIG_ENUM, FS_WAP_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 833 | #else |
| 834 | {"Z:\\@wap\\", FS_QP_HIG_ENUM, FS_WAP_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 835 | #endif /* __MMI_WAP_DUAL_SIM__ */ |
| 836 | #ifndef MMS_IN_LARGE_STORAGE |
| 837 | {"Z:\\@mms\\", FS_QP_HIG_ENUM, 0, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 838 | #endif |
| 839 | {"Z:\\@mmsv01obj1\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 840 | #if defined(__MMI_MMS_DUAL_SIM__) |
| 841 | {"Z:\\@mmsv01obj2\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 842 | #endif |
| 843 | #if defined(__DRM_SUPPORT__) |
| 844 | {"Z:\\@MMS_DRM\\", FS_QP_DEL_ENUM, 100*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 845 | #endif |
| 846 | #else |
| 847 | {"Z:\\@wap\\", FS_QP_HIG_ENUM, FS_WAP_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 848 | #endif |
| 849 | #if defined(OBIGO_Q03C_MMS_V02) && !defined (MMS_IN_LARGE_STORAGE) |
| 850 | {"Z:\\@mms\\", FS_QP_HIG_ENUM, 0 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 851 | #endif |
| 852 | #ifdef __MMI_MMS_BGSR_SUPPORT__ |
| 853 | {"Z:\\@bgsr\\", FS_QP_HIG_ENUM, 2*1024 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 854 | #endif |
| 855 | #ifdef BROWSER_SUPPORT |
| 856 | /* SLIM_R starts */ |
| 857 | /* |
| 858 | #ifdef SLIM_WAP_MMS |
| 859 | {"Z:\\@wcache\\", FS_QP_DEL_ENUM, 25*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 860 | #else |
| 861 | */ |
| 862 | /* MAUI_03090343 starts */ |
| 863 | // #ifndef SLIM_WAP_MMS |
| 864 | /* SLIM_R ends */ |
| 865 | #if defined(SLIM_WAP_MMS) && (defined (__OP02__) || defined (__OP01__)) |
| 866 | {"Z:\\@wcache\\", FS_QP_DEL_ENUM, 25*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 867 | #elif !defined(SLIM_WAP_MMS) |
| 868 | /* MAUI_03090343 ends */ |
| 869 | {"Z:\\@wcache\\", FS_QP_DEL_ENUM, 50*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 870 | #endif /* SLIM_WAP_MMS */ |
| 871 | |
| 872 | #endif /* BROWSER_SUPPORT */ |
| 873 | {"Z:\\@push\\", FS_QP_HIG_ENUM, FS_PUSH_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 874 | #ifdef BROWSER_SUPPORT |
| 875 | #if defined(__DRM_SUPPORT__) |
| 876 | {"Z:\\@BRA_DRM\\", FS_QP_DEL_ENUM, 4*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 877 | #endif |
| 878 | #endif /* BROWSER_SUPPORT */ |
| 879 | #ifdef __MMI_MMS_MMA_MMS_OBJECT_IND__ |
| 880 | {"Z:\\@mmsobject\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 881 | #if defined(__MMI_MMS_DUAL_SIM__) |
| 882 | /* Temporary removed for slim projects */ |
| 883 | //{"Z:\\@mmsobject2\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 884 | #endif |
| 885 | #endif |
| 886 | #if defined(__MMI_MMS_2__) && defined(__MMI_MMS_SIGNATURE__) |
| 887 | {"Z:\\@signature\\", FS_QP_HIG_ENUM, 4*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 888 | #endif |
| 889 | #if defined(OBIGO_Q03C_MMS_V02) && defined(__MMI_MMS_UNLIMITED_USE_DETAILS_SUPPORT__) && !defined(MMS_IN_LARGE_STORAGE) |
| 890 | {"Z:\\@usedetail\\", FS_QP_HIG_ENUM, 100*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 891 | #endif /*MMS_IN_LARGE_STORAGE*/ |
| 892 | #if defined(__MMI_MMS_AUTO_DWNLD_IMMED_NOTI_IN_HOME_NETWORK__) && defined (__MMI_MMS_2__) |
| 893 | {"Z:\\@mms_notify\\", FS_QP_HIG_ENUM, 1*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 894 | #endif |
| 895 | #elif defined(OBIGO_Q05A) |
| 896 | {"Z:\\@wap\\", FS_QP_HIG_ENUM, 200*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 897 | {"Z:\\@vbookmarks\\", FS_QP_HIG_ENUM, FS_BROWSER_BOOKMARK_FOLDER_QUOTA, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 898 | {"Z:\\@push\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 899 | {"Z:\\@ids\\", FS_QP_HIG_ENUM, 15*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 900 | {"Z:\\@stk\\", FS_QP_HIG_ENUM, 50*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 901 | #if defined(OBIGO_Q05A_MMS) && !defined(MMS_IN_LARGE_STORAGE) |
| 902 | {"Z:\\@mms\\", FS_QP_HIG_ENUM, 100*1024 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 903 | #endif |
| 904 | #if defined(OBIGO_Q05A_MMS) |
| 905 | {"Z:\\@mma\\", FS_QP_HIG_ENUM, 200*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 906 | {"Z:\\@umdb\\", FS_QP_HIG_ENUM,130*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 907 | #endif |
| 908 | #if defined(OBIGO_Q03C_MMS_V02) && !defined (MMS_IN_LARGE_STORAGE) |
| 909 | {"Z:\\@mms\\", FS_QP_HIG_ENUM, 0 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 910 | #endif |
| 911 | #ifdef __MMI_MMS_BGSR_SUPPORT__ |
| 912 | {"Z:\\@bgsr\\", FS_QP_HIG_ENUM, 2*1024 , FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 913 | #endif |
| 914 | #if defined(__MMI_MMS_MMA_MMS_OBJECT_IND__) |
| 915 | {"Z:\\@mmsobject1\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 916 | #if defined(__MMI_MMS_DUAL_SIM__) |
| 917 | {"Z:\\@mmsobject2\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 918 | #endif |
| 919 | #endif |
| 920 | #if defined(__MMI_MMS_2__) && defined(__MMI_MMS_SIGNATURE__) |
| 921 | {"Z:\\@signature\\", FS_QP_HIG_ENUM, 4*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 922 | #endif |
| 923 | #if defined(__MMI_MMS_AUTO_DWNLD_IMMED_NOTI_IN_HOME_NETWORK__) && defined (__MMI_MMS_2__) |
| 924 | {"Z:\\@mms_notify\\", FS_QP_HIG_ENUM, 1*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 925 | #endif |
| 926 | #endif |
| 927 | #endif /* WAP_SUPPORT */ |
| 928 | |
| 929 | #ifdef __MMI_PROV_MESSAGE_SUPPORT__ |
| 930 | #if defined(__MMI_PROV_IN_UM__) && defined(__UNIFIED_MESSAGE_ARCHIVE_SUPPORT__) |
| 931 | {"Z:\\@ProvBox\\", FS_QP_HIG_ENUM, 30 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 932 | #else |
| 933 | {"Z:\\@ProvBox\\", FS_QP_HIG_ENUM, 15 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 934 | #endif |
| 935 | #endif /* __MMI_PROV_MESSAGE_SUPPORT__ */ |
| 936 | |
| 937 | #ifdef __EMAIL__ |
| 938 | {"Z:\\@email_sys\\", FS_QP_HIG_ENUM, 1024 + 52 * 62, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 939 | #endif /* __EMAIL__ */ |
| 940 | |
| 941 | #ifdef __XML_SUPPORT__ |
| 942 | {"Z:\\@Xml\\", FS_QP_HIG_ENUM, 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 943 | #endif |
| 944 | |
| 945 | #ifdef __EMS_SUPPORT__ |
| 946 | {"Z:\\@Image\\", FS_QP_HIG_ENUM, 0, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 947 | {"Z:\\@Audio\\", FS_QP_HIG_ENUM, 0, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 948 | #endif /* __EMS_SUPPORT__ */ |
| 949 | |
| 950 | #ifdef __J2ME__ |
| 951 | #ifndef _NAND_FLASH_BOOTING_ |
| 952 | {"Z:\\@Java\\", FS_QP_HIG_ENUM,200*1024, |
| 953 | (DEFAULT_MAX_STORAGE_SPACE ? DEFAULT_MAX_STORAGE_SPACE : FS_QMAX_NO_LIMIT), FS_COUNT_IN_BYTE}, |
| 954 | #else |
| 955 | {"Z:\\@Java\\", FS_QP_HIG_ENUM,500*1024, |
| 956 | (DEFAULT_MAX_STORAGE_SPACE ? DEFAULT_MAX_STORAGE_SPACE : FS_QMAX_NO_LIMIT), FS_COUNT_IN_BYTE}, |
| 957 | #endif |
| 958 | |
| 959 | #endif /* __J2ME__ */ |
| 960 | |
| 961 | #ifdef VR_CYBERON |
| 962 | {"Z:\\@VRDB\\", FS_QP_HIG_ENUM, 58*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, // (2.85 * 20) + 1 = 58 |
| 963 | #elif defined( VR_ITRI ) |
| 964 | {"Z:\\@VRDB\\", FS_QP_HIG_ENUM, 85*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, // (4.2 * 20) + 1 = 85 |
| 965 | #endif /* VR */ |
| 966 | |
| 967 | #ifdef __IMPS__ |
| 968 | {"Z:\\@imps\\", FS_QP_HIG_ENUM, 80*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, //MMI 35K + IMPS 45K |
| 969 | #endif /* __IMPS_ */ |
| 970 | |
| 971 | #ifdef __XDM__ |
| 972 | {"Z:\\@pocxdm\\", FS_QP_HIG_ENUM, 30*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 973 | #endif /* __XDM__ */ |
| 974 | |
| 975 | #ifdef __POC__ |
| 976 | {"Z:\\@poc\\", FS_QP_HIG_ENUM, 30*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 977 | #endif /* __POC__ */ |
| 978 | |
| 979 | #ifdef __SIP__ |
| 980 | {"Z:\\@sip\\", FS_QP_HIG_ENUM, 30*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 981 | #endif /* __SIP__ */ |
| 982 | |
| 983 | #if defined (__MMI_FTC_SUPPORT__) && defined (__MMI_FTS_SUPPORT__) |
| 984 | {"Z:\\@ftp\\", FS_QP_HIG_ENUM, 60*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 985 | #elif defined(__MMI_FTS_SUPPORT__) |
| 986 | {"Z:\\@ftp\\", FS_QP_HIG_ENUM, 20*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 987 | #elif defined(__MMI_FTC_SUPPORT__) |
| 988 | {"Z:\\@ftp\\", FS_QP_HIG_ENUM, 40*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 989 | #endif |
| 990 | |
| 991 | #ifdef __MMI_AVATAR__ |
| 992 | {"Z:\\@avatar\\", FS_QP_HIG_ENUM, 200*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 993 | #endif |
| 994 | |
| 995 | #ifdef SWFLASH_NEOMTEL |
| 996 | {"Z:\\@swflash\\", FS_QP_HIG_ENUM, 300*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 997 | #endif |
| 998 | |
| 999 | #ifdef __MMI_BARCODEREADER__ |
| 1000 | #if defined(__MMI_OP11_BARCODEREADER__) |
| 1001 | {"Z:\\@barcodereader\\", FS_QP_HIG_ENUM, 60*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1002 | #endif |
| 1003 | |
| 1004 | #if defined(__MMI_OP01_BARCODEREADER__) || defined(__MMI_BARCODEREADER_QR__) |
| 1005 | {"Z:\\@barcode\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1006 | #endif |
| 1007 | |
| 1008 | #endif |
| 1009 | |
| 1010 | #if defined(__MMI_IME_USER_DATABASE__) || defined(__MMI_CSTAR_USER_DICT__) |
| 1011 | {"Z:\\@ime\\", FS_QP_HIG_ENUM, 32*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, // fixed size 32Kb |
| 1012 | #endif |
| 1013 | |
| 1014 | #ifdef __MMI_BPP_SUPPORT__ |
| 1015 | {"Z:\\@bpp\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1016 | #endif /* __MMI_BPP_SUPPORT__ */ |
| 1017 | |
| 1018 | #ifdef __MRE_AM__ |
| 1019 | {"Z:\\@AM\\", FS_QP_HIG_ENUM, 20*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1020 | #endif /* __MRE_AM__ */ |
| 1021 | |
| 1022 | #ifdef __COSMOS_MMI_PACKAGE__ |
| 1023 | {"Z:\\@mre\\", FS_QP_HIG_ENUM, 200*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1024 | #endif /* __COSMOS_MMI_PACKAGE__ */ |
| 1025 | |
| 1026 | |
| 1027 | #ifdef __UNIFIED_MESSAGE_ARCHIVE_SUPPORT__ |
| 1028 | {"Z:\\@SMSArch\\", FS_QP_HIG_ENUM, CM_SMS_MAX_ARMSG_NUM*100, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1029 | #endif /* __UNIFIED_MESSAGE_ARCHIVE_SUPPORT__ */ |
| 1030 | |
| 1031 | #ifdef __MMI_VIDEO_STREAM__ |
| 1032 | {"Z:\\@VideoStream\\", FS_QP_HIG_ENUM, 20*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1033 | #endif /* __MMI_VIDEO_STREAM__ */ |
| 1034 | |
| 1035 | #if defined (__MMI_VIDEO_RECORDER__) || defined(__MMI_CAMCORDER__) |
| 1036 | {"Z:\\@Videos\\", FS_QP_HIG_ENUM, 3*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1037 | #endif /* defined (__MMI_VIDEO_RECORDER__) && !defined(__MMI_CAMCORDER__) */ |
| 1038 | |
| 1039 | #ifdef SYNCML_DM_SUPPORT |
| 1040 | {"Z:\\@dm\\", FS_QP_HIG_ENUM, 32*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1041 | #endif /* SYNCML_DM_SUPPORT */ |
| 1042 | |
| 1043 | #ifdef __BTMTK__ |
| 1044 | {"Z:\\@bt\\", FS_QP_HIG_ENUM, 3*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1045 | #endif /* __BTMTK__ */ |
| 1046 | |
| 1047 | #ifdef __BT_BIP_PROFILE__ |
| 1048 | {"Z:\\@bip\\", FS_QP_HIG_ENUM, 60*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1049 | #endif /* __BT_BIP_PROFILE__ */ |
| 1050 | |
| 1051 | #ifdef __CERTMAN_SUPPORT__ |
| 1052 | {"Z:\\@certman\\", FS_QP_HIG_ENUM, 100, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1053 | #endif /* __CERTMAN_SUPPORT__ */ |
| 1054 | |
| 1055 | #ifdef __TCPIP__ |
| 1056 | #if (MMI_MAX_SIM_NUM == 4) |
| 1057 | {"Z:\\@Dtcnt\\", FS_QP_HIG_ENUM, 109*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1058 | #elif (MMI_MAX_SIM_NUM == 3) |
| 1059 | {"Z:\\@Dtcnt\\", FS_QP_HIG_ENUM, 106*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1060 | #elif (MMI_MAX_SIM_NUM == 2) |
| 1061 | {"Z:\\@Dtcnt\\", FS_QP_HIG_ENUM, 103*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1062 | #else |
| 1063 | {"Z:\\@Dtcnt\\", FS_QP_HIG_ENUM, 100*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1064 | #endif /* MMI_MAX_SIM_NUM */ |
| 1065 | #endif /* __TCPIP__ */ |
| 1066 | |
| 1067 | #ifdef __SSL_SUPPORT__ |
| 1068 | #ifdef OPERA_BROWSER |
| 1069 | #ifdef __OCSP_SUPPORT__ |
| 1070 | {"Z:\\@tls\\", FS_QP_HIG_ENUM, 66, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1071 | #else /* !__OCSP_SUPPORT__ */ |
| 1072 | {"Z:\\@tls\\", FS_QP_HIG_ENUM, 63, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1073 | #endif /* !__OCSP_SUPPORT__ */ |
| 1074 | |
| 1075 | #else /* !OPERA_BROWSER */ |
| 1076 | #ifdef __OCSP_SUPPORT__ |
| 1077 | {"Z:\\@tls\\", FS_QP_HIG_ENUM, 40, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1078 | #else /* !__OCSP_SUPPORT__ */ |
| 1079 | {"Z:\\@tls\\", FS_QP_HIG_ENUM, 37, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1080 | #endif /* !__OCSP_SUPPORT__ */ |
| 1081 | #endif /* !OPERA_BROWSER */ |
| 1082 | #endif /* __SSL_SUPPORT__ */ |
| 1083 | |
| 1084 | #ifdef __WIFI_SUPPORT__ |
| 1085 | {"Z:\\@dhcp\\", FS_QP_HIG_ENUM, 2*1024, 3*1024, FS_COUNT_IN_BYTE}, |
| 1086 | #endif /* __WIFI_SUPPORT__ */ |
| 1087 | |
| 1088 | #if (defined __MMI_OP01_DCD__) |
| 1089 | {"Z:\\@dcd_sys\\", FS_QP_HIG_ENUM, 4*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1090 | {"Z:\\@dcd\\", FS_QP_HIG_ENUM, 200*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1091 | #elif (defined __MMI_OP01_DCD_V30__) |
| 1092 | {"Z:\\@dcd_sys\\", FS_QP_HIG_ENUM, 4*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1093 | {"Z:\\@dcd\\", FS_QP_HIG_ENUM, 1536*1024, 6*1024*1024, FS_COUNT_IN_BYTE}, |
| 1094 | #endif |
| 1095 | |
| 1096 | #ifdef __MMI_MOBILE_VIDEO__ |
| 1097 | {"Z:\\@MobileVideo\\", FS_QP_HIG_ENUM, 4*1024*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1098 | #endif /* __MMI_MOBILE_VIDEO__ */ |
| 1099 | |
| 1100 | |
| 1101 | #ifdef SVG12_SUPPORT |
| 1102 | {"Z:\\@svg\\", FS_QP_DEL_ENUM, 0, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1103 | #endif |
| 1104 | |
| 1105 | #ifdef PICTBRIDGE_SUPPORT |
| 1106 | {"Z:\\@pictbridge\\", FS_QP_HIG_ENUM, 1*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1107 | #endif |
| 1108 | |
| 1109 | |
| 1110 | #ifdef __SYNCML_SUPPORT__ |
| 1111 | |
| 1112 | #ifdef __MMI_SYNCML_SYNC_TASK_SUPPORT__ |
| 1113 | #define MMI_SYNCML_NUM_OF_TASK NUM_OF_TASK |
| 1114 | #else |
| 1115 | #define MMI_SYNCML_NUM_OF_TASK (0) |
| 1116 | #endif /* __MMI_SYNCML_SYNC_TASK_SUPPORT__ */ |
| 1117 | |
| 1118 | #ifdef __MMI_SYNCML_SYNC_CALENDAR_SUPPORT__ |
| 1119 | #define MMI_SYNCML_NUM_OF_CAL NUM_OF_CAL |
| 1120 | #else |
| 1121 | #define MMI_SYNCML_NUM_OF_CAL (0) |
| 1122 | #endif /* __MMI_SYNCML_SYNC_CALENDAR_SUPPORT__ */ |
| 1123 | |
| 1124 | #ifdef __MMI_SYNCML_SYNC_NOTE_SUPPORT__ |
| 1125 | #define MMI_SYNCML_NUM_OF_NOTE MMI_MAX_NOTE_ITEM |
| 1126 | #else |
| 1127 | #define MMI_SYNCML_NUM_OF_NOTE (0) |
| 1128 | #endif /* __MMI_SYNCML_SYNC_NOTE_SUPPORT__ */ |
| 1129 | |
| 1130 | /* total change log records */ |
| 1131 | #define MMI_SYNCML_CHGLOG_REC_TOTAL \ |
| 1132 | (MAX_PHB_PHONE_ENTRY + MMI_SYNCML_NUM_OF_CAL + MMI_SYNCML_NUM_OF_TASK + MMI_SYNCML_NUM_OF_NOTE) |
| 1133 | |
| 1134 | |
| 1135 | #ifdef __SYNCML_DEVICE_SYNC__ |
| 1136 | /* MMI_SYNCML_DB_NUM and MMI_SYNCML_MAP_REC_TOTAL has no dependence |
| 1137 | * with __MMI_SYNCML_SYNC_***_SUPPORT__ , |
| 1138 | * it's always the total Database number supported by PS, because PS can not |
| 1139 | * change among with MMI features. |
| 1140 | */ |
| 1141 | /* total map records */ |
| 1142 | #define MMI_SYNCML_MAP_REC_TOTAL \ |
| 1143 | (MAX_PHB_PHONE_ENTRY + NUM_OF_CAL + NUM_OF_TASK + MMI_MAX_NOTE_ITEM) |
| 1144 | #define MMI_SYNCML_DB_NUM (4) /* 1.phb + 2.cal + 3.task + 4.note */ |
| 1145 | /* "12" is map record size. 132 is map header size. */ |
| 1146 | #define MMI_SYNCML_MAX_DEV_MEMSIZE \ |
| 1147 | (MAX_SYNCML_DEV_NUM * (7 * MMI_SYNCML_CHGLOG_REC_TOTAL + 132 * MMI_SYNCML_DB_NUM + MMI_SYNCML_MAP_REC_TOTAL * 12)) |
| 1148 | #else /* __SYNCML_DEVICE_SYNC__ */ |
| 1149 | #define MMI_SYNCML_MAX_DEV_MEMSIZE (0) |
| 1150 | #endif /* __SYNCML_DEVICE_SYNC__ */ |
| 1151 | |
| 1152 | /* "10 * 1024" is the maxSize of sending file, "7" is a changelog rec size */ |
| 1153 | {"Z:\\@SyncML\\", FS_QP_HIG_ENUM, (10 * 1024) + (7 * MMI_SYNCML_CHGLOG_REC_TOTAL * MAX_SYNCML_SV_PROFILES) + MMI_SYNCML_MAX_DEV_MEMSIZE, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1154 | |
| 1155 | #endif /* __SYNCML_SUPPORT__ */ |
| 1156 | |
| 1157 | #if defined(__MMI_MOBILE_TV_CMMB_SUPPORT__) |
| 1158 | {"Z:\\@mtv\\", FS_QP_HIG_ENUM, 700*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1159 | #elif defined(__MMI_ATV_SUPPORT__) |
| 1160 | {"Z:\\@mtv\\", FS_QP_HIG_ENUM, 30*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1161 | #endif |
| 1162 | |
| 1163 | #ifdef __MMI_AUTO_ANSWER_MACHINE__ |
| 1164 | {"Z:\\@AutoAM\\", FS_QP_HIG_ENUM, 25*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1165 | #endif /* __MMI_AUTO_ANSWER_MACHINE__ */ |
| 1166 | #ifdef __UCWEB6__ |
| 1167 | {"Z:\\@UCWebClient\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1168 | #endif |
| 1169 | #ifdef KUR_DECODE |
| 1170 | {"Z:\\@kuro\\", FS_QP_HIG_ENUM, 15*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1171 | #endif |
| 1172 | #ifdef __QQIM_SLIM_SUPPORT__ |
| 1173 | {"Z:\\@qq\\", FS_QP_HIG_ENUM, 1*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1174 | #endif |
| 1175 | |
| 1176 | #ifdef __SRV_SMS_SIM_CUST_DATA__ |
| 1177 | #ifdef __MMI_DUAL_SIM_MASTER__ |
| 1178 | {"Z:\\@SMSSimCust\\", FS_QP_HIG_ENUM, 4, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1179 | #else /* __MMI_DUAL_SIM_MASTER__ */ |
| 1180 | {"Z:\\@SMSSimCust\\", FS_QP_HIG_ENUM, 2, FS_QMAX_NO_LIMIT, FS_COUNT_IN_CLUSTER}, |
| 1181 | #endif /* __MMI_DUAL_SIM_MASTER__ */ |
| 1182 | #endif /* __SRV_SMS_SIM_CUST_DATA__ */ |
| 1183 | |
| 1184 | #ifdef __GADGET_SUPPORT__ |
| 1185 | {"Z:\\@gadget\\", FS_QP_HIG_ENUM, 500 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1186 | #ifdef __COSMOS_MMI_PACKAGE__ |
| 1187 | {"Z:\\@wgtmgr\\", FS_QP_HIG_ENUM, 520 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1188 | #else |
| 1189 | {"Z:\\@wgtmgr\\", FS_QP_HIG_ENUM, 20 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1190 | #endif |
| 1191 | #endif |
| 1192 | |
| 1193 | #ifdef __NMC_SUPPORT__ |
| 1194 | {"Z:\\@nmc\\", FS_QP_HIG_ENUM, 1024 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1195 | #endif |
| 1196 | |
| 1197 | #if (defined(__MRE_PACKAGE_FULL__) || defined(__MRE_PACKAGE_NORMAL__)) |
| 1198 | {"Z:\\@mrestorage\\", FS_QP_HIG_ENUM, 10*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1199 | #endif |
| 1200 | |
| 1201 | #ifdef __MMI_3D_GAME_INTERGRAFX__ |
| 1202 | {"Z:\\@ig_save\\", FS_QP_HIG_ENUM, 1*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1203 | #endif |
| 1204 | |
| 1205 | #if defined(__COSMOS_MMI_PACKAGE__) |
| 1206 | #ifdef __MMI_COSMOS_DOWNLOADABLE_THEMES_SUPPORT__ |
| 1207 | {"Z:\\@Settings\\", FS_QP_HIG_ENUM, 2048 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1208 | #else |
| 1209 | {"Z:\\@Settings\\", FS_QP_HIG_ENUM, 1024 * 1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1210 | #endif |
| 1211 | #endif |
| 1212 | |
| 1213 | #if defined(__MRE_PACKAGE_SLIM__) |
| 1214 | {"Z:\\@mresysfile\\", FS_QP_HIG_ENUM, 1*2*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1215 | |
| 1216 | #elif defined(__MRE_PACKAGE_NORMAL__) |
| 1217 | {"Z:\\@mresysfile\\", FS_QP_HIG_ENUM, 14*2*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1218 | |
| 1219 | #elif defined(__MRE_PACKAGE_FULL__) |
| 1220 | {"Z:\\@mresysfile\\", FS_QP_HIG_ENUM, 18*2*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1221 | |
| 1222 | #endif |
| 1223 | |
| 1224 | #ifdef __ALIPAY_SUPPORT__ |
| 1225 | {"Z:\\@alipay\\", FS_QP_HIG_ENUM, 2*1024, FS_QMAX_NO_LIMIT, FS_COUNT_IN_BYTE}, |
| 1226 | #endif |
| 1227 | |
| 1228 | }; |
| 1229 | |
| 1230 | /************* Do not modify anything behind this line *************/ |
| 1231 | |
| 1232 | void fs_quota_init(void) |
| 1233 | { |
| 1234 | FS_QuotaInit(gFS_ExtQuotaSet, ((sizeof(gFS_ExtQuotaSet)/sizeof(FS_QuotaStruct)) - 1)); |
| 1235 | } |
| 1236 | |
| 1237 | sys_indirect_init_func g_fs_quota_init = fs_quota_init; |
| 1238 | |
| 1239 | #else // !__FS_MODIS_FDM__ && !__MTK_TARTET__ |
| 1240 | |
| 1241 | void fs_quota_init(void) |
| 1242 | { |
| 1243 | } |
| 1244 | |
| 1245 | sys_indirect_init_func g_fs_quota_init = fs_quota_init; |
| 1246 | |
| 1247 | #endif /* __FS_MODIS_FDM__ || __MTK_TARTET__ */ |
| 1248 | |
| 1249 | #else // !__FS_QM_SUPPORT__ |
| 1250 | |
| 1251 | void fs_quota_init(void) |
| 1252 | { |
| 1253 | } |
| 1254 | |
| 1255 | sys_indirect_init_func g_fs_quota_init = fs_quota_init; |
| 1256 | |
| 1257 | #endif // __FS_QM_SUPPORT__ |
| 1258 | |
| 1259 | |